Model Railroad System
2.2.2
|
Namespace that holds the XPressNet interface code. More...
Classes | |
class | CommandStationResponse |
General response class. More... | |
class | ServiceModeResponse |
Service mode response. More... | |
class | SoftwareVersion |
Software version. More... | |
class | CommandStationStatus |
Command station status. More... | |
class | AccessoryDecoderInformation |
Accessory decoder information. More... | |
class | LocomotiveInformation |
Locomotive information. More... | |
class | FunctionStatus |
Function status. More... | |
class | LocomotiveAddress |
Locomotive address. More... | |
class | DoubleHeaderInformation |
Double header information. More... | |
class | DoubleHeaderMuError |
Double header or MU error. More... | |
class | LI100Message |
LI100 messages. More... | |
class | LI100VersionNumbers |
LI100 Version Numbers. More... | |
class | LI101XPressNetAddress |
LI101 XPress Net Address. More... | |
class | XPressNet |
Main XPressNet interface class. More... | |
class | XpressNetEvent |
XPressNet Event class. More... | |
Typedefs | |
typedef int | nibble |
A 4 bit unsigned integer. More... | |
typedef int | ubyte |
An 8 bit unsigned integer. More... | |
typedef int | DecoderLongAddress |
Decoder address, an unsigned 14 bit integer. More... | |
typedef int | ElementAddress |
A 2 bit unsigned integer. More... | |
typedef int | S_14 |
14 Speed steps. More... | |
typedef int | S_27 |
27 Speed steps. More... | |
typedef int | S_28 |
28 Speed steps. More... | |
typedef int | S_128 |
128 Speed steps. More... | |
typedef int | u10 |
An unsigned 10 bit integer. More... | |
typedef int | u3 |
An unsigned 3 bit integer. More... | |
typedef int | u7 |
An unsigned 7 bit integer. More... | |
typedef int | ConsistAddress |
Multi-unit Address. More... | |
Namespace that holds the XPressNet interface code.
This is a cross-platform implementation the XPressNet serial port interface. Based on documentation provided by Lenz Elektronik GMBH (6/2003 third edition). This code works with Tcl 8.4 and later and uses SNIT to implement the classes as snit::types.
Basically, the way this code works is to use a class to interface to the serial port attached to one of Lenz's serial port adapters (LI100, LI100F, or LI101). This code should also work with the LiUSB interface as well.
Xpressnet 2.0.0
Multi-unit Address.
short int xpressnet::DecoderLongAddress |
Decoder address, an unsigned 14 bit integer.
A 2 bit unsigned integer.
A 4 bit unsigned integer.
int xpressnet::S_128 |
128 Speed steps.
int xpressnet::S_14 |
14 Speed steps.
int xpressnet::S_27 |
27 Speed steps.
int xpressnet::S_28 |
28 Speed steps.
int xpressnet::u10 |
An unsigned 10 bit integer.
int xpressnet::u3 |
An unsigned 3 bit integer.
int xpressnet::u7 |
An unsigned 7 bit integer.
unsigned char xpressnet::ubyte |
An 8 bit unsigned integer.
Error type code.
Message type code.
enum xpressnet::TypeCode |
Response types.
Enumerator | |
---|---|
NO_RESPONSE_AVAILABLE | No response available. |
NORMAL_OPERATION_RESUMED | Normal operation resumed. |
TRACK_POWER_OFF | Track power off. |
EMERGENCY_STOP | Emergency stop. |
SERVICE_MODE_ENTRY | Service mode entry. |
PROGRAMMING_INFO_SHORT_CIRCUIT | Programming info. `‘short-circuit’'. |
PROGRAMMING_INFO_DATA_BYTE_NOT_FOUND | Programming info. `‘data byte not found’'. |
PROGRAMMING_INFO_COMMAND_STATION_BUSY | Programming info. `‘command station busy’'. |
PROGRAMMING_INFO_COMMAND_STATION_READY | Programming info. `‘command station ready’'. |
SERVICE_MODE_RESPONSE | Service mode response. |
SOFTWARE_VERSION | Software version. |
COMMAND_STATION_STATUS | Command station status. |
TRANSFER_ERRORS | Transfer errors. |
COMMAND_STATION_BUSY | Command station busy. |
INSTRUCTION_NOT_SUPPORTED | Instruction not supported by command station. |
ACCESSORY_DECODER_INFORMATION | Accessory decoder information. |
LOCOMOTIVE_INFORMATION | Locomotive information. |
FUNCTION_STATUS | Function status. |
LOCOMOTIVE_ADDRESS | Locomotive address. |
DOUBLE_HEADER_INFORMATION | Double header information. |
DOUBLE_HEADER_MU_ERROR | Double header or MU error. |
LI100_MESSAGE | LI100 Messages. |
LI100_VERSION | LI100 Version Numbers. |
LI101_XPRESSNET_ADDRESS | LI101 XPressNet Address. |