mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-04 08:58:22 +02:00
checked in Hubis code (version from 2022-04-13)
https://www.mikrocontroller.net/topic/525778?page=3#7033371
This commit is contained in:
parent
11113da53e
commit
1f6fe84f08
12 changed files with 1686 additions and 0 deletions
8
tools/NRF24_SendRcv/hm_crc.h
Normal file
8
tools/NRF24_SendRcv/hm_crc.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
|
||||
#define BITS_TO_BYTES(x) (((x)+7)>>3)
|
||||
#define BYTES_TO_BITS(x) ((x)<<3)
|
||||
|
||||
extern uint16_t crc16_modbus(uint8_t *puchMsg, uint16_t usDataLen);
|
||||
extern uint8_t crc8(uint8_t *buf, const uint16_t bufLen);
|
||||
extern uint16_t crc16(uint8_t* buf, const uint16_t bufLen, const uint16_t startCRC, const uint16_t startBit, const uint16_t len_bits);
|
Loading…
Add table
Add a link
Reference in a new issue