|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
#include <wa_walk.h>
Data Fields | |
| void *(*) | opendir (void *ctx, const char *path) |
| int(*) | readdir (void *ctx, void *dir, wa_dirent_t *out) |
| void(*) | closedir (void *ctx, void *dir) |
| void *(*) | open (void *ctx, const char *path) |
| int32_t(*) | read (void *ctx, void *file, uint8_t *dst, uint32_t len) |
| void(*) | close (void *ctx, void *file) |
| void * | ctx |
| bool(*) | stopped (void *ctx) |
| Whether the walk is to end now, asked before every entry; NULL never. | |
The card, by paths relative to its root ("" is the root).
| int32_t(*) wa_fs_t::read(void *ctx, void *file, uint8_t *dst, uint32_t len) |
Up to len bytes: how many, 0 at the end, -1 on an error.
| int(*) wa_fs_t::readdir(void *ctx, void *dir, wa_dirent_t *out) |
The next entry: 1, 0 at the end, -1 on an error.