Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
traction_modem::TxMessage Struct Reference

Public Member Functions

bool valid () const
 
uint16_t command () const
 
uint16_t length () const
 
uint16_t response_status ()
 Return the first two bytes of a response payload as an uint16_t.
 

Public Attributes

string payload
 

Detailed Description

Definition at line 54 of file TractionModem.hxx.

Member Function Documentation

◆ command()

uint16_t traction_modem::TxMessage::command ( ) const
inline

Definition at line 61 of file TractionModem.hxx.

◆ length()

uint16_t traction_modem::TxMessage::length ( ) const
inline

Definition at line 66 of file TractionModem.hxx.

◆ response_status()

uint16_t traction_modem::TxMessage::response_status ( )
inline

Return the first two bytes of a response payload as an uint16_t.

This is often a status / error code.

Definition at line 73 of file TractionModem.hxx.

◆ valid()

bool traction_modem::TxMessage::valid ( ) const
inline

Definition at line 56 of file TractionModem.hxx.

Member Data Documentation

◆ payload

string traction_modem::TxMessage::payload

Definition at line 78 of file TractionModem.hxx.


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