Files
firmware/components/flatbuffers/include/TopologyMessageBuilder.h
Johnathon Slightham 945278d673 Cleanup includes
This actually gained us 10% more flash space
2025-10-16 21:03:35 -04:00

31 lines
743 B
C++

//
// Created by Johnathon Slightham on 2025-06-30.
//
#ifndef TOPOLOGYMESSAGEBUILDER_H
#define TOPOLOGYMESSAGEBUILDER_H
#include <vector>
#include "SerializedMessage.h"
#include "flatbuffers_generated/TopologyMessage_generated.h"
#include "flatbuffers/flatbuffers.h"
namespace Flatbuffers {
class TopologyMessageBuilder {
public:
TopologyMessageBuilder() : builder_(1024) {}
SerializedMessage build_topology_message(
uint8_t module_id,
ModuleType module_type,
const std::vector<uint8_t>& channel_to_module,
const std::vector<int8_t>& orientation_to_module);
private:
flatbuffers::FlatBufferBuilder builder_;
};
}
#endif //TOPOLOGYMESSAGEBUILDER_H