sl_simple_rgbw_pwm_led_context_t Struct Reference

A Simple RGBW LED context.

#include <sl_simple_rgbw_pwm_led.h>

Data Fields

sl_led_pwm_t * red
PWM LED instance for red color.
sl_led_pwm_t * green
PWM LED instance for green color.
sl_led_pwm_t * blue
PWM LED instance for blue color.
sl_led_pwm_t * white
PWM LED instance for white color.
TIMER_TypeDef * timer
PWM timer (common instance for all LEDs)
uint32_t frequency
PWM frequency.
uint32_t resolution
PWM resolution (dimming steps)
sl_led_state_t state
Current state (ON/OFF)

A Simple RGBW LED context.

Field Documentation

◆ red

sl_led_pwm_t * sl_simple_rgbw_pwm_led_context_t::red

PWM LED instance for red color.

◆ green

sl_led_pwm_t * sl_simple_rgbw_pwm_led_context_t::green

PWM LED instance for green color.

◆ blue

sl_led_pwm_t * sl_simple_rgbw_pwm_led_context_t::blue

PWM LED instance for blue color.

◆ white

sl_led_pwm_t * sl_simple_rgbw_pwm_led_context_t::white

PWM LED instance for white color.

◆ timer

TIMER_TypeDef* sl_simple_rgbw_pwm_led_context_t::timer

PWM timer (common instance for all LEDs)

◆ frequency

uint32_t sl_simple_rgbw_pwm_led_context_t::frequency

PWM frequency.

◆ resolution

uint32_t sl_simple_rgbw_pwm_led_context_t::resolution

PWM resolution (dimming steps)

◆ state

sl_led_state_t sl_simple_rgbw_pwm_led_context_t::state

Current state (ON/OFF)