Model Railroad System 2.2.2
Public Attributes | List of all members
azatrax::Azatrax::StateDataPacket Struct Reference

Raw USB Data Packet. More...

#include <Azatrax.h>

Public Attributes

uint8_t commandEcho
 Command Echo byte. More...
 
uint8_t packetCount
 Packet counter (All Devices) More...
 
uint8_t status1
 Status byte 1 (All Devices) More...
 
uint8_t status2
 Status byte 2 (All Devices) More...
 
uint8_t status3
 Status byte 3 (SR4-U, SL2-U) / Stopwatch 1/100ths of a second (MRD2 only) More...
 
uint8_t status4
 Status byte 4 (SR4-U, SL2-U) / Stopwatch seconds (MRD2 only) More...
 
uint8_t stopwatchMinutes
 Stopwatch minutes (MRD2 only) More...
 
uint8_t stopwatchHours
 Stopwatch hours (MRD2 only) More...
 
uint8_t operatingMode
 Operating mode (MRD2 only) More...
 
uint8_t reserved [6]
 Reserved bytes. More...
 
uint8_t endOfData
 End of data. More...
 

Detailed Description

Raw USB Data Packet.

This is the USB Data Packet returned in response to the GetStateData command.

Member Data Documentation

◆ commandEcho

uint8_t azatrax::Azatrax::StateDataPacket::commandEcho

Command Echo byte.

(All Devices)

◆ endOfData

uint8_t azatrax::Azatrax::StateDataPacket::endOfData

End of data.

◆ operatingMode

uint8_t azatrax::Azatrax::StateDataPacket::operatingMode

Operating mode (MRD2 only)

Referenced by azatrax::MRD::OperatingMode().

◆ packetCount

uint8_t azatrax::Azatrax::StateDataPacket::packetCount

Packet counter (All Devices)

Referenced by azatrax::Azatrax::PacketCount().

◆ reserved

uint8_t azatrax::Azatrax::StateDataPacket::reserved[6]

Reserved bytes.

◆ status1

uint8_t azatrax::Azatrax::StateDataPacket::status1

◆ status2

uint8_t azatrax::Azatrax::StateDataPacket::status2

◆ status3

uint8_t azatrax::Azatrax::StateDataPacket::status3

◆ status4

uint8_t azatrax::Azatrax::StateDataPacket::status4

Status byte 4 (SR4-U, SL2-U) / Stopwatch seconds (MRD2 only)

Referenced by azatrax::SR4::Sense_1_Live(), azatrax::SR4::Sense_2_Live(), azatrax::SR4::Sense_3_Live(), and azatrax::SR4::Sense_4_Live().

◆ stopwatchHours

uint8_t azatrax::Azatrax::StateDataPacket::stopwatchHours

Stopwatch hours (MRD2 only)

Referenced by azatrax::MRD::Stopwatch().

◆ stopwatchMinutes

uint8_t azatrax::Azatrax::StateDataPacket::stopwatchMinutes

Stopwatch minutes (MRD2 only)

Referenced by azatrax::MRD::Stopwatch().