3.2.29 CRC calculator (CRC)

Below is a list of API functions output by the Code Generator for CRC calculator use.

Table 3.29

API Functions: [CRC calculator]

API Function Name

Function

R_CRC_SetCRC8

Initializes the CRC calculator for 8-bit CRC calculation (CRC generating polynomial: X8 + X2 + X + 1).

R_CRC_SetCRC16

Initializes the CRC calculator for 16-bit CRC calculation (CRC generating polynomial: X16 + X15 + X2 + 1).

R_CRC_SetCCITT

Initializes the CRC calculator for 16-bit CRC calculation (CRC generating polynomial: X16 + X12 + X5 + 1).

R_CRC_Input_Data

Sets the initial value of the data from which the CRC is to be calculated.

R_CRC_Get_Result

Gets the result of operation.