ModusToolbox Safety Test Library
Loading...
Searching...
No Matches

General Description

Functions

uint16_t SelfTests_CRC16_CCITT (uint32_t BaseAdress, uint16_t len)
 This function calculates the CRC of the memory area defined in the parameters "BaseAdress" and "len".
uint16_t SelfTests_CRC16_CCITT_ACC (uint16_t crc, uint32_t BaseAdress, uint16_t len)
 This function calculates the CRC of the area defined in the parameters "BaseAdress" and "len".
uint16_t SelfTests_CRC16_CCITT_Byte (uint16_t crc, uint8_t val)
 This function calculates CRC of one byte "val".
uint32_t SelfTests_CRC32 (uint32_t BaseAdress, uint32_t len)
 This function calculates CRC of memory area defined in parameters "BaseAdress" and "len".
uint32_t SelfTests_CRC32_ACC (uint32_t crc, uint32_t BaseAdress, uint32_t len)
 This function calculates CRC of memory area defined in parameters "BaseAdress" and "len".
uint32_t SelfTests_CRC32_Byte (uint32_t crc, uint8_t val)
 This function calculates CRC of one byte "val".

Function Documentation

◆ SelfTests_CRC16_CCITT()

uint16_t SelfTests_CRC16_CCITT ( uint32_t BaseAdress,
uint16_t len )

This function calculates the CRC of the memory area defined in the parameters "BaseAdress" and "len".

Parameters
BaseAdressThe address from which to calculate the CRC.
lenThe length of the area for CRC calculation.
Returns
The calculated CRC value.

◆ SelfTests_CRC16_CCITT_ACC()

uint16_t SelfTests_CRC16_CCITT_ACC ( uint16_t crc,
uint32_t BaseAdress,
uint16_t len )

This function calculates the CRC of the area defined in the parameters "BaseAdress" and "len".

Parameters
crcThe current CRC.
BaseAdressThe address from which to calculate the CRC.
lenThe length of the area for CRC calculation.
Returns
The calculated CRC value.

◆ SelfTests_CRC16_CCITT_Byte()

uint16_t SelfTests_CRC16_CCITT_Byte ( uint16_t crc,
uint8_t val )

This function calculates CRC of one byte "val".

Parameters
crcThe current CRC.
valThe value to calculate the CRC for.
Returns
The calculated CRC value.

◆ SelfTests_CRC32()

uint32_t SelfTests_CRC32 ( uint32_t BaseAdress,
uint32_t len )

This function calculates CRC of memory area defined in parameters "BaseAdress" and "len".

Parameters
BaseAdressThe address from which to calculate the CRC.
lenThe length of the area for CRC calculation.
Returns
The calculated CRC value.

◆ SelfTests_CRC32_ACC()

uint32_t SelfTests_CRC32_ACC ( uint32_t crc,
uint32_t BaseAdress,
uint32_t len )

This function calculates CRC of memory area defined in parameters "BaseAdress" and "len".

Parameters
crcThe current CRC.
BaseAdressThe address from which to calculate the CRC.
lenThe length of the area for CRC calculation.
Returns
The calculated CRC value.

◆ SelfTests_CRC32_Byte()

uint32_t SelfTests_CRC32_Byte ( uint32_t crc,
uint8_t val )

This function calculates CRC of one byte "val".

Parameters
crcThe current CRC.
valThe value to calculate the CRC for.
Returns
The calculated CRC value.