mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-09 15:06:37 +02:00
first changes to prepare code for esp32
This commit is contained in:
parent
6ac3876092
commit
1200ca0b79
6 changed files with 26 additions and 11 deletions
|
@ -14,7 +14,10 @@
|
|||
|
||||
#define CRC16_MODBUS_POLYNOM 0xA001
|
||||
|
||||
uint8_t crc8(uint8_t buf[], uint8_t len);
|
||||
uint16_t crc16(uint8_t buf[], uint8_t len, uint16_t start = 0xffff);
|
||||
namespace Hoymiles {
|
||||
|
||||
uint8_t crc8(uint8_t buf[], uint8_t len);
|
||||
uint16_t crc16(uint8_t buf[], uint8_t len, uint16_t start = 0xffff);
|
||||
|
||||
}
|
||||
#endif /*__CRC_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue