class documentation
Function Group 1 Packet
Function group 1 commands are built for specific DCC addresses and are retained on the packet list for periodic transmission. The function number and state may be updated.
| Method | __init__ |
Construct a Function Group 1 Command |
| Method | update |
Update Function Group 1 command |
| Constant | TYPE |
F - Function Group 1 Command |
| Instance Variable | _address |
Undocumented |
| Instance Variable | _byte |
Undocumented |
| Instance Variable | _type |
Undocumented |
Inherited from CommandPacket:
| Method | is |
Is Locked |
| Method | set |
Set buffer contents |
| Constant | BASE |
DCC long mobile address range base |
| Constant | MAX |
DCC long address upper limit (inclusive) |
| Constant | MIN |
DCC long address lower limit (inclusive) |
| Instance Variable | NOT |
Return value for command not sent (command being updated) |
| Instance Variable | SENT |
Return value for command serialised |
| Instance Variable | SENT |
Return valued for Program on Main second send |
| Property | address |
Get Address |
| Property | packet |
Get the Packet Buffer |
| Property | type |
Get the command type |
| Instance Variable | _packet |
Undocumented |
Construct a Function Group 1 Command
This constructs a function group one command. It calls __init__ in the base class. It sets the type, address, function number and function state. Function numbers and associated states may be updated later.
Note
Parameters not validated here.
| Parameters | |
| address | DCC address of target decoder |
| f | The group 1 function number to be set or unset |
| state | may be set or unset (1 or 0) |