思澈科技软件开发工具包  2.20
button_cfg_t Struct Reference

#include <button.h>

Data Fields

int32_t pin
 
button_active_state_t active_state
 
uint32_t mode
 
button_handler_t button_handler
 
uint16_t debounce_time
 

Detailed Description

Button configuration structure.

Field Documentation

◆ active_state

button_active_state_t button_cfg_t::active_state

pin state when button is pressed

◆ button_handler

button_handler_t button_cfg_t::button_handler

Handler to be called when button is pushed.

◆ debounce_time

uint16_t button_cfg_t::debounce_time

debounce time in millisecond

◆ mode

uint32_t button_cfg_t::mode

Pull-up or -down mode, such as PIN_MODE_INPUT, PIN_MODE_INPUT_PULLUP or PIN_MODE_INPUT_PULLDOWN

◆ pin

int32_t button_cfg_t::pin

Pin to be used as a button. Its range is same as pin argument of rt pin device


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