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

The card. More...

#include <fault_log.h>

Data Fields

void * ctx
bool(*) mounted (void *ctx)
 Whether a card is mounted.
card_dir_t(*) make_dir (void *ctx, const char *level)
 Make one folder level (card_make_fn).
int32_t(*) size (void *ctx, const char *path)
 The size of file path in bytes, INT32_MAX for a larger one; FAULT_SIZE_NONE when nothing has the name; FAULT_SIZE_UNREAD when the size does not read, or a folder has the name.
bool(*) remove (void *ctx, const char *path)
 Remove file path.
bool(*) rename (void *ctx, const char *from, const char *to)
 Give file from the name to, which no file has.
bool(*) append (void *ctx, const char *path, const char *line)
 Append line and a line feed to path, creating the file.

Detailed Description

The card.

A path is from the root (card_tree.h). All 6 functions are set.

Field Documentation

◆ ctx

void* fault_log_io_t::ctx

passed to every function

◆ remove

bool(*) fault_log_io_t::remove(void *ctx, const char *path)

Remove file path.

True when no file has the name afterwards.


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