|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The Wi-Fi page: the code form, the card listing and the upload answers in English and German. See wa_page.h. More...
#include "wa_page.h"#include <string.h>#include "wa_guard.h"#include "wa_zip.h"#include "wall_clock.h"#include "ui_text.def"Macros | |
| #define | UI_WEB_TEXT(id, en, de) |
| One identifier per UI_WEB_TEXT() entry. | |
| #define | UI_WEB_TEXT(id, en, de) |
| One identifier per UI_WEB_TEXT() entry. | |
| #define | WA_PAGE_DE(id, de) |
The German entry of text id as the table gives it. | |
| #define | UI_WEB_TEXT(id, en, de) |
| One identifier per UI_WEB_TEXT() entry. | |
Enumerations | |
| enum | p_text_t { P_COUNT } |
| The page's texts, P_<ID> for each UI_WEB_TEXT() of ui_text.def. | |
Functions | |
| static const char * | pt (bool de, p_text_t t) |
| One text of the page in the page's language. | |
| static void | head (wa_out_t *o, const wa_page_info_t *pi) |
| void | wa_page_code (wa_out_t *o, const wa_page_info_t *pi, bool wrong) |
| static void | firmware (wa_out_t *o, const wa_page_info_t *pi) |
| static void | folder (wa_out_t *o, const wa_page_info_t *pi, const char *path) |
| static void | files (wa_out_t *o, const wa_page_info_t *pi, const wa_fs_t *fs) |
| void | wa_page_main (wa_out_t *o, const wa_page_info_t *pi, const wa_fs_t *fs) |
| void | wa_page_upload_result (wa_out_t *o, bool de, fw_err_t e, const fw_image_info_t *info, bool same) |
Variables | |
| static const char *const | k_en [P_COUNT] |
| The page's texts in English. | |
| static const char *const | k_de [P_COUNT] |
| The page's texts in German; NULL where the table has no German. | |
The Wi-Fi page: the code form, the card listing and the upload answers in English and German. See wa_page.h.
SPDX-License-Identifier: MIT
| #define UI_WEB_TEXT | ( | id, | |
| en, | |||
| de ) |
One identifier per UI_WEB_TEXT() entry.
| #define UI_WEB_TEXT | ( | id, | |
| en, | |||
| de ) |
One identifier per UI_WEB_TEXT() entry.
| #define UI_WEB_TEXT | ( | id, | |
| en, | |||
| de ) |
One identifier per UI_WEB_TEXT() entry.
| #define WA_PAGE_DE | ( | id, | |
| de ) |
The German entry of text id as the table gives it.
test_wa_page_de defines it before it includes this file, to blank one entry.
|
static |
One text of the page in the page's language.
| de | German page. |
| t | The text. |
| void wa_page_code | ( | wa_out_t * | o, |
| const wa_page_info_t * | pi, | ||
| bool | wrong ) |
The code form; wrong adds that the last code was wrong.
| void wa_page_main | ( | wa_out_t * | o, |
| const wa_page_info_t * | pi, | ||
| const wa_fs_t * | fs ) |
The whole page, with two walks of fs: one adding up, one listing.
| void wa_page_upload_result | ( | wa_out_t * | o, |
| bool | de, | ||
| fw_err_t | e, | ||
| const fw_image_info_t * | info, | ||
| bool | same ) |
The text an upload's response carries: e as fw_upload_end() or fw_upload_begin() gave it, and for FW_OK the version received in info, which same says is the build that runs.
|
static |
The page's texts in German; NULL where the table has no German.
|
static |
The page's texts in English.