ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_io_roundtrip.h
Go to the documentation of this file.
1
30#pragma once
31
32#include <stdint.h>
33
34#include "ra8_err.h"
35#include "ra8_fs.h"
36#include "ra8_io.h"
37
69typedef struct {
70 const char* vfs_prefix;
72 const char* volume_label;
73 const char* log_tag;
74 const char* root_file;
75 const char* root_path;
76 uint32_t root_bytes;
77 const char* subdir_path;
78 const char* subdir_file;
79 uint32_t subdir_bytes;
81
114 ra8_fs_mount_t** out_mount);
115
144
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Minimal FAT12/FAT16/FAT32 filesystem adapter (read + write).
ra8_fs_type_t
FAT variant detected from the BPB cluster-count rule.
ra8_io – unified peripheral-agnostic I/O fabric (umbrella header).
ra8_err_t ra8_io_roundtrip_root_file(ra8_fs_mount_t *mnt, const ra8_io_roundtrip_params_t *p)
Whole-file write at the volume root, VFS read-back, and byte-compare.
ra8_err_t ra8_io_roundtrip_mount(ra8_io_blockdev_t *bd, const ra8_io_roundtrip_params_t *p, ra8_fs_backend_t *be, ra8_fs_mount_t **out_mount)
Bridge a bound block device to ra8_fs, format + mount FAT, VFS-register.
ra8_err_t ra8_io_roundtrip_subdir_file(const ra8_io_roundtrip_params_t *p)
mkdir a subdirectory via the VFS, then round-trip a nested file.
Block-device interface that ra8_fs runs on top of.
Cached parse of one mounted FAT volume.
Caller-allocated block-device handle binding a backend to its context.
Per-demo knobs for the shared ra8_io round-trip.
const char * volume_label
11-char-max FAT volume label literal.
const char * root_path
Full VFS path of the root file for read-back.
const char * subdir_path
Full VFS path of the directory to create.
ra8_fs_type_t fat_type
FAT variant laid down by the format step.
const char * root_file
Root file name for the whole-file write.
const char * log_tag
ra8_log tag used on every step failure.
const char * subdir_file
Full VFS path of the nested file.
const char * vfs_prefix
VFS volume name, e.g.
uint32_t subdir_bytes
Deterministic payload length in the subdir.
uint32_t root_bytes
Deterministic payload length at the root.