rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
wa_page.h
Go to the documentation of this file.
1
20
21#ifndef RCBENCH_WA_PAGE_H
22#define RCBENCH_WA_PAGE_H
23
24#include <stdbool.h>
25#include <stdint.h>
26
27#include "fw_image.h"
28#include "wa_text.h"
29#include "wa_walk.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
36#define WA_URL_CODE "/code"
37#define WA_URL_UPDATE "/update"
38#define WA_URL_FILE "/card/"
39#define WA_URL_ZIP "/card.zip"
41#define WA_COOKIE "rcbench_code"
42
43typedef struct {
44 const char *name;
45 const char *version;
46 uint32_t slot;
47 bool de;
49
51void wa_page_code(wa_out_t *o, const wa_page_info_t *pi, bool wrong);
52
54void wa_page_main(wa_out_t *o, const wa_page_info_t *pi, const wa_fs_t *fs);
55
61void wa_page_upload_result(wa_out_t *o, bool de, fw_err_t e,
62 const fw_image_info_t *info, bool same);
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* RCBENCH_WA_PAGE_H */
The panel's application image, read from memory: what it is, whether it is whole, and whether it is o...
fw_err_t
Definition fw_image.h:61
Definition fw_image.h:83
Definition wa_walk.h:53
Definition wa_text.h:71
Definition wa_page.h:43
bool de
Definition wa_page.h:47
uint32_t slot
Definition wa_page.h:46
const char * name
Definition wa_page.h:44
const char * version
Definition wa_page.h:45
void wa_page_upload_result(wa_out_t *o, bool de, fw_err_t e, const fw_image_info_t *info, bool same)
Definition wa_page.c:244
void wa_page_code(wa_out_t *o, const wa_page_info_t *pi, bool wrong)
Definition wa_page.c:82
void wa_page_main(wa_out_t *o, const wa_page_info_t *pi, const wa_fs_t *fs)
Definition wa_page.c:236
Every file and folder on the card, one at a time.