ecnet::EcNetwork::SlaveSnapshot
Snapshot of each slave's EtherCAT state + AL-status code taken while the master is still open (the last thing [stop()](/lxmaster/api/classes/EcNetwork#function-stop) does before master_->close()). More...
Public Attributes
| Name | |
|---|---|
| bool | valid |
| std::uint16_t | state |
| bool | is_lost |
| std::uint16_t | al_statuscode |
Detailed Description
struct ecnet::EcNetwork::SlaveSnapshot;
Snapshot of each slave's EtherCAT state + AL-status code taken while the master is still open (the last thing [stop()](/lxmaster/api/classes/EcNetwork#function-stop) does before master_->close()).
[reportDeviceStatus()](/lxmaster/api/classes/EcNetwork#function-reportdevicestatus) prints from this so the operator sees what the bus actually looked like at shutdown instead of the zeroed slave table you get after the NIC socket is closed. Index 0 is unused to match the backend's 1-based slave numbering.
Public Attributes Documentation
variable valid
bool valid {false};
variable state
std::uint16_t state {0};
variable is_lost
bool is_lost {false};
variable al_statuscode
std::uint16_t al_statuscode {0};
Updated on 2026-07-13 at 20:44:41 +0000