|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-supplied calendar source used to stamp files. More...
#include <ra8_fs_seams.h>
Data Fields | |
| ra8_err_t(* | now )(void *ctx, ra8_fs_datetime_t *out) |
| Report the current civil time. | |
| void * | ctx |
| Caller-owned context passed back into now. | |
Caller-supplied calendar source used to stamp files.
One function pointer plus a cookie, in the shape every other seam in this library uses (ra8_fs_backend_t for blocks, ra8_fs_lock_t for mutual exclusion). Production wiring is a three-line adapter over ra8_rtc_get() that lives with the caller; the host tests inject a fake that returns a fixed instant, which is what makes the on-disk bytes assertable.
Definition at line 194 of file ra8_fs_seams.h.
| void* ra8_fs_clock_t::ctx |
Caller-owned context passed back into now.
Definition at line 205 of file ra8_fs_seams.h.
| ra8_err_t(* ra8_fs_clock_t::now) (void *ctx, ra8_fs_datetime_t *out) |
Report the current civil time.
| [in] | ctx | Caller cookie from ra8_fs_clock_t::ctx. |
| [out] | out | Receives the reading; only written on k_ra8_ok. |
Definition at line 202 of file ra8_fs_seams.h.
Referenced by ra8_fs_set_clock().