Model Railroad System  2.2.2
Public Member Functions | Private Attributes | List of all members
xpressnet::AccessoryDecoderInformation Class Reference

Accessory decoder information. More...

Public Member Functions

 AccessoryDecoderInformation (name, count,...)
 Constructor. More...
 
 NumberOfFeedbackElements ()
 Return the number of feedback elements. More...
 
 Address (index)
 Return address. More...
 
 Completed (index)
 Return completed flag. More...
 
 AccessoryType (index)
 Return accessory type. More...
 
 Nibble (index)
 Return nibble code. More...
 
 TurnoutStatus (index, nibble)
 Return turnout status. More...
 

Private Attributes

 _numberOfFeedbackElements
 Number of Accessory Decoder feedback elements. More...
 
 _address
 Address value. More...
 
 _completed
 Completion flag. More...
 
 _accessory_type
 Accessory type. More...
 
 _nibble
 Nibble value. More...
 
 _t1
 Lower nibble turnout status. More...
 
 _t2
 Upper nibble turnout status. More...
 

Detailed Description

Accessory decoder information.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ AccessoryDecoderInformation()

xpressnet::AccessoryDecoderInformation::AccessoryDecoderInformation ( name  ,
count  ,
  ... 
)

Constructor.

Parameters
countNumber of Accessory Decoder feedback elements (1 through 7).
argsAddress and data bytes.

Member Function Documentation

◆ AccessoryType()

xpressnet::AccessoryDecoderInformation::AccessoryType ( index  )

Return accessory type.

Parameters
indexElement index.

◆ Address()

xpressnet::AccessoryDecoderInformation::Address ( index  )

Return address.

Parameters
indexElement index.

◆ Completed()

xpressnet::AccessoryDecoderInformation::Completed ( index  )

Return completed flag.

Parameters
indexElement index.

◆ Nibble()

xpressnet::AccessoryDecoderInformation::Nibble ( index  )

Return nibble code.

Parameters
indexElement index.

◆ NumberOfFeedbackElements()

xpressnet::AccessoryDecoderInformation::NumberOfFeedbackElements ( )

Return the number of feedback elements.

◆ TurnoutStatus()

xpressnet::AccessoryDecoderInformation::TurnoutStatus ( index  ,
nibble   
)

Return turnout status.

Parameters
indexElement index.
nibbleWhich turnout?

Member Data Documentation

◆ _accessory_type

xpressnet::AccessoryDecoderInformation::_accessory_type
private

Accessory type.

◆ _address

xpressnet::AccessoryDecoderInformation::_address
private

Address value.

◆ _completed

xpressnet::AccessoryDecoderInformation::_completed
private

Completion flag.

◆ _nibble

xpressnet::AccessoryDecoderInformation::_nibble
private

Nibble value.

◆ _numberOfFeedbackElements

xpressnet::AccessoryDecoderInformation::_numberOfFeedbackElements
private

Number of Accessory Decoder feedback elements.

◆ _t1

xpressnet::AccessoryDecoderInformation::_t1
private

Lower nibble turnout status.

◆ _t2

xpressnet::AccessoryDecoderInformation::_t2
private

Upper nibble turnout status.