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

Broken-down civil date and time used at the filesystem boundary. More...

#include <ra8_fs_types.h>

Data Fields

uint16_t year
 Full civil year, e.g.
int16_t utc_offset_min
 Offset of the civil fields from UTC, in minutes.
uint8_t month
 Month of year, 1..12.
uint8_t day
 Day of month, 1..31.
uint8_t hour
 Hour of day, 0..23.
uint8_t minute
 Minute of hour, 0..59.
uint8_t second
 Second of minute, 0..59.
uint8_t centisecond
 Hundredths within second, 0..99.

Detailed Description

Broken-down civil date and time used at the filesystem boundary.

This value is shared by the injected write clock and metadata read results. The fields are civil time; utc_offset_min says which zone they belong to when the on-disk format records one. FAT has no UTC-offset field, while exFAT does.

Invariant
A valid value has year 1980..2107, month 1..12, day 1..31, hour 0..23, minute/second 0..59, and centisecond 0..99.
Since
0.1.0

Definition at line 339 of file ra8_fs_types.h.

Field Documentation

◆ centisecond

uint8_t ra8_fs_datetime_t::centisecond

Hundredths within second, 0..99.

Definition at line 347 of file ra8_fs_types.h.

Referenced by internal_clamp_datetime(), internal_stat_decode_fat(), internal_tenths_of(), and internal_timestamp().

◆ day

◆ hour

uint8_t ra8_fs_datetime_t::hour

◆ minute

uint8_t ra8_fs_datetime_t::minute

◆ month

◆ second

uint8_t ra8_fs_datetime_t::second

◆ utc_offset_min

int16_t ra8_fs_datetime_t::utc_offset_min

Offset of the civil fields from UTC, in minutes.

Definition at line 341 of file ra8_fs_types.h.

Referenced by internal_exfat_pack(), internal_stat_decode_exfat(), and internal_timestamp().

◆ year

uint16_t ra8_fs_datetime_t::year

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