|
LCC Fusion Project 1.0
LCC Automation
|
#include <DCCpp.hpp>
Public Member Functions | |
| FunctionsState () | |
| void | clear () |
| void | activate (byte inFunctionNumber) |
| void | inactivate (byte inFunctionNumber) |
| bool | isActivated (byte inFunctionNumber) |
| void | statesSent () |
| bool | isActivationChanged (byte inFunctionNumber) |
Private Attributes | |
| byte | activeFlags [4] |
| byte | activeFlagsSent [4] |
This is a class to handle decoder functions. An instance of this class handle the status of the functions of one decoder. A function can be active or not.
| FunctionsState::FunctionsState | ( | ) |
| void FunctionsState::activate | ( | byte | inFunctionNumber | ) |
| void FunctionsState::clear | ( | ) |
| void FunctionsState::inactivate | ( | byte | inFunctionNumber | ) |
| bool FunctionsState::isActivated | ( | byte | inFunctionNumber | ) |
| bool FunctionsState::isActivationChanged | ( | byte | inFunctionNumber | ) |
Check if the given function had its activation flag changed when sent to the decoder last time. The allowed number goes from 0 to 28, maximum for DCC.
| inFunctionNumber | Number of the function to check. |
Definition at line 72 of file DCCpp.cpp.

| void FunctionsState::statesSent | ( | ) |
|
private |
|
private |