Чот накодил
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user