#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) |
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.
void activate | ( | byte | inFunctionNumber | ) |
void inactivate | ( | byte | inFunctionNumber | ) |
bool isActivated | ( | byte | inFunctionNumber | ) |
void statesSent | ( | ) |
bool 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. |