Skip to content

Configuration

A Configuration provides all settings necessary to determine the concrete implementation of a specific crc algorithm/register.

Example

Create a custom configuration

from crc import Configuration

saej1850 = Configuration(
    width=8,
    polynomial=0x1D,
    init_value=0xFF,
    final_xor_value=0xFF,
    reverse_input=False,
    reverse_output=False
)

width: int instance-attribute

polynomial: int instance-attribute

init_value: int = 0 class-attribute instance-attribute

final_xor_value: int = 0 class-attribute instance-attribute

reverse_input: bool = False class-attribute instance-attribute

reverse_output: bool = False class-attribute instance-attribute