HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
GPIO input handling. More...
Functions | |
void | GPIO_in_init (GPIO_in *const in, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState polarity, const uint16_t filter, void(*onSet)(const GPIO_in *const), void(*onReset)(const GPIO_in *const), const bool repeat) |
Initialize GPIO_in instance. | |
GPIO input handling.
void GPIO_in_init | ( | GPIO_in *const | in, |
GPIO_TypeDef *const | GPIOx, | ||
const uint16_t | GPIO_Pin, | ||
const GPIO_PinState | polarity, | ||
const uint16_t | filter, | ||
void(* | onSet )(const GPIO_in *const), | ||
void(* | onReset )(const GPIO_in *const), | ||
const bool | repeat ) |
Initialize GPIO_in instance.
[in,out] | in | - GPIO_in instance to initialize |
[in] | GPIOx | - port to read from |
[in] | GPIO_Pin | - pin to read from |
[in] | polarity | - set to GPIO_PIN_RESET if active state is GND, GPIO_PIN_SET if Vdd |
[in] | filter | - input filtering time |
[in] | onSet | - Pointer to callback ON function |
[in] | onReset | - Pointer to callback OFF function |
[in] | repeat | - To repeat callback ON as long as input is set |