48#ifndef _BUTTONTOSWITCH_H_
49#define _BUTTONTOSWITCH_H_
55#define _HwMinDbncTime 20
56#define _StdPollDelay 10
57#define _MinSrvcTime 100
58#define _InvalidPinNum 0xFF
61const uint8_t IsOnBitPos {0};
62const uint8_t IsEnabledBitPos{1};
63const uint8_t PilotOnBitPos{2};
64const uint8_t WrnngOnBitPos{3};
65const uint8_t IsVoidedBitPos{4};
66const uint8_t IsOnScndryBitPos{5};
67const uint8_t OtptCurValBitPos{16};
91typedef void (*fncPtrType)();
92typedef fncPtrType (*ptrToTrnFnc)();
97typedef void (*fncVdPtrPrmPtrType)(
void*);
98typedef fncVdPtrPrmPtrType (*ptrToTrnFncVdPtr)(
void*);
101unsigned long int findMCD(
unsigned long int a,
unsigned long int b);
142 static unsigned long int _updTimerPeriod;
154 static void _ISRMpbsRfrshCb();
164 const unsigned long int _stdMinDbncTime {_HwMinDbncTime};
166 uint8_t _mpbttnPin{};
169 unsigned long int _dbncTimeOrigSett{};
171 bool _beginDisabled{
false};
172 unsigned long int _dbncRlsTimerStrt{0};
173 unsigned long int _dbncRlsTimeTempSett{0};
174 unsigned long int _dbncTimerStrt{0};
175 unsigned long int _dbncTimeTempSett{0};
176 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOff{
nullptr};
177 void* _fnVdPtrPrmWhnTrnOffArgPtr{
nullptr};
178 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOn{
nullptr};
179 void* _fnVdPtrPrmWhnTrnOnArgPtr{
nullptr};
180 void (*_fnWhnTrnOff)() {
nullptr};
181 void (*_fnWhnTrnOn)() {
nullptr};
183 bool _isEnabled{
true};
184 volatile bool _isOn{
false};
185 bool _isOnDisabled{
false};
186 volatile bool _isPressed{
false};
187 unsigned long int _lstPollTime{0};
188 fdaDmpbStts _mpbFdaState {stOffNotVPP};
190 volatile bool _outputsChange {
false};
191 uint32_t _outputsChangeCnt{0};
192 unsigned long int _pollPeriodMs{0};
193 bool _prssRlsCcl{
false};
194 unsigned long int _strtDelay {0};
195 bool _sttChng {
true};
196 bool _updTmrAttchd{
false};
197 volatile bool _validDisablePend{
false};
198 volatile bool _validEnablePend{
false};
199 volatile bool _validPressPend{
false};
200 volatile bool _validReleasePend{
false};
203 const bool getIsPressed()
const;
204 virtual void mpbPollCallback();
205 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
208 void _setIsEnabled(
const bool &newEnabledValue);
209 void _setLstPollTime(
const unsigned long int &newLstPollTIme);
213 virtual void updFdaState();
215 unsigned long int _updTmrsMCDCalc();
216 virtual bool updValidPressesStatus();
232 DbncdMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0);
261 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
460 bool init(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0);
514 bool setDbncTime(
const unsigned long int &newDbncTime);
539 void setFVPPWhnTrnOff(fncVdPtrPrmPtrType newFVPPWhnTrnOff,
void* argPtr =
nullptr);
556 void setFVPPWhnTrnOn(fncVdPtrPrmPtrType newFVPPWhnTrnOn,
void* argPtr =
nullptr);
614 DbncdDlydMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
633 bool init(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
643 void setStrtDelay(
const unsigned long int &newStrtDelay);
678 bool _isLatched{
false};
679 fdaLmpbStts _mpbFdaState {stOffNotVPP};
680 bool _trnOffASAP{
true};
681 volatile bool _validUnlatchPend{
false};
682 volatile bool _validUnlatchRlsPend{
false};
684 virtual void mpbPollCallback();
685 virtual void stDisabled_In(){};
686 virtual void stDisabled_Out(){};
687 virtual void stLtchNVUP_Do(){};
688 virtual void stOffNotVPP_In(){};
689 virtual void stOffNotVPP_Out(){};
690 virtual void stOffNVURP_Do(){};
691 virtual void stOffVPP_Out(){};
692 virtual void stOffVURP_Out(){};
693 virtual void stOnNVRP_Do(){};
694 virtual void updFdaState();
695 virtual void updValidUnlatchStatus() = 0;
706 LtchMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
720 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
812 virtual void stOffNVURP_Do();
813 virtual void updValidUnlatchStatus();
826 TgglLtchMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
852 bool _tmRstbl {
true};
853 unsigned long int _srvcTime {};
854 unsigned long int _srvcTimerStrt{0};
856 virtual void stOffNotVPP_Out();
857 virtual void stOffVPP_Out();
858 virtual void updValidUnlatchStatus();
873 TmLtchMPBttn(
const uint8_t &mpbttnPin,
const unsigned long int &svcTime,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
906 bool setSrvcTime(
const unsigned long int &newSrvcTime);
931 unsigned int _wrnngPrctg {0};
933 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffPilot{
nullptr};
934 void* _fnVdPtrPrmWhnTrnOffPilotArgPtr{
nullptr};
935 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnPilot{
nullptr};
936 void* _fnVdPtrPrmWhnTrnOnPilotArgPtr{
nullptr};
937 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffWrnng{
nullptr};
938 void* _fnVdPtrPrmWhnTrnOffWrnngArgPtr{
nullptr};
939 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnWrnng{
nullptr};
940 void* _fnVdPtrPrmWhnTrnOnWrnngArgPtr{
nullptr};
941 void (*_fnWhnTrnOffPilot)() {
nullptr};
942 void (*_fnWhnTrnOffWrnng)() {
nullptr};
943 void (*_fnWhnTrnOnPilot)() {
nullptr};
944 void (*_fnWhnTrnOnWrnng)() {
nullptr};
945 bool _keepPilot{
false};
946 volatile bool _pilotOn{
false};
947 unsigned long int _wrnngMs{0};
948 volatile bool _wrnngOn {
false};
950 bool _validWrnngSetPend{
false};
951 bool _validWrnngResetPend{
false};
952 bool _validPilotSetPend{
false};
953 bool _validPilotResetPend{
false};
955 virtual void mpbPollCallback();
956 uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
957 virtual void stDisabled_In();
958 virtual void stLtchNVUP_Do();
959 virtual void stOffNotVPP_In();
960 virtual void stOffVPP_Out();
961 virtual void stOnNVRP_Do();
962 void _turnOffPilot();
963 void _turnOffWrnng();
981 HntdTmLtchMPBttn(
const uint8_t &mpbttnPin,
const unsigned long int &svcTime,
const unsigned int &wrnngPrctg = 0,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
995 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
1237 bool setSrvcTime(
const unsigned long int &newSvcTime);
1265 bool _xtrnUnltchPRlsCcl {
false};
1267 virtual void stOffNVURP_Do();
1268 virtual void updValidUnlatchStatus();
1289 const bool &pulledUp,
const bool &typeNO,
const unsigned long int &dbncTimeOrigSett,
const unsigned long int &strtDelay);
1298 const bool &pulledUp,
const bool &typeNO,
const unsigned long int &dbncTimeOrigSett,
const unsigned long int &strtDelay);
1302 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
1350 volatile bool _isOnScndry{
false};
1351 fdaDALmpbStts _mpbFdaState {stOffNotVPP};
1352 unsigned long _scndModActvDly {2000};
1353 unsigned long _scndModTmrStrt {0};
1354 bool _validScndModPend{
false};
1356 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffScndry{
nullptr};
1357 void* _fnVdPtrPrmWhnTrnOffScndryArgPtr{
nullptr};
1358 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnScndry{
nullptr};
1359 void* _fnVdPtrPrmWhnTrnOnScndryArgPtr{
nullptr};
1360 void (*_fnWhnTrnOffScndry)() {
nullptr};
1361 void (*_fnWhnTrnOnScndry)() {
nullptr};
1363 virtual void mpbPollCallback();
1364 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
1365 virtual void stDisabled_In(){};
1366 virtual void stOnEndScndMod_Out(){};
1367 virtual void stOnScndMod_Do() = 0;
1368 virtual void stOnStrtScndMod_In(){};
1369 virtual void _turnOffScndry();
1370 virtual void _turnOnScndry();
1371 virtual void updFdaState();
1372 virtual bool updValidPressesStatus();
1373 virtual void updValidUnlatchStatus();
1385 DblActnLtchMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
1394 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
1542 virtual void stOnEndScndMod_Out();
1543 virtual void stOnScndMod_Do();
1544 virtual void stOnStrtScndMod_In();
1555 DDlydDALtchMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
1587 bool _autoSwpDirOnEnd{
true};
1588 bool _autoSwpDirOnPrss{
false};
1589 bool _curSldrDirUp{
true};
1590 uint16_t _initOtptCurVal{};
1591 uint16_t _otptCurVal{};
1592 bool _otptCurValIsMax{
false};
1593 bool _otptCurValIsMin{
false};
1594 unsigned long _otptSldrSpd{1};
1595 uint16_t _otptSldrStpSize{0x01};
1596 uint16_t _otptValMax{0xFFFF};
1597 uint16_t _otptValMin{0x0000};
1599 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffSldrMax{
nullptr};
1600 void* _fnVdPtrPrmWhnTrnOffSldrMaxArgPtr{
nullptr};
1601 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnSldrMax{
nullptr};
1602 void* _fnVdPtrPrmWhnTrnOnSldrMaxArgPtr{
nullptr};
1603 void (*_fnWhnTrnOffSldrMax)() {
nullptr};
1604 void (*_fnWhnTrnOnSldrMax)() {
nullptr};
1606 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffSldrMin{
nullptr};
1607 void* _fnVdPtrPrmWhnTrnOffSldrMinArgPtr{
nullptr};
1608 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnSldrMin{
nullptr};
1609 void* _fnVdPtrPrmWhnTrnOnSldrMinArgPtr{
nullptr};
1610 void (*_fnWhnTrnOffSldrMin)() {
nullptr};
1611 void (*_fnWhnTrnOnSldrMin)() {
nullptr};
1613 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffSldrDirUp{
nullptr};
1614 void* _fnVdPtrPrmWhnTrnOffSldrDirUpArgPtr{
nullptr};
1615 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnSldrDirUp{
nullptr};
1616 void* _fnVdPtrPrmWhnTrnOnSldrDirUpArgPtr{
nullptr};
1617 void (*_fnWhnTrnOffSldrDirUp)() {
nullptr};
1618 void (*_fnWhnTrnOnSldrDirUp)() {
nullptr};
1620 void _ntfyChngSldrDir();
1621 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
1622 bool _setSldrDir(
const bool &newVal);
1623 void stOnEndScndMod_Out();
1624 virtual void stOnScndMod_Do();
1625 virtual void stOnStrtScndMod_In();
1626 void _turnOffSldrMax();
1627 void _turnOnSldrMax();
1628 void _turnOffSldrMin();
1629 void _turnOnSldrMin();
1643 SldrDALtchMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0,
const uint16_t initVal = 0xFFFF);
2167 void setFrcdOtptWhnVdd(
const bool &newVal);
2168 void setStOnWhnOtpFrcd(
const bool &newVal);
2188 fdaVmpbStts _mpbFdaState {stOffNotVPP};
2190 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffVdd{
nullptr};
2191 void* _fnVdPtrPrmWhnTrnOffVddArgPtr{
nullptr};
2192 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnVdd{
nullptr};
2193 void* _fnVdPtrPrmWhnTrnOnVddArgPtr{
nullptr};
2194 void (*_fnWhnTrnOffVdd)() {
nullptr};
2195 void (*_fnWhnTrnOnVdd)() {
nullptr};
2196 bool _frcOtptLvlWhnVdd {
true};
2197 bool _isVoided{
false};
2198 bool _stOnWhnOtptFrcd{
false};
2199 bool _validVoidPend{
false};
2200 bool _validUnvoidPend{
false};
2202 virtual void mpbPollCallback();
2203 uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
2204 bool setVoided(
const bool &newVoidValue);
2205 virtual void stDisabled_In();
2206 virtual void stDisabled_Out();
2207 virtual void stOffNotVPP_In(){};
2208 virtual void stOffVddNVUP_Do(){};
2209 virtual void stOffVPP_Do(){};
2212 virtual void updFdaState();
2213 virtual bool updVoidStatus() = 0;
2227 VdblMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0,
const bool &isOnDisabled =
false);
2397 unsigned long int _voidTime;
2398 unsigned long int _voidTmrStrt{0};
2400 virtual void stOffNotVPP_In();
2401 virtual void stOffVddNVUP_Do();
2402 virtual void stOffVPP_Do();
2403 bool updIsPressed();
2404 virtual bool updVoidStatus();
2418 TmVdblMPBttn(
const uint8_t &mpbttnPin,
unsigned long int voidTime,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0,
const bool &isOnDisabled =
false);
2426 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
2449 bool setVoidTime(
const unsigned long int &newVoidTime);
2471 virtual void stOffVddNVUP_Do();
2472 virtual bool updVoidStatus();
2485 SnglSrvcVdblMPBttn(
const uint8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
2493 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
void clrStatus(bool clrIsOn=true)
See DbncddMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:2345
~DDlydDALtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:2341
DDlydDALtchMPBttn()
Default class constructor.
Definition ButtonToSwitch.cpp:2332
bool setScndModActvDly(const unsigned long &newVal)
Sets a new value for the scndModActvDly class attribute.
Definition ButtonToSwitch.cpp:2064
void setFnWhnTrnOnScndryPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object enters the Secondary On State.
Definition ButtonToSwitch.cpp:2023
fncVdPtrPrmPtrType getFVPPWhnTrnOnScndry()
Returns a pointer to a function that is set to execute every time the object enters the Secondary Mod...
Definition ButtonToSwitch.cpp:1972
fncPtrType getFnWhnTrnOnScndry()
Returns the function that is set to execute every time the object enters the Secondary On State.
Definition ButtonToSwitch.cpp:1957
void setFVPPWhnTrnOnScndryArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:2056
void * getFVPPWhnTrnOffScndryArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:1967
void clrStatus(bool clrIsOn=true)
See DbncddMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:1942
bool getIsOnScndry()
Returns the current value of the isOnScndry attribute flag.
Definition ButtonToSwitch.cpp:1982
DblActnLtchMPBttn()
Abstract Class default constructor.
Definition ButtonToSwitch.cpp:1921
void setFVPPWhnTrnOnScndry(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Secondary Mode On State.
Definition ButtonToSwitch.cpp:2047
void setFVPPWhnTrnOffScndry(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Secondary Mode Off State.
Definition ButtonToSwitch.cpp:2030
unsigned long getScndModActvDly()
Returns the current value of the scndModActvDly class attribute.
Definition ButtonToSwitch.cpp:1987
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch.cpp:1934
void * getFVPPWhnTrnOnScndryArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:1977
void setFnWhnTrnOffScndryPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object enters the Secondary Off State...
Definition ButtonToSwitch.cpp:2015
fncPtrType getFnWhnTrnOffScndry()
returns the function that is set to execute every time the object enters the Secondary Off State.
Definition ButtonToSwitch.cpp:1952
void setFVPPWhnTrnOffScndryArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:2039
~DblActnLtchMPBttn()
Virtual destructor.
Definition ButtonToSwitch.cpp:1930
fncVdPtrPrmPtrType getFVPPWhnTrnOffScndry()
Returns a pointer to a function that is set to execute every time the object enters the Secondary Mod...
Definition ButtonToSwitch.cpp:1962
Models a Debounced Delayed MPB (DD-MPB).
Definition ButtonToSwitch.h:598
virtual ~DbncdDlydMPBttn()
Class destructor.
Definition ButtonToSwitch.cpp:918
DbncdDlydMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:901
void setStrtDelay(const unsigned long int &newStrtDelay)
Sets a new value to the "Start Delay" strtDelay attribute.
Definition ButtonToSwitch.cpp:932
bool init(const uint8_t &mpbttnPin, const bool &pulledUp=true, const bool &typeNO=true, const unsigned long int &dbncTimeOrigSett=0, const unsigned long int &strtDelay=0)
see DbncdMPBttn::init(const uint8_t, const bool, const bool, const unsigned long int)
Definition ButtonToSwitch.cpp:922
void setBeginDisabled(const bool &newBeginDisabled=false)
Sets the starting isDisabled state.
Definition ButtonToSwitch.cpp:537
fncPtrType getFnWhnTrnOn()
Returns the function that is set to execute every time the object enters the On State.
Definition ButtonToSwitch.cpp:252
void setFVPPWhnTrnOff(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Off State.
Definition ButtonToSwitch.cpp:573
const unsigned long int getPollPeriodMs()
Returns the poll period time setting attribute's value.
Definition ButtonToSwitch.cpp:312
void resetFda()
Resets the MPB behavior automaton to it's Initial or Start State
Definition ButtonToSwitch.cpp:488
void clrStatus(bool clrIsOn=true)
Clears and resets flags, timers and counters modified through the object's signals processing.
Definition ButtonToSwitch.cpp:192
const unsigned long int getCurDbncTime() const
Returns the current debounce period time set for the object.
Definition ButtonToSwitch.cpp:242
void enable()
Enables the input signal processing.
Definition ButtonToSwitch.cpp:221
bool pause()
Pauses the software timer updating the computation of the object's internal flags value (object's sta...
Definition ButtonToSwitch.cpp:377
virtual ~DbncdMPBttn()
Default virtual destructor.
Definition ButtonToSwitch.cpp:155
fncVdPtrPrmPtrType getFVPPWhnTrnOff()
Returns a pointer to a function that is set to execute every time the object enters the Off State.
Definition ButtonToSwitch.cpp:257
void setIsOnDisabled(const bool &newIsOnDisabled)
Sets the value of the isOnDisabled attribute.
Definition ButtonToSwitch.cpp:622
bool init(const uint8_t &mpbttnPin, const bool &pulledUp=true, const bool &typeNO=true, const unsigned long int &dbncTimeOrigSett=0)
Initializes an object instantiated by the default constructor.
Definition ButtonToSwitch.cpp:327
bool end()
Detaches the object from the timer that monitors the input pins, compute and updates the object's sta...
Definition ButtonToSwitch.cpp:226
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
Attaches the instantiated object to a timer that monitors the input pins and updates the object statu...
Definition ButtonToSwitch.cpp:160
void resetDbncTime()
Resets the debounce process time of the object to the value used at instantiation.
Definition ButtonToSwitch.cpp:482
void setFVPPWhnTrnOn(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the On State.
Definition ButtonToSwitch.cpp:589
fncVdPtrPrmPtrType getFVPPWhnTrnOn()
Returns a pointer to a function that is set to execute every time the object enters the On State.
Definition ButtonToSwitch.cpp:267
DbncdMPBttn()
Default class constructor.
Definition ButtonToSwitch.cpp:99
void disable()
Disables the input signal processing, ignoring the changes of its values.
Definition ButtonToSwitch.cpp:216
bool resume()
Restarts the software timer updating the calculation of the object internal flags.
Definition ButtonToSwitch.cpp:496
const bool getIsEnabled() const
Returns the value of the isEnabled attribute flag, indicating the Enabled or Disabled status of the o...
Definition ButtonToSwitch.cpp:277
const unsigned long int getLstPollTime()
Returns the time stamp of the last state update for the object.
Definition ButtonToSwitch.cpp:297
const bool getIsOnDisabled() const
Returns the value of the isOnDisabled attribute.
Definition ButtonToSwitch.cpp:287
void * getFVPPWhnTrnOnArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:272
void setFVPPWhnTrnOnArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:598
void * getFVPPWhnTrnOffArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:262
void setFnWhnTrnOffPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object enters the Off State.
Definition ButtonToSwitch.cpp:559
const bool getOutputsChange() const
Returns the value of the outputsChange attribute flag.
Definition ButtonToSwitch.cpp:307
const bool getIsOn() const
Returns the value of the isOn attribute flag.
Definition ButtonToSwitch.cpp:282
void setFVPPWhnTrnOffArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:582
bool getUpdTmrAttchd()
Returns the value of the Attached to the update timer attribute.
Definition ButtonToSwitch.cpp:322
void setFnWhnTrnOnPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object enters the On State.
Definition ButtonToSwitch.cpp:566
unsigned long int getStrtDelay()
Returns the current value of strtDelay attribute.
Definition ButtonToSwitch.cpp:317
const uint32_t getOtptsSttsPkgd()
Returns the relevant attribute flags values for the object state encoded as a 32 bits value.
Definition ButtonToSwitch.cpp:302
fncPtrType getFnWhnTrnOff()
Returns the function that is set to execute every time the object enters the Off State.
Definition ButtonToSwitch.cpp:247
void setOutputsChange(bool newOutputsChange)
Sets the value of the attribute flag indicating if a change took place in any of the output attribute...
Definition ButtonToSwitch.cpp:645
bool setDbncTime(const unsigned long int &newDbncTime)
Sets the debounce process time.
Definition ButtonToSwitch.cpp:544
bool setSrvcTime(const unsigned long int &newSvcTime)
See TmLtchMPBttn::setSrvcTime(const unsigned long int)
Definition ButtonToSwitch.cpp:1631
fncVdPtrPrmPtrType getFVPPWhnTrnOffWrnng()
Returns a pointer to a function that is set to execute every time the object enters the Warning Off S...
Definition ButtonToSwitch.cpp:1464
void * getFVPPWhnTrnOffWrnngArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:1469
fncPtrType getFnWhnTrnOnPilot()
Returns the function that is set to execute every time the object's Pilot attribute flag enters the O...
Definition ButtonToSwitch.cpp:1434
void * getFVPPWhnTrnOnWrnngArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:1479
fncVdPtrPrmPtrType getFVPPWhnTrnOnWrnng()
Returns a pointer to a function that is set to execute every time the object enters the Warning On St...
Definition ButtonToSwitch.cpp:1474
void setFnWhnTrnOffWrnngPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object's Warning is reset.
Definition ButtonToSwitch.cpp:1535
void setFVPPWhnTrnOnWrnngArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:1616
fncPtrType getFnWhnTrnOffWrnng()
Returns the function that is set to execute every time the object's Warning attribute flag enters the...
Definition ButtonToSwitch.cpp:1429
void setFVPPWhnTrnOffPilotArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:1565
fncVdPtrPrmPtrType getFVPPWhnTrnOnPilot()
Returns a pointer to a function that is set to execute every time the object enters the Pilot On Stat...
Definition ButtonToSwitch.cpp:1454
const bool getWrnngOn() const
Returns the current value of the warningOn attribute flag.
Definition ButtonToSwitch.cpp:1489
void setFnWhnTrnOnPilotPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object's Pilot is set.
Definition ButtonToSwitch.cpp:1542
const bool getPilotOn() const
Returns the current value of the pilotOn attribute flag.
Definition ButtonToSwitch.cpp:1484
void setFVPPWhnTrnOffPilot(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Pilot Off State.
Definition ButtonToSwitch.cpp:1556
void * getFVPPWhnTrnOffPilotArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:1449
void clrStatus(bool clrIsOn=true)
see DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:1407
fncPtrType getFnWhnTrnOffPilot()
Returns the function that is set to execute every time the object's Pilot attribute flag enters the O...
Definition ButtonToSwitch.cpp:1424
void setFVPPWhnTrnOnPilotArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:1582
HntdTmLtchMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:1368
void setFnWhnTrnOnWrnngPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object's Wrnng is set.
Definition ButtonToSwitch.cpp:1549
void * getFVPPWhnTrnOnPilotArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:1459
void setFVPPWhnTrnOffWrnng(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Warning Off State.
Definition ButtonToSwitch.cpp:1590
bool setWrnngPrctg(const unsigned int &newWrnngPrctg)
Sets the value for the percentage of service time for calculating the warningOn flag value.
Definition ButtonToSwitch.cpp:1643
fncPtrType getFnWhnTrnOnWrnng()
Returns the function that is set to execute every time the object's Warning attribute flag enters the...
Definition ButtonToSwitch.cpp:1439
void setFVPPWhnTrnOffWrnngArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:1599
fncVdPtrPrmPtrType getFVPPWhnTrnOffPilot()
Returns a pointer to a function that is set to execute every time the object enters the Pilot Off Sta...
Definition ButtonToSwitch.cpp:1444
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch.cpp:1399
void setFnWhnTrnOffPilotPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object's Pilot is reset.
Definition ButtonToSwitch.cpp:1528
void setFVPPWhnTrnOnWrnng(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Warning On State.
Definition ButtonToSwitch.cpp:1607
void setFVPPWhnTrnOnPilot(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Pilot On State.
Definition ButtonToSwitch.cpp:1573
void setKeepPilot(const bool &newKeepPilot)
Sets the configuration of the keepPilot service attribute.
Definition ButtonToSwitch.cpp:1624
~HntdTmLtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:1395
const bool getIsLatched() const
Returns the value of the isLatched attribute flag, indicating the Latched or Unlatched condition of t...
Definition ButtonToSwitch.cpp:979
bool unlatch()
Sets the values of the flags needed to unlatch a latched MPB.
Definition ButtonToSwitch.cpp:1035
const bool getUnlatchRlsPend() const
Returns the value of the "Valid Unlatch Release Pending" attribute.
Definition ButtonToSwitch.cpp:994
const bool getUnlatchPend() const
Returns the value of the "Valid Unlatch Pending" attribute.
Definition ButtonToSwitch.cpp:989
virtual ~LtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:959
void setUnlatchPend(const bool &newVal)
Sets the value of the "Valid Unlatch Pending" attribute.
Definition ButtonToSwitch.cpp:1021
void setTrnOffASAP(const bool &newVal)
Sets the value of the trnOffASAP attribute.
Definition ButtonToSwitch.cpp:1014
bool getTrnOffASAP()
Returns the value of the trnOffASAP attribute flag.
Definition ButtonToSwitch.cpp:984
void setUnlatchRlsPend(const bool &newVal)
Sets the value of the "Valid Unlatch Release Pending" attribute.
Definition ButtonToSwitch.cpp:1028
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch.cpp:962
void clrStatus(bool clrIsOn=true)
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:970
LtchMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:941
void setFnWhnTrnOnSldrDirUp(void(*newFnWhnTrnOn)())
Sets the function that will be called every time the slider direction is set to be incrementing (up).
Definition ButtonToSwitch.cpp:2562
fncPtrType getFnWhnTrnOnSldrDirUp()
Returns the function set to be called when the slider direction is set to be incrementing (up).
Definition ButtonToSwitch.cpp:2403
void * getFVPPWhnTrnOnSldrMinArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch.cpp:2483
fncVdPtrPrmPtrType getFVPPWhnTrnOnSldrDirUp()
Returns a pointer to the function that is set to be executed every time the slider direction is set t...
Definition ButtonToSwitch.cpp:2438
void setFVPPWhnTrnOffSldrMaxArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOffSldrMax() metho...
Definition ButtonToSwitch.cpp:2638
fncPtrType getFnWhnTrnOffSldrMax()
Returns the function that is set to be executed every time the object's Output Current Value (otptCur...
Definition ButtonToSwitch.cpp:2408
void clrStatus(bool clrIsOn=true)
Definition ButtonToSwitch.cpp:2389
void setFnWhnTrnOffSldrDirUp(void(*newFnWhnTrnOff)())
Sets the function that will be called every time the slider direction is set to be decrementing (down...
Definition ButtonToSwitch.cpp:2555
void setFVPPWhnTrnOffSldrMin(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2661
fncVdPtrPrmPtrType getFVPPWhnTrnOffSldrDirUp()
Returns a pointer to the function that is set to be executed every time the slider direction is set t...
Definition ButtonToSwitch.cpp:2428
void setFVPPWhnTrnOnSldrMin(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2677
bool setOtptSldrSpd(const uint16_t &newVal)
Sets the output slider speed (otptSldrSpd) attribute.
Definition ButtonToSwitch.cpp:2706
void setFVPPWhnTrnOnSldrMax(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2645
void setFVPPWhnTrnOnSldrDirUpArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOnSldrDirUp() meth...
Definition ButtonToSwitch.cpp:2622
uint16_t getOtptValMax()
Returns the top output current value register setting.
Definition ButtonToSwitch.cpp:2515
bool getOtptCurValIsMin()
Returns the result of comparing the Output Current Value to the Minimum value setting
Definition ButtonToSwitch.cpp:2499
bool setSldrDirDn()
Sets the value of the curSldrDirUp attribute to false.
Definition ButtonToSwitch.cpp:2794
bool setOtptValMax(const uint16_t &newVal)
Sets the output current value register maximum value attribute (otptValMax attribute).
Definition ButtonToSwitch.cpp:2732
void * getFVPPWhnTrnOffSldrMinArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch.cpp:2473
void * getFVPPWhnTrnOffSldrMaxArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch.cpp:2453
bool swapSldrDir()
Inverts the current curSldrDirUp attribute value.
Definition ButtonToSwitch.cpp:2895
void * getFVPPWhnTrnOnSldrDirUpArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the slider d...
Definition ButtonToSwitch.cpp:2443
fncPtrType getFnWhnTrnOnSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch.cpp:2423
void setFVPPWhnTrnOffSldrDirUp(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function that will be called every time the slider direction is set to be decrementing (down).
Definition ButtonToSwitch.cpp:2597
~SldrDALtchMPBttn()
Virtual class destructor.
Definition ButtonToSwitch.cpp:2385
bool setOtptCurVal(const uint16_t &newVal)
Sets the output current value register.
Definition ButtonToSwitch.cpp:2693
fncPtrType getFnWhnTrnOnSldrMax()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch.cpp:2418
uint16_t getOtptCurVal()
Returns the Output Current Value (otpCurVal) attribute.
Definition ButtonToSwitch.cpp:2488
bool setSldrDirUp()
Sets the value of the curSldrDirUp attribute to true.
Definition ButtonToSwitch.cpp:2799
fncVdPtrPrmPtrType getFVPPWhnTrnOnSldrMax()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch.cpp:2458
void setFnWhnTrnOffSldrMaxPtr(void(*newFnWhnTrnOff)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2569
void setFnWhnTrnOnSldrMaxPtr(void(*newFnWhnTrnOn)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) reaches...
Definition ButtonToSwitch.cpp:2583
void * getFVPPWhnTrnOffSldrDirUpArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the slider d...
Definition ButtonToSwitch.cpp:2433
void setFVPPWhnTrnOnSldrDirUp(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function that will be called every time the slider direction is set to be incrementing (up).
Definition ButtonToSwitch.cpp:2613
void setFVPPWhnTrnOnSldrMaxArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOnSldrMax() method...
Definition ButtonToSwitch.cpp:2654
fncVdPtrPrmPtrType getFVPPWhnTrnOffSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch.cpp:2468
void setFVPPWhnTrnOffSldrMinArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOffSldrMin() metho...
Definition ButtonToSwitch.cpp:2670
fncVdPtrPrmPtrType getFVPPWhnTrnOffSldrMax()
Returns the function that is set to be executed every time the object's Output Current Value (otptCur...
Definition ButtonToSwitch.cpp:2448
void setFnWhnTrnOnSldrMinPtr(void(*newFnWhnTrnOn)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2590
SldrDALtchMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:2375
void setFVPPWhnTrnOffSldrDirUpArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOffSldrDirUp() met...
Definition ButtonToSwitch.cpp:2606
fncVdPtrPrmPtrType getFVPPWhnTrnOnSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch.cpp:2478
fncPtrType getFnWhnTrnOffSldrDirUp()
Returns the function set to be called when the slider direction is set to be decrementing (down).
Definition ButtonToSwitch.cpp:2398
bool getSldrDirUp()
Returns the value of the curSldrDirUp attribute.
Definition ButtonToSwitch.cpp:2525
bool setOtptSldrStpSize(const uint16_t &newVal)
Sets the output slider step size (otptSldrStpSize) attribute value.
Definition ButtonToSwitch.cpp:2719
fncPtrType getFnWhnTrnOffSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch.cpp:2413
bool getOtptCurValIsMax()
Returns a boolean value indicating if the "Output Current Value" equals the maximum limit.
Definition ButtonToSwitch.cpp:2493
void setSwpDirOnPrss(const bool &newVal)
Sets the value of the "Auto-Swap Direction On Press" (autoSwpDirOnPrss) attribute.
Definition ButtonToSwitch.cpp:2811
void * getFVPPWhnTrnOnSldrMaxArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch.cpp:2463
bool setOtptValMin(const uint16_t &newVal)
Sets the output current value register minimum value attribute (otptValMin attribute).
Definition ButtonToSwitch.cpp:2751
void setFVPPWhnTrnOffSldrMax(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2629
uint16_t getOtptValMin()
Returns the bottom output current value register setting.
Definition ButtonToSwitch.cpp:2520
unsigned long getOtptSldrSpd()
Returns the current setting for the Output Slider Speed value.
Definition ButtonToSwitch.cpp:2505
void setFVPPWhnTrnOnSldrMinArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOnSldrMin() method...
Definition ButtonToSwitch.cpp:2686
void setFnWhnTrnOffSldrMinPtr(void(*newFnWhnTrnOff)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch.cpp:2576
uint16_t getOtptSldrStpSize()
Returns the current setting for the Output Slider Step Size value.
Definition ButtonToSwitch.cpp:2510
void setSwpDirOnEnd(const bool &newVal)
Sets the value of the "Auto-Swap Direction on Ends" (autoSwpDirOnEnd) attribute.
Definition ButtonToSwitch.cpp:2804
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch.cpp:3491
virtual ~SnglSrvcVdblMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:3487
SnglSrvcVdblMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:3475
TgglLtchMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:1236
virtual ~TgglLtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:1251
TmLtchMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:1283
const unsigned long int getSrvcTime() const
Returns the configured Service Time.
Definition ButtonToSwitch.cpp:1313
void setTmerRstbl(const bool &newIsRstbl)
Configures the timer for the Service Time to be reseted before it reaches unlatching time.
Definition ButtonToSwitch.cpp:1331
bool setSrvcTime(const unsigned long int &newSrvcTime)
Sets a new value to the Service Time attribute.
Definition ButtonToSwitch.cpp:1318
void clrStatus(bool clrIsOn=true)
see DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:1306
virtual ~TmLtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:1302
TmVdblMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:3388
virtual ~TmVdblMPBttn()
Class virtual destructor.
Definition ButtonToSwitch.cpp:3397
void clrStatus()
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:3409
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch.cpp:3401
const unsigned long int getVoidTime() const
Returns the voidTime attribute current value.
Definition ButtonToSwitch.cpp:3416
bool setVoidTime(const unsigned long int &newVoidTime)
Sets a new value to the Void Time attribute.
Definition ButtonToSwitch.cpp:3421
bool setIsVoided()
Sets the value of the isVoided attribute flag to true.
Definition ButtonToSwitch.cpp:3129
void setFVPPWhnTrnOffVddArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:3101
const bool getIsVoided() const
Returns the current value of the isVoided attribute flag.
Definition ButtonToSwitch.cpp:3036
fncPtrType getFnWhnTrnOnVdd()
Returns the function that is set to execute every time the object enters the Voided or "Voided On" St...
Definition ButtonToSwitch.cpp:3006
void clrStatus(bool clrIsOn=true)
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:2992
void setFnWhnTrnOnVddPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object's isVoided attribute flag is s...
Definition ButtonToSwitch.cpp:3078
void setFVPPWhnTrnOffVdd(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Voided Off State a....
Definition ButtonToSwitch.cpp:3092
void * getFVPPWhnTrnOffVddArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:3021
void setFVPPWhnTrnOnVddArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set to execute every time the object enter...
Definition ButtonToSwitch.cpp:3117
virtual ~VdblMPBttn()
Default virtual destructor.
Definition ButtonToSwitch.cpp:2988
VdblMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:2978
fncPtrType getFnWhnTrnOffVdd()
Returns the function that is set to execute every time the object exits the Voided State.
Definition ButtonToSwitch.cpp:3001
void setFnWhnTrnOffVddPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object's isVoided attribute flag is r...
Definition ButtonToSwitch.cpp:3071
bool getFrcOtptLvlWhnVdd()
Returns the value of the frcOtptLvlWhnVdd attribute.
Definition ButtonToSwitch.cpp:3011
bool getStOnWhnOtpFrcd()
Returns the value of the frcOtptLvlWhnVdd attribute.
Definition ButtonToSwitch.cpp:3041
fncVdPtrPrmPtrType getFVPPWhnTrnOnVdd()
Returns a pointer to a function that is set to execute every time the object enters the Voided On Sta...
Definition ButtonToSwitch.cpp:3026
void * getFVPPWhnTrnOnVddArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch.cpp:3031
void setFVPPWhnTrnOnVdd(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Voided On State a....
Definition ButtonToSwitch.cpp:3108
bool setIsNotVoided()
Sets the value of the isVoided attribute flag to false.
Definition ButtonToSwitch.cpp:3124
fncVdPtrPrmPtrType getFVPPWhnTrnOffVdd()
Returns a pointer to a function that is set to execute every time the object enters the Voided Off St...
Definition ButtonToSwitch.cpp:3016
void clrStatus(bool clrIsOn=true)
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch.cpp:1878
XtrnUnltchMPBttn()
Default constructor.
Definition ButtonToSwitch.cpp:1846
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch.cpp:1862
Type to hold the complete set of output attribute flags from any DbncdMPBttn class and subclasses obj...
Definition ButtonToSwitch.h:78