sl_simple_button_context_t Struct Reference

A Simple BUTTON instance.

#include <sl_simple_button.h>

Data Fields

sl_button_state_t state
Current button state.
uint16_t history
History of button states.
GPIO_Port_TypeDef port
Button port.
uint8_t pin
Button pin.
sl_button_mode_t mode
Mode of operation *‍/.

A Simple BUTTON instance.

Field Documentation

state

sl_button_state_t sl_simple_button_context_t::state

Current button state.

history

uint16_t sl_simple_button_context_t::history

History of button states.

port

GPIO_Port_TypeDef sl_simple_button_context_t::port

Button port.

pin

uint8_t sl_simple_button_context_t::pin

Button pin.

mode

sl_button_mode_t sl_simple_button_context_t::mode

Mode of operation *‍/.