PER Firmware
Loading...
Searching...
No Matches
pec.h
Go to the documentation of this file.
1
10#ifndef PEC_H
11#define PEC_H
12
13#include <stdbool.h>
14#include <stddef.h>
15#include <stdint.h>
16
17uint16_t PEC_calc_pec15(const uint8_t *data, uint8_t len);
18uint16_t PEC_calc_pec10(const uint8_t *data_buf, size_t length, bool is_rx_cmd);
19
20#endif // PEC_H
uint16_t PEC_calc_pec15(const uint8_t *data, uint8_t len)
CRC15 Pec Calculation Function.
Definition pec.c:75
uint16_t PEC_calc_pec10(const uint8_t *data_buf, size_t length, bool is_rx_cmd)
Definition pec.c:85