A LED instance.

Public Attributes#

void *

The context for this LED instance.

sl_status_t(*

Member function to initialize LED instance.

void(*

Member function to turn on LED.

void(*

Member function to turn off LED.

void(*

Member function to toggle LED.

Member function to retrieve LED state.

Public Attribute Documentation#

context#

void* sl_led_t::context

The context for this LED instance.


init#

sl_status_t(* sl_led_t::init) (void *context)

Member function to initialize LED instance.


turn_on#

void(* sl_led_t::turn_on) (void *context)

Member function to turn on LED.


turn_off#

void(* sl_led_t::turn_off) (void *context)

Member function to turn off LED.


toggle#

void(* sl_led_t::toggle) (void *context)

Member function to toggle LED.


get_state#

sl_led_state_t(* sl_led_t::get_state) (void *context)

Member function to retrieve LED state.