14 lines
380 B
C++
14 lines
380 B
C++
#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 |