Description:
The Check_CrcCCITTrevDataBytes method calculates the CCITT checksum after reversing the data bytes. It then compares the result with the value in the "Field with CRC". It returns TRUE if the values match, else it returns FALSE.
Parameters:
|
[Required] |
Int |
"First byte to include (0=first byte in layer)" |
|
|
[Required] |
Int |
"Seed" |
|
|
[Optional] |
List |
"Swap Result" (Default value: NoSwap) |
|
|
List values: |
NoSwap |
||
|
Swap |
|||
|
[Required] |
Field |
"Field with CRC" |
|
Example:
FIELD bad_crc_packet (ToEndOfLayer) IF NOT (Check_CrcCCITTrevDataBytes 0 0xFFFF NoSwap crc_field ) (Hex) "Bad Packet"