|
PER Firmware
|
Calculation of PEC (CRC15, CRC10) for ADBMS communication. More...
#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Functions | |
| uint16_t | PEC_calc_pec15 (const uint8_t *data, uint8_t len) |
| CRC15 Pec Calculation Function. | |
| uint16_t | PEC_calc_pec10 (const uint8_t *data_buf, size_t length, bool is_rx_cmd) |
Calculation of PEC (CRC15, CRC10) for ADBMS communication.
| uint16_t PEC_calc_pec10 | ( | const uint8_t * | data_buf, |
| size_t | length, | ||
| bool | is_rx_cmd ) |
| uint16_t PEC_calc_pec15 | ( | const uint8_t * | data, |
| uint8_t | len ) |
CRC15 Pec Calculation Function.
Function: PEC_calc_pec15
This function calculates and return the CRC15 value
Parameters:
| [in] | *data | Array of data that will be used to calculate a PEC |
| [in] | len | Number of bytes that will be used to calculate a PEC |