thing
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
#ifndef PROTOCOL_H
|
||||
#define PROTOCOL_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAGIC_SIZE 4
|
||||
#define CRC_SIZE 2
|
||||
|
||||
static const uint8_t PACKET_MAGIC[MAGIC_SIZE] =
|
||||
{
|
||||
0xA5,
|
||||
0x5A,
|
||||
0xC3,
|
||||
0x3C
|
||||
};
|
||||
|
||||
|
||||
uint16_t crc16(
|
||||
const uint8_t *data,
|
||||
uint32_t len);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user