CubeMon-Vue-Demo-STM32F407VGT6U
digitalInputInitData Struct Reference

digital input initialization structure More...

#include <di.h>

Data Fields

uint16_t mcu_pin
 MCU GPIO pin number.
 
GPIO_TypeDef * mcu_port
 MCU GPIO port.
 
uint16_t debounc_time
 minimal time [ms] to consider the input change as a valid change recommended value for mechanical switch is 5-10ms set to "0" to deactivate this functions
 
uint16_t long_press_ms
 minimal time [ms] to consider the input change to logical "true" as a long press set to "0" to deactivate this functions
 
uint16_t double_press_spacing
 maximal time [ms] before two presses that will result in double press, recommended value ~60ms set to "0" to deactivate this functions
 
digitalInputHWType hw_type
 input hw_type
 
digitalInputSWType sw_type
 input sw_type
 
input_get_hw_state input_get_hw_state
 function for getting GPIO state, pass NULL pointer to default to HAL_GPIO_Read
 

Detailed Description

digital input initialization structure


The documentation for this struct was generated from the following file: