ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
fw_if_fs_ra8_vfs.h
Go to the documentation of this file.
1
25
26#pragma once
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <stdint.h>
33
34#include "fw_if_fs.h"
35#include "ra8_fs.h"
36#include "ra8_io_vfs.h"
37
39typedef enum : uint16_t {
41 (uint16_t)k_fw_fs_path_cap + (uint16_t)k_ra8_io_vfs_name_max + 2U,
43
50
67
74[[nodiscard]] ra8_err_t
76
77#ifdef __cplusplus
78}
79#endif
Architecture-neutral filesystem namespace, stream, and transaction ports.
ra8_err_t fw_fs_ra8_vfs_init(fw_fs_t *out, fw_fs_ra8_vfs_state_t *state, const fw_fs_ra8_vfs_cfg_t *cfg)
Bind a live named VFS mount into the portable filesystem facade.
fw_fs_ra8_vfs_limits_t
Fixed storage used to prefix one portable path with a mount name.
@ k_fw_fs_ra8_vfs_full_path_cap
name: + path + NUL.
@ k_fw_fs_path_cap
Largest portable path including its NUL.
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_io virtual filesystem – mount many volumes, address them by name.
@ k_ra8_io_vfs_name_max
Mount name length incl NUL.
Definition ra8_io_vfs.h:58
Composition-root configuration for one firmware filesystem binding.
const char * mount_name
Registered VFS name without :.
bool removable_media
True for hot-removable media such as SD.
ra8_fs_mount_t * mount
Matching live mount for space/caps.
Caller-owned adapter context.
uint32_t directory_workspace_bytes
Native cursor workspace bytes.
char mount_name[k_ra8_io_vfs_name_max]
Bounded mount name.
ra8_fs_mount_t * mount
Live mount.
char path_a[k_fw_fs_ra8_vfs_full_path_cap]
First path scratch.
uint16_t max_open_directories
Native concurrent cursor limit.
bool removable_media
Capability input.
uint8_t directory_workspace_align
Native cursor alignment.
uint32_t transaction_id
Stage-name counter.
char path_b[k_fw_fs_ra8_vfs_full_path_cap]
Rename path scratch.
One complete composition-root filesystem binding.
Cached parse of one mounted FAT volume.