rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ui_card_text.h
1/*
2 * What a screen says of the SD (Secure Digital) card slot when no volume is
3 * mounted, by what the slot holds (card_state.h) and where it is said: no
4 * card, a card neither FAT32 nor exFAT, or a card that cannot be read.
5 *
6 * One table for every place, so each of them tells the three apart the
7 * same way. Implemented in ui_text.c.
8 *
9 * SPDX-License-Identifier: MIT
10 */
11#pragma once
12
13#include "card_state.h"
14#include "ui_text.h"
15
16typedef enum {
17 UI_CARD_AT_LOGS = 0,
18 UI_CARD_AT_SPLASH,
19 UI_CARD_AT_RUN,
20 UI_CARD_AT_TEST,
21 UI_CARD_AT_KP_WRITE,
22 UI_CARD_AT_KP_NO_FILE,
23 UI_CARD_AT_KP_NO_BACKUP,
24 UI_CARD_AT_KP_MSG,
25 UI_CARD_AT_COUNT
26} ui_card_at_t;
27
34ui_text_id_t ui_card_text_id(card_state_t state, ui_card_at_t at);
35
37const char *ui_card_text(card_state_t state, ui_card_at_t at);
What the panel's SD (Secure Digital) card slot holds, as the last mount found it: no card,...
card_state_t
Mount state of the SD card.
Definition card_state.h:17
The interface's words, one table per language.
ui_text_id_t
The screens' strings, TX_<ID> for each UI_TEXT() of ui_text.def.
Definition ui_text.h:43