This module is responsible for managing the LED UI by playing and stopping the different UI sequences a single time or in a loop. This module gets the LED sequences from the led_seq module and plays through the hal_pwm module.
More...
◆ led_ui_priority_t
Enumerator |
---|
LED_UI_LOW_PRIORITY | LED_UI_LOW_PRIORITY.
|
LED_UI_MID_PRIORITY | LED_UI_MID_PRIORITY.
|
LED_UI_HIGH_PRIORITY | LED_UI_HIGH_PRIORITY.
|
Definition at line 40 of file led_ui.h.
◆ led_ui_seq_t
Enumerator |
---|
LED_UI_SINGLE_SEQ | Run a sequence repeatedly.
|
LED_UI_SEQ_T_SIZE | Run a sequence only once.
Only used to get num of elements in enum
|
Definition at line 48 of file led_ui.h.
◆ led_ui_get_current_seq()
- Parameters
-
type | The type of sequence to return |
- Returns
- The sequence that is active of
type
Definition at line 308 of file led_ui.c.
◆ led_ui_loop_start()
- Parameters
-
seq | The sequence to start |
priority | The priority of the sequence |
Definition at line 247 of file led_ui.c.
◆ led_ui_single_start()
void led_ui_single_start |
( |
led_sequences |
seq, |
|
|
led_ui_priority_t |
priority, |
|
|
bool |
reset |
|
) |
| |
◆ led_ui_stop_priority()
void led_ui_stop_priority |
( |
led_ui_seq_t |
type, |
|
|
uint32_t |
priority |
|
) |
| |
- Parameters
-
type | The type to be stopped |
priority | The priority level or less to be stopped |
Definition at line 292 of file led_ui.c.
◆ led_ui_stop_seq()
void led_ui_stop_seq |
( |
led_ui_seq_t |
type, |
|
|
led_sequences |
seq |
|
) |
| |
- Parameters
-
type | The type to be stopped |
seq | The sequence to be stopped |
Definition at line 283 of file led_ui.c.
◆ led_ui_type_stop_all()