|
enum | unified_status_clock_source_t {
unified_status_clock_source_internal_rtc,
unified_status_clock_source_gps,
unified_status_clock_source_stream_sync,
unified_status_clock_source_ntp,
unified_status_clock_source_accurate_rtc
} |
| Different types of clock source.
|
|
Per-instrument timing status.
◆ unified_status_read_clock()
Interpret a clock status tag.
- Parameters
-
| st | Pointer to status data (must coincide with start of tag). |
[out] | out | Clock status written here. |
- Return values
-
Interprets clock status tag at st, storing the result in out.
◆ unified_status_write_clock()
Compose a clock status tag.
- Parameters
-
buf | Buffer to write result into. |
in | Clock status. |
Encodes the clock status in in, appending the result onto buf.
◆ soh_store_get_clock_status()
int soh_store_get_clock_status |
( |
const struct soh_store_t * |
store, |
|
|
struct iso8601_date * |
timestamp, |
|
|
struct unified_status_clock_t * |
clock |
|
) |
| |
Retrieve clock status from persistent store object.
- Parameters
-
| store | Persistent storage object. |
[out] | timestamp | Timestamp of last update. May be 0. |
[out] | clock | Clock information structure. May be 0. |
- Return values
-
0 | on success. |
-1 | on error (no status information seen). |