![]() |
ButtonToSwitch Library for ESP32 (Arduino) v4.1.0
A library that provides elaborated switch mechanism behavior simulation for digital signals inputs
|
: Source file for the ButtonToSwitch_ESP32 library classes More...
#include "ButtonToSwitch_ESP32.h"
Functions | |
MpbOtpts_t | otptsSttsUnpkg (uint32_t pkgOtpts) |
Unpackages a 32-bit value into a DbncdMPBttn object status. | |
: Source file for the ButtonToSwitch_ESP32 library classes
The library implements classes that model several switch mechanisms replacements out of simple push buttons or similar equivalent digital signal inputs. By using just a button (a.k.a. momentary switches or momentary push buttons, MPB for short from here on) the classes implemented in this library will manage, calculate and update several parameters to generate the embedded behavior of standard electromechanical switches.
MpbOtpts_t otptsSttsUnpkg | ( | uint32_t | pkgOtpts | ) |
Unpackages a 32-bit value into a DbncdMPBttn object status.
The 32-bit encoded and packaged is used for inter-task object status comunication, passed as a "notification value" in a xTaskNotify() execution. For each bit value attribute flag represented see DbncdMPBttn::getOtptsSttsPkgd()
pkgOtpts | A 32-bit value holding a DbncdMPBttn status encoded |