rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
32
extern
"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
43
typedef
struct
{
44
const
char
*
name
;
45
const
char
*
version
;
46
uint32_t
slot
;
47
bool
de
;
48
}
wa_page_info_t
;
49
51
void
wa_page_code
(
wa_out_t
*o,
const
wa_page_info_t
*pi,
bool
wrong);
52
54
void
wa_page_main
(
wa_out_t
*o,
const
wa_page_info_t
*pi,
const
wa_fs_t
*fs);
55
61
void
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 */
fw_image.h
The panel's application image, read from memory: what it is, whether it is whole, and whether it is o...
fw_err_t
fw_err_t
Definition
fw_image.h:61
fw_image_info_t
Definition
fw_image.h:83
wa_fs_t
Definition
wa_walk.h:53
wa_out_t
Definition
wa_text.h:71
wa_page_info_t
Definition
wa_page.h:43
wa_page_info_t::de
bool de
Definition
wa_page.h:47
wa_page_info_t::slot
uint32_t slot
Definition
wa_page.h:46
wa_page_info_t::name
const char * name
Definition
wa_page.h:44
wa_page_info_t::version
const char * version
Definition
wa_page.h:45
wa_page_upload_result
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
wa_page_code
void wa_page_code(wa_out_t *o, const wa_page_info_t *pi, bool wrong)
Definition
wa_page.c:82
wa_page_main
void wa_page_main(wa_out_t *o, const wa_page_info_t *pi, const wa_fs_t *fs)
Definition
wa_page.c:236
wa_walk.h
Every file and folder on the card, one at a time.
shared
webaccess
include
wa_page.h
Generated by
1.18.0