#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "ui/ui_shortcuts.h"
#include "apps/seq_led_bridge.h"
#include "ui/ui_led_backend.h"
#include "ui/ui_input.h"
#include "tests/stubs/ch.h"
Fonctions | |
void | ui_led_backend_init (void) |
Init du backend (driver + état visuel). | |
void | ui_led_backend_post_event (ui_led_event_t event, uint8_t index, bool state) |
File un évènement LED dans la queue non bloquante (contexte thread). | |
void | ui_led_backend_post_event_i (ui_led_event_t event, uint8_t index, bool state) |
Variante ISR de ui_led_backend_post_event (ne bloque jamais). | |
void | ui_led_backend_refresh (void) |
Rendu par mode (à appeler périodiquement avant drv_leds_addr_render()). | |
void | ui_led_backend_set_record_mode (bool active) |
LED REC globale (OFF/ON). | |
void | ui_led_backend_set_mode (ui_led_mode_t mode) |
Sélection du mode visuel courant. | |
void | ui_led_backend_set_cart_track_count (uint8_t cart_idx, uint8_t tracks) |
Pour MUTE : nombre de pistes par cart (0..4). | |
void | ui_led_backend_set_keyboard_omnichord (bool enabled) |
Active/valide le layout Omnichord (Keyboard). | |
void | ui_led_backend_set_track_focus (uint8_t track_index) |
Fixe la piste actuellement focalisée (Track Select). | |
void | ui_led_backend_set_track_present (uint8_t track_index, bool present) |
Indique si une piste est disponible pour l’affichage Track Select. | |
systime_t | chVTGetSystemTimeX (void) |
systime_t | chVTGetSystemTime (void) |
void | chThdSleepMilliseconds (uint32_t ms) |
void | chSysLock (void) |
void | chSysUnlock (void) |
void | chSysLockFromISR (void) |
void | chSysUnlockFromISR (void) |
bool | ui_input_shift_is_pressed (void) |
État de la touche SHIFT (abstraction UI). | |
int | main (void) |
void chSysLock | ( | void | ) |
void chSysLockFromISR | ( | void | ) |
void chSysUnlock | ( | void | ) |
void chSysUnlockFromISR | ( | void | ) |
void chThdSleepMilliseconds | ( | uint32_t | ms | ) |
systime_t chVTGetSystemTime | ( | void | ) |
systime_t chVTGetSystemTimeX | ( | void | ) |
int main | ( | void | ) |
bool ui_input_shift_is_pressed | ( | void | ) |
État de la touche SHIFT (abstraction UI).
void ui_led_backend_init | ( | void | ) |
Init du backend (driver + état visuel).
void ui_led_backend_post_event | ( | ui_led_event_t | event, |
uint8_t | index, | ||
bool | state | ||
) |
File un évènement LED dans la queue non bloquante (contexte thread).
event | Type d’événement (MUTE/PMUTE/CLK/…) |
index | Index associé (ex: step 0..15 pour CLOCK_TICK) |
state | Booléen associé si pertinent |
void ui_led_backend_post_event_i | ( | ui_led_event_t | event, |
uint8_t | index, | ||
bool | state | ||
) |
Variante ISR de ui_led_backend_post_event (ne bloque jamais).
event | Type d’événement |
index | Index associé |
state | Booléen associé si pertinent |
void ui_led_backend_refresh | ( | void | ) |
Rendu par mode (à appeler périodiquement avant drv_leds_addr_render()).
void ui_led_backend_set_cart_track_count | ( | uint8_t | cart_idx, |
uint8_t | tracks | ||
) |
Pour MUTE : nombre de pistes par cart (0..4).
void ui_led_backend_set_keyboard_omnichord | ( | bool | enabled | ) |
Active/valide le layout Omnichord (Keyboard).
void ui_led_backend_set_mode | ( | ui_led_mode_t | mode | ) |
Sélection du mode visuel courant.
void ui_led_backend_set_record_mode | ( | bool | active | ) |
LED REC globale (OFF/ON).
void ui_led_backend_set_track_focus | ( | uint8_t | track_index | ) |
Fixe la piste actuellement focalisée (Track Select).
void ui_led_backend_set_track_present | ( | uint8_t | track_index, |
bool | present | ||
) |
Indique si une piste est disponible pour l’affichage Track Select.