MC Protocol Serial C++ 0.2.3
MC protocol serial library for MCU-oriented environments
Loading...
Searching...
No Matches
mcprotocol::serial::RawResponseFrame Struct Reference

Raw decoded response frame before command-specific parsing. More...

#include <codec.hpp>

Public Attributes

ResponseType type = ResponseType::SuccessNoData
 Success-with-data, success-without-data, or PLC-error classification.
 
std::size_t response_size = 0
 Number of valid bytes in response_data.
 
std::uint16_t error_code = 0
 PLC error code when type == ResponseType::PlcError.
 
std::array< std::uint8_t, kMaxResponseFrameBytesresponse_data {}
 Raw response payload bytes with the serial frame already removed.
 

Detailed Description

Raw decoded response frame before command-specific parsing.

Definition at line 36 of file codec.hpp.

Member Data Documentation

◆ error_code

std::uint16_t mcprotocol::serial::RawResponseFrame::error_code = 0

PLC error code when type == ResponseType::PlcError.

Definition at line 42 of file codec.hpp.

◆ response_data

std::array<std::uint8_t, kMaxResponseFrameBytes> mcprotocol::serial::RawResponseFrame::response_data {}

Raw response payload bytes with the serial frame already removed.

Definition at line 44 of file codec.hpp.

◆ response_size

std::size_t mcprotocol::serial::RawResponseFrame::response_size = 0

Number of valid bytes in response_data.

Definition at line 40 of file codec.hpp.

◆ type

ResponseType mcprotocol::serial::RawResponseFrame::type = ResponseType::SuccessNoData

Success-with-data, success-without-data, or PLC-error classification.

Definition at line 38 of file codec.hpp.


The documentation for this struct was generated from the following file: