Чот накодил
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#ifndef SERIAL_PROTO_PARAMS_H_GUARD
|
||||
#define SERIAL_PROTO_PARAMS_H_GUARD
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
constexpr size_t MAX_RAW_PACKET_SIZE = 32;
|
||||
constexpr size_t HEADER_SIZE = 1;
|
||||
constexpr size_t MAX_PAYLOAD = MAX_RAW_PACKET_SIZE - HEADER_SIZE; // 31
|
||||
constexpr uint8_t CRC4_POLY = 0x13; // 0b1_0011 (x^4 + x + 1)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user