You are viewing documentation for version:
A Simple RGB LED context.
Public Attributes#
PWM LED instance for red color.
PWM LED instance for green color.
PWM LED instance for blue color.
TIMER_TypeDef *
PWM timer (common instance for all LEDs)
uint32_t
PWM resolution (dimming steps)
Public Attribute 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)