Чот накодил

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
+14
View File
@@ -0,0 +1,14 @@
#ifndef SERIAL_PROTO_HELPERS_H_GUARD
#define SERIAL_PROTO_HELPERS_H_GUARD
#include <vector>
#include <cstdint>
#include "PacketType.h"
#include "Packet.h"
uint8_t crc4_bytes(const std::vector<uint8_t> &data);
uint8_t build_header(PacketType type, uint8_t session, uint8_t nibble);
std::vector<Packet> createPackets(const std::vector<uint8_t> &message, uint8_t session);
#endif