#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) |
void | printActivated () |
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. |
void FunctionsState::printActivated | ( | ) |
void FunctionsState::statesSent | ( | ) |