base-station/Firmware/src/Messages/Message.h

14 lines
378 B
C
Raw Normal View History

2023-03-25 18:10:25 +01:00
#pragma once
#include <Arduino.h>
#include <FreeRTOS/BinarySemaphore.h>
2023-03-25 18:10:25 +01:00
#include <Messages/Protocol.h>
#include <etl/utility.h>
#include <etl/vector.h>
namespace message {
/// @brief first: data, second: data ready to reuse
2023-03-25 18:10:25 +01:00
using Message =
etl::pair<etl::vector<uint8_t, message::protocol::MAX_PAYLOAD_LEN>,
freertos::BinarySemaphore>;
2023-03-25 18:10:25 +01:00
} // namespace message