51#ifndef _BUTTONTOSWITCH_ESP32_H_
52#define _BUTTONTOSWITCH_ESP32_H_
57#define _HwMinDbncTime 20
58#define _StdPollDelay 10
59#define _MinSrvcTime 100
60#define _InvalidPinNum GPIO_NUM_NC
61#define _maxValidPinNum GPIO_NUM_MAX-1
64const uint8_t IsOnBitPos {0};
65const uint8_t IsEnabledBitPos{1};
66const uint8_t PilotOnBitPos{2};
67const uint8_t WrnngOnBitPos{3};
68const uint8_t IsVoidedBitPos{4};
69const uint8_t IsOnScndryBitPos{5};
70const uint8_t OtptCurValBitPos{16};
95typedef void (*fncPtrType)();
96typedef fncPtrType (*ptrToTrnFnc)();
101typedef void (*fncVdPtrPrmPtrType)(
void*);
102typedef fncVdPtrPrmPtrType (*ptrToTrnFncVdPtr)(
void*);
131 const unsigned long int _stdMinDbncTime {_HwMinDbncTime};
136 unsigned long int _dbncTimeOrigSett{};
138 bool _beginDisabled{
false};
139 unsigned long int _dbncRlsTimerStrt{0};
140 unsigned long int _dbncRlsTimeTempSett{0};
141 unsigned long int _dbncTimerStrt{0};
142 unsigned long int _dbncTimeTempSett{0};
143 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOff{
nullptr};
144 void* _fnVdPtrPrmWhnTrnOffArgPtr{
nullptr};
145 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOn{
nullptr};
146 void* _fnVdPtrPrmWhnTrnOnArgPtr{
nullptr};
147 fncPtrType _fnWhnTrnOff{
nullptr};
148 fncPtrType _fnWhnTrnOn{
nullptr};
150 bool _isEnabled{
true};
151 volatile bool _isOn{
false};
152 bool _isOnDisabled{
false};
153 volatile bool _isPressed{
false};
154 fdaDmpbStts _mpbFdaState {stOffNotVPP};
156 TimerHandle_t _mpbPollTmrHndl {NULL};
157 String _mpbPollTmrName {
""};
158 bool _outputsChange {
false};
159 uint32_t _outputsChangeCnt{0};
160 bool _outputsChngTskTrggr{
false};
161 bool _prssRlsCcl{
false};
162 unsigned long int _strtDelay {0};
163 bool _sttChng {
true};
164 TaskHandle_t _taskToNotifyHndl {NULL};
165 TaskHandle_t _taskWhileOnHndl{NULL};
166 volatile bool _validDisablePend{
false};
167 volatile bool _validEnablePend{
false};
168 volatile bool _validPressPend{
false};
169 volatile bool _validReleasePend{
false};
171 SemaphoreHandle_t _isOnMutex;
172 SemaphoreHandle_t _strtDelayMutex;
173 SemaphoreHandle_t _updFdaMutex;
176 const bool getIsPressed()
const;
177 static void mpbPollCallback(TimerHandle_t mpbTmrCbArg);
178 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
179 void _setIsEnabled(
const bool &newEnabledValue);
183 virtual void updFdaState();
185 virtual bool updValidPressesStatus();
186 const bool getOutputsChngTskTrggr()
const;
207 DbncdMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0);
230 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
428 bool init(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0);
480 bool setDbncTime(
const unsigned long int &newDbncTime);
505 void setFVPPWhnTrnOff(fncVdPtrPrmPtrType newFVPPWhnTrnOff,
void* argPtr =
nullptr);
522 void setFVPPWhnTrnOn(fncVdPtrPrmPtrType newFVPPWhnTrnOn,
void* argPtr =
nullptr);
605 DbncdDlydMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
624 bool init(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
634 void setStrtDelay(
const unsigned long int &newStrtDelay);
669 bool _isLatched{
false};
670 fdaLmpbStts _mpbFdaState {stOffNotVPP};
671 bool _trnOffASAP{
true};
672 volatile bool _validUnlatchPend{
false};
673 volatile bool _validUnlatchRlsPend{
false};
675 static void mpbPollCallback(TimerHandle_t mpbTmrCbArg);
677 virtual void stDisabled_In(){};
678 virtual void stDisabled_Out(){};
679 virtual void stLtchNVUP_Do(){};
680 virtual void stOffNotVPP_In(){};
681 virtual void stOffNotVPP_Out(){};
682 virtual void stOffNVURP_Do(){};
683 virtual void stOffVPP_Out(){};
684 virtual void stOffVURP_Out(){};
685 virtual void stOnNVRP_Do(){};
686 virtual void updFdaState();
687 virtual void updValidUnlatchStatus() = 0;
698 LtchMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
712 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
804 virtual void stOffNVURP_Do();
805 virtual void updValidUnlatchStatus();
817 TgglLtchMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
843 bool _tmRstbl {
true};
844 unsigned long int _srvcTime {};
845 unsigned long int _srvcTimerStrt{0};
847 virtual void stOffNotVPP_Out();
848 virtual void stOffVPP_Out();
849 virtual void updValidUnlatchStatus();
864 TmLtchMPBttn(
const int8_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);
895 bool setSrvcTime(
const unsigned long int &newSrvcTime);
920 unsigned long int _wrnngMs{0};
921 unsigned int _wrnngPrctg {0};
923 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffPilot{
nullptr};
924 void* _fnVdPtrPrmWhnTrnOffPilotArgPtr{
nullptr};
925 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnPilot{
nullptr};
926 void* _fnVdPtrPrmWhnTrnOnPilotArgPtr{
nullptr};
927 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffWrnng{
nullptr};
928 void* _fnVdPtrPrmWhnTrnOffWrnngArgPtr{
nullptr};
929 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnWrnng{
nullptr};
930 void* _fnVdPtrPrmWhnTrnOnWrnngArgPtr{
nullptr};
931 void (*_fnWhnTrnOffPilot)() {
nullptr};
932 void (*_fnWhnTrnOffWrnng)() {
nullptr};
933 void (*_fnWhnTrnOnPilot)() {
nullptr};
934 void (*_fnWhnTrnOnWrnng)() {
nullptr};
935 bool _keepPilot{
false};
936 volatile bool _pilotOn{
false};
937 volatile bool _wrnngOn {
false};
939 bool _validWrnngSetPend{
false};
940 bool _validWrnngResetPend{
false};
941 bool _validPilotSetPend{
false};
942 bool _validPilotResetPend{
false};
944 static void mpbPollCallback(TimerHandle_t mpbTmrCbArg);
945 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
946 virtual void stDisabled_In();
947 virtual void stLtchNVUP_Do();
948 virtual void stOffNotVPP_In();
949 virtual void stOffVPP_Out();
950 virtual void stOnNVRP_Do();
951 void _turnOffPilot();
952 void _turnOffWrnng();
970 HntdTmLtchMPBttn(
const int8_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);
984 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
1226 bool setSrvcTime(
const unsigned long int &newSvcTime);
1254 bool _xtrnUnltchPRlsCcl {
false};
1256 virtual void stOffNVURP_Do();
1257 virtual void updValidUnlatchStatus();
1278 const bool &pulledUp,
const bool &typeNO,
const unsigned long int &dbncTimeOrigSett,
const unsigned long int &strtDelay);
1287 const bool &pulledUp,
const bool &typeNO,
const unsigned long int &dbncTimeOrigSett,
const unsigned long int &strtDelay);
1292 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
1340 volatile bool _isOnScndry{
false};
1341 fdaDALmpbStts _mpbFdaState {stOffNotVPP};
1342 unsigned long _scndModActvDly {2000};
1343 unsigned long _scndModTmrStrt {0};
1344 bool _validScndModPend{
false};
1346 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffScndry{
nullptr};
1347 void* _fnVdPtrPrmWhnTrnOffScndryArgPtr{
nullptr};
1348 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnScndry{
nullptr};
1349 void* _fnVdPtrPrmWhnTrnOnScndryArgPtr{
nullptr};
1350 void (*_fnWhnTrnOffScndry)() {
nullptr};
1351 void (*_fnWhnTrnOnScndry)() {
nullptr};
1352 TaskHandle_t _taskWhileOnScndryHndl{NULL};
1354 static void mpbPollCallback(TimerHandle_t mpbTmrCbArg);
1355 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
1356 virtual void stDisabled_In(){};
1357 virtual void stOnEndScndMod_Out(){};
1358 virtual void stOnScndMod_Do() = 0;
1359 virtual void stOnStrtScndMod_In(){};
1360 virtual void _turnOffScndry();
1361 virtual void _turnOnScndry();
1362 virtual void updFdaState();
1363 virtual bool updValidPressesStatus();
1364 virtual void updValidUnlatchStatus();
1377 DblActnLtchMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
1386 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
1563 virtual void stOnEndScndMod_Out();
1564 virtual void stOnScndMod_Do();
1565 virtual void stOnStrtScndMod_In();
1577 DDlydDALtchMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
1610 bool _autoSwpDirOnEnd{
true};
1611 bool _autoSwpDirOnPrss{
false};
1612 bool _curSldrDirUp{
true};
1613 uint16_t _initOtptCurVal{};
1614 uint16_t _otptCurVal{};
1615 bool _otptCurValIsMax{
false};
1616 bool _otptCurValIsMin{
false};
1617 unsigned long _otptSldrSpd{1};
1618 uint16_t _otptSldrStpSize{0x01};
1619 uint16_t _otptValMax{0xFFFF};
1620 uint16_t _otptValMin{0x0000};
1622 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffSldrMax{
nullptr};
1623 void* _fnVdPtrPrmWhnTrnOffSldrMaxArgPtr{
nullptr};
1624 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnSldrMax{
nullptr};
1625 void* _fnVdPtrPrmWhnTrnOnSldrMaxArgPtr{
nullptr};
1626 void (*_fnWhnTrnOffSldrMax)() {
nullptr};
1627 void (*_fnWhnTrnOnSldrMax)() {
nullptr};
1629 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffSldrMin{
nullptr};
1630 void* _fnVdPtrPrmWhnTrnOffSldrMinArgPtr{
nullptr};
1631 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnSldrMin{
nullptr};
1632 void* _fnVdPtrPrmWhnTrnOnSldrMinArgPtr{
nullptr};
1633 void (*_fnWhnTrnOffSldrMin)() {
nullptr};
1634 void (*_fnWhnTrnOnSldrMin)() {
nullptr};
1636 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffSldrDirUp{
nullptr};
1637 void* _fnVdPtrPrmWhnTrnOffSldrDirUpArgPtr{
nullptr};
1638 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnSldrDirUp{
nullptr};
1639 void* _fnVdPtrPrmWhnTrnOnSldrDirUpArgPtr{
nullptr};
1640 void (*_fnWhnTrnOffSldrDirUp)() {
nullptr};
1641 void (*_fnWhnTrnOnSldrDirUp)() {
nullptr};
1643 void _ntfyChngSldrDir();
1644 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
1645 bool _setSldrDir(
const bool &newVal);
1646 void stOnEndScndMod_Out();
1647 virtual void stOnScndMod_Do();
1648 virtual void stOnStrtScndMod_In();
1649 void _turnOffSldrMax();
1650 void _turnOnSldrMax();
1651 void _turnOffSldrMin();
1652 void _turnOnSldrMin();
1667 SldrDALtchMPBttn(
const int8_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);
2191 void setFrcdOtptWhnVdd(
const bool &newVal);
2192 void setStOnWhnOtpFrcd(
const bool &newVal);
2212 fdaVmpbStts _mpbFdaState {stOffNotVPP};
2214 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOffVdd{
nullptr};
2215 void* _fnVdPtrPrmWhnTrnOffVddArgPtr{
nullptr};
2216 fncVdPtrPrmPtrType _fnVdPtrPrmWhnTrnOnVdd{
nullptr};
2217 void* _fnVdPtrPrmWhnTrnOnVddArgPtr{
nullptr};
2218 void (*_fnWhnTrnOffVdd)() {
nullptr};
2219 void (*_fnWhnTrnOnVdd)() {
nullptr};
2220 bool _frcOtptLvlWhnVdd {
true};
2221 bool _isVoided{
false};
2222 bool _stOnWhnOtptFrcd{
false};
2223 bool _validVoidPend{
false};
2224 bool _validUnvoidPend{
false};
2226 static void mpbPollCallback(TimerHandle_t mpbTmrCb);
2227 virtual uint32_t _otptsSttsPkg(uint32_t prevVal = 0);
2228 bool setVoided(
const bool &newVoidValue);
2229 virtual void stDisabled_In();
2230 virtual void stDisabled_Out();
2231 virtual void stOffNotVPP_In(){};
2232 virtual void stOffVddNVUP_Do(){};
2233 virtual void stOffVPP_Do(){};
2236 virtual void updFdaState();
2237 virtual bool updVoidStatus() = 0;
2251 VdblMPBttn(
const int8_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);
2421 unsigned long int _voidTime;
2422 unsigned long int _voidTmrStrt{0};
2424 virtual void stOffNotVPP_In();
2425 virtual void stOffVddNVUP_Do();
2426 virtual void stOffVPP_Do();
2427 bool updIsPressed();
2428 virtual bool updVoidStatus();
2441 TmVdblMPBttn(
const int8_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);
2449 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
2472 bool setVoidTime(
const unsigned long int &newVoidTime);
2495 virtual void stOffVddNVUP_Do();
2496 virtual bool updVoidStatus();
2508 SnglSrvcVdblMPBttn(
const int8_t &mpbttnPin,
const bool &pulledUp =
true,
const bool &typeNO =
true,
const unsigned long int &dbncTimeOrigSett = 0,
const unsigned long int &strtDelay = 0);
2516 virtual bool begin(
const unsigned long int &pollDelayMs = _StdPollDelay);
void clrStatus(bool clrIsOn=true)
See DbncddMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:2678
~DDlydDALtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:2674
DDlydDALtchMPBttn()
Default class constructor.
Definition ButtonToSwitch_ESP32.cpp:2665
bool setScndModActvDly(const unsigned long &newVal)
Sets a new value for the scndModActvDly class attribute.
Definition ButtonToSwitch_ESP32.cpp:2353
void setFnWhnTrnOnScndryPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object enters the Secondary On State.
Definition ButtonToSwitch_ESP32.cpp:2292
const TaskHandle_t getTaskWhileOnScndry()
Returns the task to be run while the object is in the Secondary On state.
Definition ButtonToSwitch_ESP32.cpp:2237
fncVdPtrPrmPtrType getFVPPWhnTrnOnScndry()
Returns a pointer to a function that is set to execute every time the object enters the Secondary Mod...
Definition ButtonToSwitch_ESP32.cpp:2217
fncPtrType getFnWhnTrnOnScndry()
Returns the function that is set to execute every time the object enters the Secondary On State.
Definition ButtonToSwitch_ESP32.cpp:2202
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_ESP32.cpp:2341
void * getFVPPWhnTrnOffScndryArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:2212
void clrStatus(bool clrIsOn=true)
See DbncddMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:2183
bool getIsOnScndry()
Returns the current value of the isOnScndry attribute flag.
Definition ButtonToSwitch_ESP32.cpp:2227
DblActnLtchMPBttn()
Abstract Class default constructor.
Definition ButtonToSwitch_ESP32.cpp:2140
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_ESP32.cpp:2328
void setTaskWhileOnScndry(const TaskHandle_t &newTaskHandle)
Sets the task to be run while the object is in the On state.
Definition ButtonToSwitch_ESP32.cpp:2369
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_ESP32.cpp:2303
unsigned long getScndModActvDly()
Returns the current value of the scndModActvDly class attribute.
Definition ButtonToSwitch_ESP32.cpp:2232
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:2153
void * getFVPPWhnTrnOnScndryArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:2222
void setFnWhnTrnOffScndryPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object enters the Secondary Off State...
Definition ButtonToSwitch_ESP32.cpp:2282
fncPtrType getFnWhnTrnOffScndry()
returns the function that is set to execute every time the object enters the Secondary Off State.
Definition ButtonToSwitch_ESP32.cpp:2197
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_ESP32.cpp:2316
~DblActnLtchMPBttn()
Virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:2149
fncVdPtrPrmPtrType getFVPPWhnTrnOffScndry()
Returns a pointer to a function that is set to execute every time the object enters the Secondary Mod...
Definition ButtonToSwitch_ESP32.cpp:2207
Models a Debounced Delayed MPB (DD-MPB).
Definition ButtonToSwitch_ESP32.h:589
virtual ~DbncdDlydMPBttn()
Class destructor.
Definition ButtonToSwitch_ESP32.cpp:921
DbncdDlydMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:904
void setStrtDelay(const unsigned long int &newStrtDelay)
Sets a new value to the "Start Delay" strtDelay attribute.
Definition ButtonToSwitch_ESP32.cpp:939
bool init(const int8_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 int8_t, const bool, const bool, const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:929
void setBeginDisabled(const bool &newBeginDisabled=false)
Sets the starting isDisabled state.
Definition ButtonToSwitch_ESP32.cpp:447
void setFnWhnTrnOffPtr(fncPtrType newFnWhnTrnOff)
Sets the function that will be called to execute every time the object enters the Off State.
Definition ButtonToSwitch_ESP32.cpp:470
fncPtrType getFnWhnTrnOn()
Returns a pointer to a function that is set to execute every time the object enters the On State.
Definition ButtonToSwitch_ESP32.cpp:223
void setFVPPWhnTrnOff(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Off State.
Definition ButtonToSwitch_ESP32.cpp:492
void resetFda()
Resets the MPB behavior automaton to it's Initial or Start State
Definition ButtonToSwitch_ESP32.cpp:413
void clrStatus(bool clrIsOn=true)
Clears and resets flags, timers and counters modified through the object's signals processing.
Definition ButtonToSwitch_ESP32.cpp:157
const unsigned long int getCurDbncTime() const
Returns the current debounce period time set for the object.
Definition ButtonToSwitch_ESP32.cpp:213
const DbncdMPBttn * getMpbInstnc() const
Returns a pointer to the present instanced object.
Definition ButtonToSwitch_ESP32.cpp:268
const TaskHandle_t getTaskWhileOn()
Returns the task to be run (resumed) while the object is in the On state.
Definition ButtonToSwitch_ESP32.cpp:298
void enable()
Enables the input signal processing.
Definition ButtonToSwitch_ESP32.cpp:190
bool pause()
Pauses the software timer updating the computation of the object's internal flags value.
Definition ButtonToSwitch_ESP32.cpp:389
const TaskHandle_t getTaskToNotify() const
Returns the task to be notified by the object when its output flags changes.
Definition ButtonToSwitch_ESP32.cpp:293
virtual ~DbncdMPBttn()
Default virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:122
fncVdPtrPrmPtrType getFVPPWhnTrnOff()
Returns a pointer to a function that is set to execute every time the object enters the Off State.
Definition ButtonToSwitch_ESP32.cpp:228
virtual void setTaskWhileOn(const TaskHandle_t &newTaskHandle)
Sets the task to be run while the object is in the On state.
Definition ButtonToSwitch_ESP32.cpp:634
void setIsOnDisabled(const bool &newIsOnDisabled)
Sets the value of the isOnDisabled attribute flag.
Definition ButtonToSwitch_ESP32.cpp:563
bool end()
Detaches the object from the timer that monitors the input pins, compute and updates the object's sta...
Definition ButtonToSwitch_ESP32.cpp:195
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_ESP32.cpp:127
void resetDbncTime()
Resets the debounce process time of the object to the value used at instantiation.
Definition ButtonToSwitch_ESP32.cpp:407
void setFVPPWhnTrnOn(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the On State.
Definition ButtonToSwitch_ESP32.cpp:517
fncVdPtrPrmPtrType getFVPPWhnTrnOn()
Returns a pointer to a function that is set to execute every time the object enters the On State.
Definition ButtonToSwitch_ESP32.cpp:238
DbncdMPBttn()
Default class constructor.
Definition ButtonToSwitch_ESP32.cpp:54
void disable()
Disables the input signal processing, ignoring the changes of its values.
Definition ButtonToSwitch_ESP32.cpp:185
bool resume()
Restarts the software timer updating the calculation of the object internal flags.
Definition ButtonToSwitch_ESP32.cpp:431
const bool getIsEnabled() const
Returns the value of the isEnabled attribute flag, indicating the Enabled or Disabled status of the o...
Definition ButtonToSwitch_ESP32.cpp:248
const bool getIsOnDisabled() const
Returns the value of the isOnDisabled attribute flag.
Definition ButtonToSwitch_ESP32.cpp:258
void * getFVPPWhnTrnOnArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:243
bool init(const int8_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_ESP32.cpp:303
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_ESP32.cpp:530
void * getFVPPWhnTrnOffArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:233
void setTaskToNotify(const TaskHandle_t &newTaskHandle)
Sets the handle to the task to be notified by the object when its output attribute flags changes.
Definition ButtonToSwitch_ESP32.cpp:611
const bool getOutputsChange() const
Returns the value of the outputsChange attribute flag.
Definition ButtonToSwitch_ESP32.cpp:278
const bool getIsOn() const
Returns the value of the isOn attribute flag.
Definition ButtonToSwitch_ESP32.cpp:253
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_ESP32.cpp:505
unsigned long int getStrtDelay()
Returns the current value of strtDelay attribute.
Definition ButtonToSwitch_ESP32.cpp:283
const uint32_t getOtptsSttsPkgd()
Returns the relevant attribute flags values for the object state encoded as a 32 bits value,...
Definition ButtonToSwitch_ESP32.cpp:273
void setFnWhnTrnOnPtr(fncPtrType newFnWhnTrnOn)
Sets the function that will be called to execute every time the object enters the On State.
Definition ButtonToSwitch_ESP32.cpp:481
fncPtrType getFnWhnTrnOff()
Returns a pointer to a function that is set to execute every time the object enters the Off State.
Definition ButtonToSwitch_ESP32.cpp:218
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_ESP32.cpp:583
bool setDbncTime(const unsigned long int &newDbncTime)
Sets the debounce process time.
Definition ButtonToSwitch_ESP32.cpp:454
bool setSrvcTime(const unsigned long int &newSvcTime)
See TmLtchMPBttn::setSrvcTime(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:1811
fncVdPtrPrmPtrType getFVPPWhnTrnOffWrnng()
Returns a pointer to a function that is set to execute every time the object enters the Warning Off S...
Definition ButtonToSwitch_ESP32.cpp:1579
void * getFVPPWhnTrnOffWrnngArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:1584
fncPtrType getFnWhnTrnOnPilot()
Returns the function that is set to execute every time the object's Pilot attribute flag enters the O...
Definition ButtonToSwitch_ESP32.cpp:1549
void * getFVPPWhnTrnOnWrnngArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:1594
fncVdPtrPrmPtrType getFVPPWhnTrnOnWrnng()
Returns a pointer to a function that is set to execute every time the object enters the Warning On St...
Definition ButtonToSwitch_ESP32.cpp:1589
void setFnWhnTrnOffWrnngPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object's Warning is reset.
Definition ButtonToSwitch_ESP32.cpp:1667
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_ESP32.cpp:1788
fncPtrType getFnWhnTrnOffWrnng()
Returns the function that is set to execute every time the object's Warning attribute flag enters the...
Definition ButtonToSwitch_ESP32.cpp:1544
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_ESP32.cpp:1713
fncVdPtrPrmPtrType getFVPPWhnTrnOnPilot()
Returns a pointer to a function that is set to execute every time the object enters the Pilot On Stat...
Definition ButtonToSwitch_ESP32.cpp:1569
const bool getWrnngOn() const
Returns the current value of the warningOn attribute flag.
Definition ButtonToSwitch_ESP32.cpp:1604
void setFnWhnTrnOnPilotPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object's Pilot is set.
Definition ButtonToSwitch_ESP32.cpp:1678
const bool getPilotOn() const
Returns the current value of the pilotOn attribute flag.
Definition ButtonToSwitch_ESP32.cpp:1599
void setFVPPWhnTrnOffPilot(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Pilot Off State.
Definition ButtonToSwitch_ESP32.cpp:1700
void * getFVPPWhnTrnOffPilotArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:1564
void clrStatus(bool clrIsOn=true)
see DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:1519
fncPtrType getFnWhnTrnOffPilot()
Returns the function that is set to execute every time the object's Pilot attribute flag enters the O...
Definition ButtonToSwitch_ESP32.cpp:1539
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_ESP32.cpp:1738
HntdTmLtchMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:1458
void setFnWhnTrnOnWrnngPtr(void(*newFnWhnTrnOn)())
Sets the function that will be called to execute every time the object's Wrnng is set.
Definition ButtonToSwitch_ESP32.cpp:1689
void * getFVPPWhnTrnOnPilotArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:1574
void setFVPPWhnTrnOffWrnng(fncVdPtrPrmPtrType newFVPPWhnTrnOff, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Warning Off State.
Definition ButtonToSwitch_ESP32.cpp:1750
bool setWrnngPrctg(const unsigned int &newWrnngPrctg)
Sets the value for the percentage of service time for calculating the warningOn flag value.
Definition ButtonToSwitch_ESP32.cpp:1826
fncPtrType getFnWhnTrnOnWrnng()
Returns the function that is set to execute every time the object's Warning attribute flag enters the...
Definition ButtonToSwitch_ESP32.cpp:1554
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_ESP32.cpp:1763
fncVdPtrPrmPtrType getFVPPWhnTrnOffPilot()
Returns a pointer to a function that is set to execute every time the object enters the Pilot Off Sta...
Definition ButtonToSwitch_ESP32.cpp:1559
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:1489
void setFnWhnTrnOffPilotPtr(void(*newFnWhnTrnOff)())
Sets the function that will be called to execute every time the object's Pilot is reset.
Definition ButtonToSwitch_ESP32.cpp:1656
void setFVPPWhnTrnOnWrnng(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Warning On State.
Definition ButtonToSwitch_ESP32.cpp:1775
void setFVPPWhnTrnOnPilot(fncVdPtrPrmPtrType newFVPPWhnTrnOn, void *argPtr=nullptr)
Sets a function to be executed every time the object enters the Pilot On State.
Definition ButtonToSwitch_ESP32.cpp:1725
void setKeepPilot(const bool &newKeepPilot)
Sets the configuration of the keepPilot service attribute.
Definition ButtonToSwitch_ESP32.cpp:1800
~HntdTmLtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:1485
const bool getIsLatched() const
Returns the value of the isLatched attribute flag, indicating the Latched or Unlatched condition of t...
Definition ButtonToSwitch_ESP32.cpp:1016
bool unlatch()
Sets the values of the flags needed to unlatch a latched MPB.
Definition ButtonToSwitch_ESP32.cpp:1103
const bool getUnlatchRlsPend() const
Returns the value of the "Valid Unlatch Release Pending" attribute.
Definition ButtonToSwitch_ESP32.cpp:1031
const bool getUnlatchPend() const
Returns the value of the "Valid Unlatch Pending" attribute.
Definition ButtonToSwitch_ESP32.cpp:1026
virtual ~LtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:969
void setUnlatchPend(const bool &newVal)
Sets the value of the "Valid Unlatch Pending" attribute.
Definition ButtonToSwitch_ESP32.cpp:1081
void setTrnOffASAP(const bool &newVal)
Sets the value of the trnOffASAP attribute.
Definition ButtonToSwitch_ESP32.cpp:1070
bool getTrnOffASAP()
Returns the value of the trnOffASAP attribute flag.
Definition ButtonToSwitch_ESP32.cpp:1021
void setUnlatchRlsPend(const bool &newVal)
Sets the value of the "Valid Unlatch Release Pending" attribute.
Definition ButtonToSwitch_ESP32.cpp:1092
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:973
void clrStatus(bool clrIsOn=true)
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:1003
LtchMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:951
void setFnWhnTrnOnSldrDirUp(void(*newFnWhnTrnOn)())
Sets the function that will be called every time the slider direction is set to be incrementing (up).
Definition ButtonToSwitch_ESP32.cpp:2902
fncPtrType getFnWhnTrnOnSldrDirUp()
Returns the function set to be called when the slider direction is set to be incrementing (up).
Definition ButtonToSwitch_ESP32.cpp:2743
void * getFVPPWhnTrnOnSldrMinArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch_ESP32.cpp:2823
fncVdPtrPrmPtrType getFVPPWhnTrnOnSldrDirUp()
Returns a pointer to the function that is set to be executed every time the slider direction is set t...
Definition ButtonToSwitch_ESP32.cpp:2778
void setFVPPWhnTrnOffSldrMaxArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOffSldrMax() metho...
Definition ButtonToSwitch_ESP32.cpp:2978
fncPtrType getFnWhnTrnOffSldrMax()
Returns the function that is set to be executed every time the object's Output Current Value (otptCur...
Definition ButtonToSwitch_ESP32.cpp:2748
void clrStatus(bool clrIsOn=true)
Definition ButtonToSwitch_ESP32.cpp:2725
void setFnWhnTrnOffSldrDirUp(void(*newFnWhnTrnOff)())
Sets the function that will be called every time the slider direction is set to be decrementing (down...
Definition ButtonToSwitch_ESP32.cpp:2895
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_ESP32.cpp:3001
fncVdPtrPrmPtrType getFVPPWhnTrnOffSldrDirUp()
Returns a pointer to the function that is set to be executed every time the slider direction is set t...
Definition ButtonToSwitch_ESP32.cpp:2768
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_ESP32.cpp:3017
bool setOtptSldrSpd(const uint16_t &newVal)
Sets the output slider speed (otptSldrSpd) attribute.
Definition ButtonToSwitch_ESP32.cpp:3049
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_ESP32.cpp:2985
void setFVPPWhnTrnOnSldrDirUpArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOnSldrDirUp() meth...
Definition ButtonToSwitch_ESP32.cpp:2962
uint16_t getOtptValMax()
Returns the top output current value register setting.
Definition ButtonToSwitch_ESP32.cpp:2855
bool getOtptCurValIsMin()
Returns the result of comparing the Output Current Value to the Minimum value setting
Definition ButtonToSwitch_ESP32.cpp:2839
bool setSldrDirDn()
Sets the value of the curSldrDirUp attribute to false.
Definition ButtonToSwitch_ESP32.cpp:3152
bool setOtptValMax(const uint16_t &newVal)
Sets the output current value register maximum value attribute (otptValMax attribute).
Definition ButtonToSwitch_ESP32.cpp:3081
void * getFVPPWhnTrnOffSldrMinArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch_ESP32.cpp:2813
void * getFVPPWhnTrnOffSldrMaxArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch_ESP32.cpp:2793
bool swapSldrDir()
Inverts the current curSldrDirUp attribute value.
Definition ButtonToSwitch_ESP32.cpp:3253
void * getFVPPWhnTrnOnSldrDirUpArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the slider d...
Definition ButtonToSwitch_ESP32.cpp:2783
fncPtrType getFnWhnTrnOnSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch_ESP32.cpp:2763
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_ESP32.cpp:2937
~SldrDALtchMPBttn()
Virtual class destructor.
Definition ButtonToSwitch_ESP32.cpp:2721
bool setOtptCurVal(const uint16_t &newVal)
Sets the output current value register.
Definition ButtonToSwitch_ESP32.cpp:3033
fncPtrType getFnWhnTrnOnSldrMax()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch_ESP32.cpp:2758
uint16_t getOtptCurVal()
Returns the Output Current Value (otpCurVal) attribute.
Definition ButtonToSwitch_ESP32.cpp:2828
bool setSldrDirUp()
Sets the value of the curSldrDirUp attribute to true.
Definition ButtonToSwitch_ESP32.cpp:3157
fncVdPtrPrmPtrType getFVPPWhnTrnOnSldrMax()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch_ESP32.cpp:2798
void setFnWhnTrnOffSldrMaxPtr(void(*newFnWhnTrnOff)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch_ESP32.cpp:2909
void setFnWhnTrnOnSldrMaxPtr(void(*newFnWhnTrnOn)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) reaches...
Definition ButtonToSwitch_ESP32.cpp:2923
void * getFVPPWhnTrnOffSldrDirUpArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the slider d...
Definition ButtonToSwitch_ESP32.cpp:2773
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_ESP32.cpp:2953
void setFVPPWhnTrnOnSldrMaxArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOnSldrMax() method...
Definition ButtonToSwitch_ESP32.cpp:2994
fncVdPtrPrmPtrType getFVPPWhnTrnOffSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch_ESP32.cpp:2808
void setFVPPWhnTrnOffSldrMinArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOffSldrMin() metho...
Definition ButtonToSwitch_ESP32.cpp:3010
fncVdPtrPrmPtrType getFVPPWhnTrnOffSldrMax()
Returns the function that is set to be executed every time the object's Output Current Value (otptCur...
Definition ButtonToSwitch_ESP32.cpp:2788
void setFnWhnTrnOnSldrMinPtr(void(*newFnWhnTrnOn)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch_ESP32.cpp:2930
SldrDALtchMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:2711
void setFVPPWhnTrnOffSldrDirUpArgPtr(void *newFVPPWhnTrnOffArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOffSldrDirUp() met...
Definition ButtonToSwitch_ESP32.cpp:2946
fncVdPtrPrmPtrType getFVPPWhnTrnOnSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch_ESP32.cpp:2818
fncPtrType getFnWhnTrnOffSldrDirUp()
Returns the function set to be called when the slider direction is set to be decrementing (down).
Definition ButtonToSwitch_ESP32.cpp:2738
bool getSldrDirUp()
Returns the value of the curSldrDirUp attribute.
Definition ButtonToSwitch_ESP32.cpp:2865
bool setOtptSldrStpSize(const uint16_t &newVal)
Sets the output slider step size (otptSldrStpSize) attribute value.
Definition ButtonToSwitch_ESP32.cpp:3065
fncPtrType getFnWhnTrnOffSldrMin()
Returns the function that is set to execute every time the object's Output Current Value (otptCurVal)...
Definition ButtonToSwitch_ESP32.cpp:2753
bool getOtptCurValIsMax()
Returns a boolean value indicating if the "Output Current Value" equals the maximum limit.
Definition ButtonToSwitch_ESP32.cpp:2833
void setSwpDirOnPrss(const bool &newVal)
Sets the value of the "Auto-Swap Direction On Press" (autoSwpDirOnPrss) attribute.
Definition ButtonToSwitch_ESP32.cpp:3169
void * getFVPPWhnTrnOnSldrMaxArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object's...
Definition ButtonToSwitch_ESP32.cpp:2803
bool setOtptValMin(const uint16_t &newVal)
Sets the output current value register minimum value attribute (otptValMin attribute).
Definition ButtonToSwitch_ESP32.cpp:3103
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_ESP32.cpp:2969
uint16_t getOtptValMin()
Returns the bottom output current value register setting.
Definition ButtonToSwitch_ESP32.cpp:2860
unsigned long getOtptSldrSpd()
Returns the current setting for the Output Slider Speed value.
Definition ButtonToSwitch_ESP32.cpp:2845
void setFVPPWhnTrnOnSldrMinArgPtr(void *newFVPPWhnTrnOnArgPtr)
Sets a pointer to an argument to be passed to the function set by the setFVPPWhnTrnOnSldrMin() method...
Definition ButtonToSwitch_ESP32.cpp:3026
void setFnWhnTrnOffSldrMinPtr(void(*newFnWhnTrnOff)())
Sets a function that will be called every time the object's Output Current Value (otptCurVal) attribu...
Definition ButtonToSwitch_ESP32.cpp:2916
uint16_t getOtptSldrStpSize()
Returns the current setting for the Output Slider Step Size value.
Definition ButtonToSwitch_ESP32.cpp:2850
void setSwpDirOnEnd(const bool &newVal)
Sets the value of the "Auto-Swap Direction on Ends" (autoSwpDirOnEnd) attribute.
Definition ButtonToSwitch_ESP32.cpp:3162
virtual void setTaskWhileOn(const TaskHandle_t &newTaskHandle)
Sets the task to be run while the object is in the On state.
Definition ButtonToSwitch_ESP32.cpp:3971
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:3943
virtual ~SnglSrvcVdblMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:3939
SnglSrvcVdblMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:3927
TgglLtchMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:1310
virtual ~TgglLtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:1325
TmLtchMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:1361
const unsigned long int getSrvcTime() const
Returns the configured Service Time.
Definition ButtonToSwitch_ESP32.cpp:1395
void setTmerRstbl(const bool &newIsRstbl)
Configures the timer for the Service Time to be reseted before it reaches unlatching time.
Definition ButtonToSwitch_ESP32.cpp:1416
bool setSrvcTime(const unsigned long int &newSrvcTime)
Sets a new value to the Service Time attribute.
Definition ButtonToSwitch_ESP32.cpp:1400
void clrStatus(bool clrIsOn=true)
see DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:1384
virtual ~TmLtchMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:1380
TmVdblMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:3813
virtual ~TmVdblMPBttn()
Class virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:3822
void clrStatus()
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:3854
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:3826
const unsigned long int getVoidTime() const
Returns the voidTime attribute current value.
Definition ButtonToSwitch_ESP32.cpp:3865
bool setVoidTime(const unsigned long int &newVoidTime)
Sets a new value to the Void Time attribute.
Definition ButtonToSwitch_ESP32.cpp:3870
bool setIsVoided()
Sets the value of the isVoided attribute flag to true.
Definition ButtonToSwitch_ESP32.cpp:3538
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_ESP32.cpp:3496
const bool getIsVoided() const
Returns the current value of the isVoided attribute flag.
Definition ButtonToSwitch_ESP32.cpp:3397
fncPtrType getFnWhnTrnOnVdd()
Returns the function that is set to execute every time the object enters the Voided or "Voided On" St...
Definition ButtonToSwitch_ESP32.cpp:3367
void clrStatus(bool clrIsOn=true)
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:3350
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_ESP32.cpp:3461
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_ESP32.cpp:3483
void * getFVPPWhnTrnOffVddArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:3382
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_ESP32.cpp:3521
virtual ~VdblMPBttn()
Default virtual destructor.
Definition ButtonToSwitch_ESP32.cpp:3346
VdblMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:3336
fncPtrType getFnWhnTrnOffVdd()
Returns the function that is set to execute every time the object exits the Voided State.
Definition ButtonToSwitch_ESP32.cpp:3362
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_ESP32.cpp:3449
bool getFrcOtptLvlWhnVdd()
Returns the value of the frcOtptLvlWhnVdd attribute.
Definition ButtonToSwitch_ESP32.cpp:3372
bool getStOnWhnOtpFrcd()
Returns the value of the frcOtptLvlWhnVdd attribute.
Definition ButtonToSwitch_ESP32.cpp:3402
fncVdPtrPrmPtrType getFVPPWhnTrnOnVdd()
Returns a pointer to a function that is set to execute every time the object enters the Voided On Sta...
Definition ButtonToSwitch_ESP32.cpp:3387
void * getFVPPWhnTrnOnVddArgPtr()
Returns a pointer to the argument to be passed to the function set to execute every time the object e...
Definition ButtonToSwitch_ESP32.cpp:3392
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_ESP32.cpp:3508
bool setIsNotVoided()
Sets the value of the isVoided attribute flag to false.
Definition ButtonToSwitch_ESP32.cpp:3533
fncVdPtrPrmPtrType getFVPPWhnTrnOffVdd()
Returns a pointer to a function that is set to execute every time the object enters the Voided Off St...
Definition ButtonToSwitch_ESP32.cpp:3377
void clrStatus(bool clrIsOn=true)
See DbncdMPBttn::clrStatus(bool)
Definition ButtonToSwitch_ESP32.cpp:2093
XtrnUnltchMPBttn()
Default constructor.
Definition ButtonToSwitch_ESP32.cpp:2043
virtual bool begin(const unsigned long int &pollDelayMs=_StdPollDelay)
See DbncdMPBttn::begin(const unsigned long int)
Definition ButtonToSwitch_ESP32.cpp:2059
Type to hold the complete set of output attribute flags from any DbncdMPBttn class and subclasses obj...
Definition ButtonToSwitch_ESP32.h:80