|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
58 #ifndef GPTPMASTERCLOCK_H_
59 #define GPTPMASTERCLOCK_H_
int gptpmasterclock_gm_domainIndex(void)
return the domainIndex which is currently used as systeme wide gptp clock.
void gptpmasterclock_dump_offset(void)
print phase offset for all domains
int gptpmasterclock_gmchange_ind(void)
get GM change indicator, the number is incremented whenever GM is changed
int gptpmasterclock_wait_until_ts64(int64_t tts, int64_t vclose, int64_t toofar)
Wait until tts comes.
int gptpmasterclock_init(const char *shmem_name)
initialize to get gptp clock from tsn_gptp daemon. if previously initialized, it will simply return 0...
int gptpmasterclock_get_domain_ts64(int64_t *ts64, int domainIndex)
get a synchronized clock value on specific domain
uint64_t gptpmasterclock_expand_timestamp_ts64(uint32_t timestamp, int64_t ts64)
expand 32-bit nsec time to 64 bit with aligning to gptp clock at the time ts64.
uint64_t gptpmasterclock_expand_timestamp(uint32_t timestamp)
expand 32-bit nsec time to 64 bit with aligning to gptp clock.
int gptpmasterclock_get_max_domains(void)
get maximum number of domains
int gptpmasterclock_close(void)
close gptpmasterclcock
int64_t gptpmasterclock_getts64(void)
get 64-bit nsec unit ts of system wide gptp clock