Function openthread_sys::otPlatRadioGetNow
source · pub unsafe extern "C" fn otPlatRadioGetNow(
aInstance: *mut otInstance,
) -> u64
Expand description
Get the current time in microseconds referenced to a continuous monotonic local radio clock (64 bits width).
The radio clock SHALL NOT wrap during the device’s uptime. Implementations SHALL therefore identify and compensate for internal counter overflows. The clock does not have a defined epoch and it SHALL NOT introduce any continuous or discontinuous adjustments (e.g. leap seconds). Implementations SHALL compensate for any sleep times of the device.
Implementations MAY choose to discipline the radio clock and compensate for sleep times by any means (e.g. by combining a high precision/low power RTC with a high resolution counter) as long as the exposed combined clock provides continuous monotonic microsecond resolution ticks within the accuracy limits announced by @ref otPlatRadioGetCslAccuracy.
@param[in] aInstance A pointer to an OpenThread instance.
@returns The current time in microseconds. UINT64_MAX when platform does not support or radio time is not ready.