Logo
Telescience Resource Kit
TReK Python  5.4.0 ART
ChecksumPolynomialInfo Class Reference

Checksum Polynomial attributes. More...

Public Member Functions

def ChecksumPolynomialInfo ( int polynomial=0x04C11DB7, int init_value=0xFFFFFFFF, int final_xor_value=0xFFFFFFFF, bool reflect_input=True, bool reflect_result=True -> None ) -> def 
 Class initializer. More...
 

Public Attributes

 polynomial
 The polynomial to use for the CRC calculation. More...
 
 init_value
 The initial value to use for the CRC calculation. More...
 
 final_xor_value
 The final value to perform the exclusive or on the checksum. More...
 
 reflect_input
 Reflect the input (swap bit order). More...
 
 reflect_result
 Reflect the output (swap bit order). More...
 

Static Public Attributes

 int
 
 bool
 

Detailed Description

Checksum Polynomial attributes.

See also
packet.Packet.set_checksum_parameter()
packet.Packet.get_checksum_parameter_info()
packet.Packet.get_polynomial_info()

Constructor & Destructor Documentation

◆ ChecksumPolynomialInfo()

(polynomial : int  
init_value : int  
final_xor_value : int  
reflect_input : bool  
reflect_result : bool  
) -> None

Class initializer.

Parameters
[in]polynomialThe polynomial to use for the CRC calculation. Typically written as 0x12345678. Only used if type is CT_GENERIC_CRC32.
[in]init_valueThe initial value to use for the CRC calculation. Typically 0 or 0xffffffff. Only used if type is CT_GENERIC_CRC32.
[in]final_xor_valueThe final value to perform the exclusive or on the checksum. Typically 0 or 0xffffffff. Only used if type is CT_GENERIC_CRC32.
[in]reflect_inputReflect the input (swap bit order). Only used if type is CT_GENERIC_CRC32.
[in]reflect_resultReflect the output (swap bit order). Only used if type is CT_GENERIC_CRC32.

Member Data Documentation

◆ final_xor_value

The final value to perform the exclusive or on the checksum.

Typically 0 or 0xffffffff. Only used if type is CT_GENERIC_CRC32.

◆ init_value

The initial value to use for the CRC calculation.

Typically 0 or 0xffffffff. Only used if type is CT_GENERIC_CRC32.

◆ polynomial

The polynomial to use for the CRC calculation.

Typically written as 0x12345678. Only used if type is CT_GENERIC_CRC32.

◆ reflect_input

Reflect the input (swap bit order).

Only used if type is CT_GENERIC_CRC32.

◆ reflect_result

Reflect the output (swap bit order).

Only used if type is CT_GENERIC_CRC32.