|
Model Railroad System 2.2.2
|
Namespace that holds the NCE interface code. More...
Classes | |
| class | NCE |
| Main NCE Cab Bus interface class. More... | |
Typedefs | |
| typedef int | LocoAddress |
| Locomotive address type. More... | |
| typedef int | ConsistAddress |
| Consist address type. More... | |
| typedef int | AccessoryNumber |
| Accessory address type. More... | |
| typedef int | MacroNumber |
| NCE Macro number. More... | |
| typedef int | CabNumber |
| Cab number type. More... | |
| typedef int | Hours |
| Hours type. More... | |
| typedef int | Minutes |
| Minutes type. More... | |
| typedef int | ScaleClockRatio |
| Scale clock ratio range. More... | |
| typedef int | EchoMode |
| This is really should be an enumeration, but works as a limited range integer. More... | |
| typedef int | Speed28 |
| 28 speed step speeds. More... | |
| typedef int | Speed128 |
| 128 speed step speeds. More... | |
| typedef int | CSAddress |
| CSAddress type. More... | |
| typedef int | UByte |
| Unsigned byte type (data byte). More... | |
| typedef listtype | RAMData |
| Datalist for RAM data, 1 to 16 unsigned bytes. More... | |
| typedef char * | LCDMessage16 |
| Data for 16 character LCD lines. More... | |
| typedef char * | LCDMessage8 |
| Data for 8 character LCD lines. More... | |
| typedef listtype | RawPacket |
| Raw packets for writing raw packets to the temp queue. More... | |
| typedef listtype | RawTrackPacket |
| Raw packets for writing raw packets to the track queue. More... | |
| typedef listtype | RAMData8 |
| Datalist for RAM data 8 unsigned bytes. More... | |
| typedef int | MomentumLevel |
| Momentum level. More... | |
| typedef int | AspectBits |
| Aspect bit mask. More... | |
Enumerations | |
| enum | SpeedMode { S14 , S28 , S128 } |
| enum | Direction { Forward , Reverse } |
Functions | |
| ErrorMessage (code) | |
| Return the error message, given the error code. More... | |
Namespace that holds the NCE interface code.
This is a cross-platform implementation the NCE Cab Bus serial port interface. Based on documentation provided by NCE (usb_1.pdf and Bincmds.pdf).
Basically, the way this code works is to use a class to interface to the real RS232 port attached to a CS02 command station OR the 'virtual' serial port implemented by the NCE USB Interface Board connected to the NCE Cab Bus.
NCE 1.0.0
Accessory address type.
| int nce::AspectBits |
Aspect bit mask.
| int nce::CabNumber |
Cab number type.
Consist address type.
| unsigned short int nce::CSAddress |
CSAddress type.
| int nce::EchoMode |
This is really should be an enumeration, but works as a limited range integer.
Allowed values are:
| int nce::Hours |
Hours type.
| char nce::LCDMessage16[16] |
Data for 16 character LCD lines.
| char nce::LCDMessage8[8] |
Data for 8 character LCD lines.
| int nce::LocoAddress |
Locomotive address type.
| int nce::MacroNumber |
NCE Macro number.
| int nce::Minutes |
Minutes type.
Momentum level.
| list nce::RAMData |
Datalist for RAM data, 1 to 16 unsigned bytes.
| list nce::RAMData8 |
Datalist for RAM data 8 unsigned bytes.
| list nce::RawPacket |
Raw packets for writing raw packets to the temp queue.
| list nce::RawTrackPacket |
Raw packets for writing raw packets to the track queue.
Scale clock ratio range.
| int nce::Speed128 |
128 speed step speeds.
| int nce::Speed28 |
28 speed step speeds.
| unsigned char nce::UByte |
Unsigned byte type (data byte).
| enum nce::Direction |
| enum nce::SpeedMode |
| nce::ErrorMessage | ( | code | ) |
Return the error message, given the error code.
This function returns the error message associated with a given error code.
| code | Error code returned. |