snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
LED pattern configuration structure. More...
#include <sd_led.h>
Data Fields | |
TIM_HandleTypeDef * | tim |
TIM_OC_InitTypeDef * | cfg |
uint32_t | chan |
TIM_HandleTypeDef * | up_tim |
uint32_t * | pattern |
uint32_t * | pattern_next |
uint32_t | pattern_len |
uint32_t | pattern_idx |
uint8_t | repeat |
enum sd_led_state | state |
LED pattern configuration structure.
TIM_OC_InitTypeDef* cfg |
LED PWM configuration
uint32_t chan |
LED timer channel
uint32_t* pattern |
Pattern for pulses
uint32_t pattern_idx |
Index of current pattern
uint32_t pattern_len |
Pattern length
uint32_t* pattern_next |
Next pattern to run
uint8_t repeat |
Indicates repeated pattern
enum sd_led_state state |
State of the LED
TIM_HandleTypeDef* tim |
LED timer handle
TIM_HandleTypeDef* up_tim |
Update timer handle