Limbs Safety Switch Library for ESP32 (Arduino) v1.0.1
A library that provides a class that models a Limbs Safety Switch for physical dangerous devices or industrial production machines.
Loading...
Searching...
No Matches
swtchInptHwCfg_t Struct Reference

Switch Input Hardware Configuration parameters. More...

#include <LimbsSafetySw_ESP32.h>

Detailed Description

Switch Input Hardware Configuration parameters.

Holds the hardware characteristics of each of the underlying composing switches used, data needed for those switches constructors. As the attributes held in the structure are all hardware related they must be set or modified only when hardware construction or modification happens. The actual parameters must be saved in non volatile memory or by physical means (jumpers, dip switches, etc.). Only Technical maintenance level users and up might modify them.

Parameters
inptPinGPIO pin number connected to the MPBttn
typeNOType of switch, Normal Open (NO=true) or Normal Closed (NO=false). Default value: true
pulledUpInternal pull-up circuit configuration, default value true
dbncdTimeDebounce process time required to receive a stable signal, default value 20 milliseconds
Note
inptPin = GPIO_NUM_NC (-1) is used to indicate the pin is Not Connected (N/C).
GPIO_NUM_MAX is used to indicate the maximum valid number for a GPIO pin (GPIO_NUM_x < GPIO_NUM_MAX)
Attention
Hardware construction related!! The information must be provided by the hardware developers
Warning
Not all the GPIO input pins of every MCU has input mode operation, nor all have a pull-up internal circuit available!