The interface definitions for WiThrottle.
More...
#include <Defs.hxx>
The interface definitions for WiThrottle.
Definition at line 138 of file withrottle/Defs.hxx.
◆ get_function_status_string()
| static string withrottle::Defs::get_function_status_string |
( |
const char * |
loco, |
|
|
int |
number, |
|
|
bool |
state |
|
) |
| |
|
inlinestatic |
Get the function status string.
- Parameters
-
| loco | WiThrottle train handle string |
| number | function number |
| state | function state |
- Returns
- function status string
Definition at line 182 of file withrottle/Defs.hxx.
◆ get_init_string()
| static string withrottle::Defs::get_init_string |
( |
| ) |
|
|
inlinestatic |
◆ get_loco_status_string()
Get the locomotive status command string.
- Parameters
-
| throttle | OpenLCB assigned openLCB throttle |
- Returns
- locomotive status string
Definition at line 207 of file withrottle/Defs.hxx.
◆ DEFAULT_PORT
| constexpr const int withrottle::Defs::DEFAULT_PORT = 12090 |
|
staticconstexpr |
◆ HEARTBEAT_TIMEOUT
| constexpr const char* withrottle::Defs::HEARTBEAT_TIMEOUT = "*10" |
|
staticconstexpr |
◆ PROTOCOL_VERSION
| constexpr const char* withrottle::Defs::PROTOCOL_VERSION = "VN2.0" |
|
staticconstexpr |
◆ TRACK_POWER_OFF
| constexpr const char* withrottle::Defs::TRACK_POWER_OFF = "PPA0" |
|
staticconstexpr |
◆ TRACK_POWER_ON
| constexpr const char* withrottle::Defs::TRACK_POWER_ON = "PPA1" |
|
staticconstexpr |
◆ TRACK_POWER_UNKNOWN
| constexpr const char* withrottle::Defs::TRACK_POWER_UNKNOWN = "PPA2" |
|
staticconstexpr |
The documentation for this struct was generated from the following file: