|
MC Protocol Serial C++ 0.2.3
MC protocol serial library for MCU-oriented environments
|
Route header fields for serial MC requests. More...
#include <types.hpp>
Public Attributes | |
| RouteKind | kind = RouteKind::HostStation |
| Route interpretation used by the selected frame family. | |
| std::uint8_t | station_no = 0x00 |
| Target station number on multidrop serial links. | |
| std::uint8_t | network_no = 0x00 |
Network number used by routed 3C/4C requests. | |
| std::uint8_t | pc_no = 0xFF |
PLC number field used by 3C/4C and legacy frame families. | |
| std::uint16_t | request_destination_module_io_no = 0x03FF |
Destination I/O number for the target CPU/module in 3C/4C routing. | |
| std::uint8_t | request_destination_module_station_no = 0x00 |
Destination station number for the target CPU/module in 3C/4C routing. | |
| bool | self_station_enabled = false |
| Enables self-station routing on frame families that support it. | |
| std::uint8_t | self_station_no = 0x00 |
Self-station number used when self_station_enabled is true. | |
Route header fields for serial MC requests.
The same struct is shared across 2C/3C/4C, 1C, and 1E, but not every field is active on every frame family. FrameCodec::validate_config() checks the combinations that are legal for the selected frame.
| RouteKind mcprotocol::serial::RouteConfig::kind = RouteKind::HostStation |
| std::uint8_t mcprotocol::serial::RouteConfig::network_no = 0x00 |
| std::uint8_t mcprotocol::serial::RouteConfig::pc_no = 0xFF |
| std::uint16_t mcprotocol::serial::RouteConfig::request_destination_module_io_no = 0x03FF |
| std::uint8_t mcprotocol::serial::RouteConfig::request_destination_module_station_no = 0x00 |
| bool mcprotocol::serial::RouteConfig::self_station_enabled = false |
| std::uint8_t mcprotocol::serial::RouteConfig::self_station_no = 0x00 |
| std::uint8_t mcprotocol::serial::RouteConfig::station_no = 0x00 |