53typedef enum : uint8_t {
76typedef enum : uint8_t {
103typedef enum : uint32_t {
144typedef enum : int16_t {
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Minimal FAT12/FAT16/FAT32 filesystem adapter (read + write).
void priv_fat_entry_set_times(uint8_t *entry, const ra8_fs_datetime_t *create, const ra8_fs_datetime_t *modify, const ra8_fs_datetime_t *access)
Set chosen FAT directory-entry timestamps from caller-supplied readings.
void priv_exfat_file_stamp_write(uint8_t *file_entry)
Advance an exFAT File entry's modification (and access) stamps.
void priv_exfat_file_stamp_create(uint8_t *file_entry)
Stamp a fresh exFAT File entry's create, modify, and access fields.
void priv_exfat_file_stamp_access(uint8_t *file_entry)
Advance only an exFAT File entry's last-accessed stamp.
ra8_fs_utc_span_t
The signed range of UTC offsets exFAT's 7-bit field can express.
@ k_fs_utc_span_min
UTC-12:00 expressed in minutes.
@ k_fs_utc_span_max
UTC+14:00 expressed in minutes.
void priv_fat_entry_stamp_access(uint8_t *entry)
Advance only a FAT directory entry's last-access date.
ra8_fs_exfat_time_off_t
Byte offsets of the timestamp fields in an exFAT File entry (0x85).
@ k_exfat_off_file_mutc
exFAT spec sec 7.4.14 "LastModifiedUtcOffset".
@ k_exfat_off_file_m10ms
exFAT spec sec 7.4.12 "LastModified10ms".
@ k_exfat_off_file_atime
exFAT spec sec 7.4.10 "LastAccessedTimestamp".
@ k_exfat_off_file_mtime
exFAT spec sec 7.4.9 "LastModifiedTimestamp".
@ k_exfat_off_file_ctime
exFAT spec sec 7.4.8 "CreateTimestamp".
@ k_exfat_off_file_cutc
exFAT spec sec 7.4.13 "CreateUtcOffset".
@ k_exfat_off_file_autc
exFAT spec sec 7.4.15 "LastAccessedUtcOffset".
@ k_exfat_off_file_c10ms
exFAT spec sec 7.4.11 "Create10msIncrement".
void priv_exfat_file_set_times(uint8_t *file_entry, const ra8_fs_datetime_t *create, const ra8_fs_datetime_t *modify, const ra8_fs_datetime_t *access)
Set chosen exFAT File-entry timestamps from caller-supplied readings.
void priv_fat_entry_stamp_write(uint8_t *entry)
Advance a FAT directory entry's modification time and access date.
ra8_fs_time_off_t
Byte offsets of the timestamp fields in a 32-byte FAT directory entry.
@ k_dir_off_lst_acc_date
MS FAT spec sec 6 "DIR_LstAccDate".
@ k_dir_off_crt_time_tenth
MS FAT spec sec 6 "DIR_CrtTimeTenth".
@ k_dir_off_crt_date
MS FAT spec sec 6 "DIR_CrtDate".
@ k_dir_off_crt_time
MS FAT spec sec 6 "DIR_CrtTime".
@ k_dir_off_wrt_date
MS FAT spec sec 6 "DIR_WrtDate".
@ k_dir_off_wrt_time
MS FAT spec sec 6 "DIR_WrtTime".
void priv_fat_entry_stamp_create(uint8_t *entry)
Stamp a fresh FAT directory entry's create, write, and access fields.
ra8_fs_time_pack_t
Bit positions, field ranges, and epoch constants for both packings.
@ k_fs_time_year_max
1980 + 127: last representable year.
@ k_fs_time_shift_hour
FAT time: hour field position.
@ k_fs_time_month_min
Month is 1-based on disk.
@ k_fs_time_epoch_fat_date
1980-01-01 packed: month 1, day 1.
@ k_fs_time_second_max
Highest second.
@ k_fs_time_shift_minute
FAT time: minute field position.
@ k_fs_utc_valid_bit
exFAT UtcOffset bit 7 = OffsetValid.
@ k_fs_time_hour_max
Highest hour.
@ k_fs_time_minute_max
Highest minute.
@ k_fs_centi_per_second
Hundredths in one second.
@ k_fs_utc_step_min
exFAT UtcOffset granularity, minutes.
@ k_fs_date_shift_year
FAT date: year field position.
@ k_fs_xf_shift_year
exFAT date half: year field position.
@ k_fs_utc_field_mask
exFAT UtcOffset bits 6:0 = the offset.
@ k_fs_time_second_div
FAT/exFAT store seconds/2.
@ k_fs_time_epoch_year
Year 0 of both on-disk formats.
@ k_fs_xf_shift_month
exFAT date half: month field position.
@ k_fs_time_day_max
Highest day the field can express.
@ k_fs_time_day_min
Day is 1-based on disk.
@ k_fs_utc_unknown
OffsetValid clear: zone not recorded.
@ k_fs_xf_shift_date
exFAT stamp: date half position.
@ k_fs_time_centi_max
Highest hundredth within a second.
@ k_fs_time_month_max
Highest month.
@ k_fs_date_shift_month
FAT date: month field position.
Broken-down civil date and time used at the filesystem boundary.