ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_fs_format_opts_t Struct Reference

Tunables for ra8_fs_format() (the on-disk geometry of a fresh volume). More...

#include <ra8_fs_types.h>

Data Fields

ra8_fs_type_t type
 FAT variant to lay down (12/16/32).
const char * label
 0..11 char volume label, or NULL.
uint8_t sectors_per_cluster
 Cluster size; 0 = auto-select.

Detailed Description

Tunables for ra8_fs_format() (the on-disk geometry of a fresh volume).

Open/Closed seam for the formatter: callers select the FAT variant and label, and may optionally pin the cluster size. Zero-initialise the struct (= {}) for sane defaults – a zero sectors_per_cluster asks the formatter to pick the smallest power-of-two that lands the cluster count inside the range valid for type on the backend's capacity.

Invariant
type is one of k_ra8_fs_type_fat12, _fat16, _fat32, or _exfat (every type ra8_fs can write – see ra8_fs_format()).
sectors_per_cluster, when non-zero, is a power of two in the closed range 1..128.
Example:
opts.label = "DATA";
ra8_err_t e = ra8_fs_format(&backend, &opts); // auto cluster size
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
ra8_err_t ra8_fs_format(const ra8_fs_backend_t *backend, const ra8_fs_format_opts_t *opts)
Format a block device as a fresh, empty FAT12/FAT16/FAT32/exFAT volume.
@ k_ra8_fs_type_fat32
count_of_clusters >= 65525.
Tunables for ra8_fs_format() (the on-disk geometry of a fresh volume).
ra8_fs_type_t type
FAT variant to lay down (12/16/32).
const char * label
0..11 char volume label, or NULL.
See also
ra8_fs_format()
Since
0.1.0

Definition at line 224 of file ra8_fs_types.h.

Field Documentation

◆ label

◆ sectors_per_cluster

uint8_t ra8_fs_format_opts_t::sectors_per_cluster

Cluster size; 0 = auto-select.

Definition at line 227 of file ra8_fs_types.h.

◆ type


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