sl_led_t Struct Reference
A LED instance.
#include <sl_led.h>
Data Fields |
|
void * | context |
The context for this LED instance.
|
|
sl_status_t(* | init )(void * context ) |
Member function to initialize LED instance.
|
|
void(* | turn_on )(void * context ) |
Member function to turn on LED.
|
|
void(* | turn_off )(void * context ) |
Member function to turn off LED.
|
|
void(* | toggle )(void * context ) |
Member function to toggle LED.
|
|
sl_led_state_t (* | get_state )(void * context ) |
Member function to retrieve LED state.
|
|
A LED instance.
Field 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.