rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
wa_fs_t Struct Reference

#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.

Detailed Description

The card, by paths relative to its root ("" is the root).

Field Documentation

◆ read

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.

◆ readdir

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.


The documentation for this struct was generated from the following file: