|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
59 #ifndef FOXBMS__MXM_CRC8_H_
60 #define FOXBMS__MXM_CRC8_H_
92 extern uint8_t
MXM_CRC8(uint16_t *pData, int32_t lenData);
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
STD_RETURN_TYPE_e must_check_return MXM_CRC8SelfTest(void)
Test the CRC8-algorithm with a known pattern.
#define must_check_return
Allows functions to generate warnings in GCC for unused returns.
uint8_t MXM_CRC8WithInitValue(uint16_t *pData, int32_t lenData, uint8_t crcInit)
Compute CRC8 (0xA6) with initial value.
uint8_t MXM_CRC8(uint16_t *pData, int32_t lenData)
Compute CRC8 with initial value set to 0x00.