Motion Master 6.0.0-alpha.111
Next-generation motion control software
Loading...
Searching...
No Matches
spoe_frame.cc File Reference
#include "comm/spoe_frame.h"
#include <array>
#include <format>
#include <string>
#include <vector>
Include dependency graph for spoe_frame.cc:

Namespaces

namespace  mm
 
namespace  mm::comm
 
namespace  mm::comm::spoe
 

Functions

std::expected< std::vector< uint8_t >, std::string > mm::comm::spoe::encodeFrame (const Frame &frame)
 Encodes frame. Fails when the data part is larger than kMaxDataSize.
 
std::optional< FrameHeader > mm::comm::spoe::decodeHeader (std::span< const uint8_t > bytes)