sl_button_t Struct Reference
A BUTTON instance.
#include <sl_button.h>
Data Fields |
|
void * | context |
The context for this BUTTON instance.
|
|
sl_status_t(* | init )(const sl_button_t *handle) |
Member function to initialize BUTTON instance.
|
|
void(* | poll )(const sl_button_t *handle) |
Member function to poll BUTTON.
|
|
void(* | enable )(const sl_button_t *handle) |
Member function to enable BUTTON.
|
|
void(* | disable )(const sl_button_t *handle) |
Member function to disable BUTTON.
|
|
sl_button_state_t (* | get_state )(const sl_button_t *handle) |
Member function to retrieve BUTTON state.
|
|
A BUTTON instance.
Field Documentation
◆ context
void* sl_button_t::context |
The context for this BUTTON instance.
◆ init
sl_status_t(* sl_button_t::init) (const sl_button_t *handle) |
Member function to initialize BUTTON instance.
◆ poll
void(* sl_button_t::poll) (const sl_button_t *handle) |
Member function to poll BUTTON.
◆ enable
void(* sl_button_t::enable) (const sl_button_t *handle) |
Member function to enable BUTTON.
◆ disable
void(* sl_button_t::disable) (const sl_button_t *handle) |
Member function to disable BUTTON.
◆ get_state
sl_button_state_t (* sl_button_t::get_state) (const sl_button_t *handle) |
Member function to retrieve BUTTON state.