Чот накодил

This commit is contained in:
2025-12-11 21:14:27 +00:00
parent c71c7da2ff
commit abd77a885a
34 changed files with 2615 additions and 47 deletions
+11
View File
@@ -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