Skip to main content

nros_platform_wall_clock_state

Function nros_platform_wall_clock_state 

Source
pub unsafe extern "C" fn nros_platform_wall_clock_state() -> nros_wall_clock_state_t
Expand description

The wall clock’s state, for an application that must not publish unstamped data: ask before publishing, rather than a board hook deciding by exiting.

Every port DEFINES this; there is no default, so a port that does not is a link error naming the symbol, never a silent answer. A port with no real-time clock answers { false, NROS_WALL_CLOCK_SOURCE_PLATFORM, 0 }, matching its 0 from nros_platform_time_now_ns. A port that calibrates through <nros/clock_epoch.h> answers from that store.