Locomotive information.
More...
|
| Address () |
| Return address. More...
|
|
| Available () |
| Return available flag. More...
|
|
| Direction () |
| Return direction. More...
|
|
| SpeedStepMode () |
| Return speed step mode. More...
|
|
| Speed () |
| Return speed. More...
|
|
| Function (f) |
| Return function status. More...
|
|
| MTR () |
| Return Muti-unit address. More...
|
|
| Address2 () |
| Return the address of second unit in double header. More...
|
|
| LocomotiveInformation (name, a, avail=0, dir="", ssm="", s=0, f0=0, f1=0, f2=0, f3=0, f4=0, f5=0, f6=0, f7=0, f8=0, f9=0, f10=0, f11=0, f12=0, mtraddr=0, addr2=0xffff) |
| Constructor. More...
|
|
Locomotive information.
- Author
- Robert Heller <heller@deepsoft.com>
◆ LocomotiveInformation()
xpressnet::LocomotiveInformation::LocomotiveInformation |
( |
name |
, |
|
|
a |
, |
|
|
avail |
= 0 , |
|
|
dir |
= "" , |
|
|
ssm |
= "" , |
|
|
s |
= 0 , |
|
|
f0 |
= 0 , |
|
|
f1 |
= 0 , |
|
|
f2 |
= 0 , |
|
|
f3 |
= 0 , |
|
|
f4 |
= 0 , |
|
|
f5 |
= 0 , |
|
|
f6 |
= 0 , |
|
|
f7 |
= 0 , |
|
|
f8 |
= 0 , |
|
|
f9 |
= 0 , |
|
|
f10 |
= 0 , |
|
|
f11 |
= 0 , |
|
|
f12 |
= 0 , |
|
|
mtraddr |
= 0 , |
|
|
addr2 |
= 0xffff |
|
) |
| |
Constructor.
- Parameters
-
a | Locomotive address. |
avail | Available flag. |
dir | Direction. |
ssm | Speed step mode. |
s | Locomotive speed. |
f0 | Function 0 status. |
f1 | Function 1 status. |
f2 | Function 2 status. |
f3 | Function 3 status. |
f4 | Function 4 status. |
f5 | Function 5 status. |
f6 | Function 6 status. |
f7 | Function 7 status. |
f8 | Function 8 status. |
f9 | Function 9 status. |
f10 | Function 10 status. |
f11 | Function 11 status. |
f12 | Function 12 status. |
mtraddr | MTR address. |
addr2 | Double header address. |
◆ Address()
xpressnet::LocomotiveInformation::Address |
( |
| ) |
|
◆ Address2()
xpressnet::LocomotiveInformation::Address2 |
( |
| ) |
|
Return the address of second unit in double header.
◆ Available()
xpressnet::LocomotiveInformation::Available |
( |
| ) |
|
◆ Direction()
xpressnet::LocomotiveInformation::Direction |
( |
| ) |
|
◆ Function()
xpressnet::LocomotiveInformation::Function |
( |
f |
| ) |
|
Return function status.
- Parameters
-
f | Function whose status to return. |
◆ MTR()
xpressnet::LocomotiveInformation::MTR |
( |
| ) |
|
Return Muti-unit address.
◆ Speed()
xpressnet::LocomotiveInformation::Speed |
( |
| ) |
|
◆ SpeedStepMode()
xpressnet::LocomotiveInformation::SpeedStepMode |
( |
| ) |
|
◆ _address
xpressnet::LocomotiveInformation::_address |
|
private |
◆ _address2
xpressnet::LocomotiveInformation::_address2 |
|
private |
◆ _available
xpressnet::LocomotiveInformation::_available |
|
private |
◆ _direction
xpressnet::LocomotiveInformation::_direction |
|
private |
◆ _function0
xpressnet::LocomotiveInformation::_function0 |
|
private |
◆ _function1
xpressnet::LocomotiveInformation::_function1 |
|
private |
◆ _function10
xpressnet::LocomotiveInformation::_function10 |
|
private |
◆ _function11
xpressnet::LocomotiveInformation::_function11 |
|
private |
◆ _function12
xpressnet::LocomotiveInformation::_function12 |
|
private |
◆ _function2
xpressnet::LocomotiveInformation::_function2 |
|
private |
◆ _function3
xpressnet::LocomotiveInformation::_function3 |
|
private |
◆ _function4
xpressnet::LocomotiveInformation::_function4 |
|
private |
◆ _function5
xpressnet::LocomotiveInformation::_function5 |
|
private |
◆ _function6
xpressnet::LocomotiveInformation::_function6 |
|
private |
◆ _function7
xpressnet::LocomotiveInformation::_function7 |
|
private |
◆ _function8
xpressnet::LocomotiveInformation::_function8 |
|
private |
◆ _function9
xpressnet::LocomotiveInformation::_function9 |
|
private |
◆ _mtraddress
xpressnet::LocomotiveInformation::_mtraddress |
|
private |
◆ _speed
xpressnet::LocomotiveInformation::_speed |
|
private |
◆ _speedstep
xpressnet::LocomotiveInformation::_speedstep |
|
private |
Locomotive speed step mode.