sl_simple_rgb_pwm_led_context_t Struct Reference
A Simple RGB LED context.
#include <sl_simple_rgb_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.
|
|
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 RGB LED context.
Field Documentation
◆ red
sl_led_pwm_t * sl_simple_rgb_pwm_led_context_t::red |
PWM LED instance for red color.
◆ green
sl_led_pwm_t * sl_simple_rgb_pwm_led_context_t::green |
PWM LED instance for green color.
◆ blue
sl_led_pwm_t * sl_simple_rgb_pwm_led_context_t::blue |
PWM LED instance for blue color.
◆ timer
TIMER_TypeDef* sl_simple_rgb_pwm_led_context_t::timer |
PWM timer (common instance for all LEDs)
◆ frequency
uint32_t sl_simple_rgb_pwm_led_context_t::frequency |
PWM frequency.
◆ resolution
uint32_t sl_simple_rgb_pwm_led_context_t::resolution |
PWM resolution (dimming steps)
◆ state
sl_led_state_t sl_simple_rgb_pwm_led_context_t::state |
Current state (ON/OFF)