sl_led_rgb_pwm_t Struct Reference

A Simple RGB LED PWM instance.

#include <sl_simple_rgb_pwm_led.h>

Data Fields

sl_led_t led_common
Inherit from the Common LED Driver.
void(* set_rgb_color )(void *context, uint16_t red, uint16_t green, uint16_t blue)
Member function to set RGB.
void(* get_rgb_color )(void *context, uint16_t *red, uint16_t *green, uint16_t *blue)
Member function to get RGB.

A Simple RGB LED PWM instance.

Field Documentation

led_common

sl_led_t sl_led_rgb_pwm_t::led_common

Inherit from the Common LED Driver.

set_rgb_color

void(* sl_led_rgb_pwm_t::set_rgb_color) (void *context, uint16_t red, uint16_t green, uint16_t blue)

Member function to set RGB.

get_rgb_color

void(* sl_led_rgb_pwm_t::get_rgb_color) (void *context, uint16_t *red, uint16_t *green, uint16_t *blue)

Member function to get RGB.