rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
crc8hondak.h File Reference

Functions

uint8_t crc_hondak_calc (const uint8_t *data, size_t len)
 

Function Documentation

◆ crc_hondak_calc()

uint8_t crc_hondak_calc ( const uint8_t *  data,
size_t  len 
)

Definition at line 31 of file crc8hondak.cpp.

31 {
32 uint8_t crc = crc_init();
33
34 if (len) do {
35 crc = crc_next(crc, *data++);
36 } while (--len);
37
38 return crc_final(crc);
39}
static uint8_t crc_init(void)
Definition crc8hondak.cpp:6
static uint8_t crc_final(uint8_t crc)
static uint8_t crc_next(uint8_t crc, uint8_t data)

Referenced by kLineThread().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.