![]() |
ButtonToSwitch Library for STM32 v4.1.0
A library that provides elaborated switch mechanism behavior simulation for digital signals inputs
|
Type used to keep GPIO pin identification as a single parameter, independently of the platform requirements. More...
#include <ButtonToSwitch_STM32.h>
Public Attributes | |
GPIO_TypeDef * | portId |
uint16_t | pinNum |
Type used to keep GPIO pin identification as a single parameter, independently of the platform requirements.
GPIO pin identification is hardware and development environment framework dependents, for some platforms it needs one, some two, some more parameters, and each one of these parameters' type depends once again on the platform. This type is provided to define each pin referenced as a single parameter for class methods and attributes declarations, as platform independent as possible.
uint16_t gpioPinId_t::pinNum |
The number of the port pin represented as a single-bit mask with the set bit position indicating the pin number
GPIO_TypeDef* gpioPinId_t::portId |
The port identification as a pointer to a GPIO_TypeDef information structure