Zephyr API 3.6.99
Loading...
Searching...
No Matches
maxim_ds3231_syncpoint Struct Reference

Register the RTC clock against system clocks. More...

#include <maxim_ds3231.h>

Data Fields

struct timespec rtc
 Time from the DS3231.
 
uint32_t syncclock
 Value of a local clock at the same instant as rtc.
 

Detailed Description

Register the RTC clock against system clocks.

This captures the same instant in both the RTC time scale and a stable system clock scale, allowing conversion between those scales.

Field Documentation

◆ rtc

struct timespec maxim_ds3231_syncpoint::rtc

Time from the DS3231.

This maybe in UTC, TAI, or local offset depending on how the RTC is maintained.

◆ syncclock

uint32_t maxim_ds3231_syncpoint::syncclock

Value of a local clock at the same instant as rtc.

This is captured from a stable monotonic system clock running at between 1 kHz and 1 MHz, allowing for microsecond to millisecond accuracy in synchronization.


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