AM263x MCU+ SDK  10.00.00
gptpmasterclock.h File Reference

Introduction

file contains gptp master clock related functions.

Go to the source code of this file.

Functions

int gptpmasterclock_init (const char *shmem_name)
 initialize to get gptp clock from tsn_gptp daemon. if previously initialized, it will simply return 0. More...
 
int gptpmasterclock_close (void)
 close gptpmasterclcock More...
 
int gptpmasterclock_gm_domainIndex (void)
 return the domainIndex which is currently used as systeme wide gptp clock. More...
 
int64_t gptpmasterclock_getts64 (void)
 get 64-bit nsec unit ts of system wide gptp clock More...
 
int gptpmasterclock_wait_until_ts64 (int64_t tts, int64_t vclose, int64_t toofar)
 Wait until tts comes. More...
 
uint64_t gptpmasterclock_expand_timestamp (uint32_t timestamp)
 expand 32-bit nsec time to 64 bit with aligning to gptp clock. More...
 
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. More...
 
int gptpmasterclock_gmchange_ind (void)
 get GM change indicator, the number is incremented whenever GM is changed More...
 
int gptpmasterclock_get_max_domains (void)
 get maximum number of domains More...
 
int gptpmasterclock_get_domain_ts64 (int64_t *ts64, int domainIndex)
 get a synchronized clock value on specific domain More...
 
void gptpmasterclock_dump_offset (void)
 print phase offset for all domains More...