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 )(void * context )
Member function to initialize BUTTON instance.
void(* poll )(void * context )
Member function to poll BUTTON.
void(* enable )(void * context )
Member function to enable BUTTON.
void(* disable )(void * context )
Member function to disable BUTTON.
sl_button_state_t (* get_state )(void * context )
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) (void * context )

Member function to initialize BUTTON instance.

poll

void(* sl_button_t::poll) (void * context )

Member function to poll BUTTON.

enable

void(* sl_button_t::enable) (void * context )

Member function to enable BUTTON.

disable

void(* sl_button_t::disable) (void * context )

Member function to disable BUTTON.

get_state

sl_button_state_t (* sl_button_t::get_state) (void * context )

Member function to retrieve BUTTON state.