Files
audiocodec/protocol.h
2026-07-20 23:18:26 +02:00

23 lines
271 B
C

#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