AM263x MCU+ SDK  10.00.00
lldtsync.h File Reference

Introduction

TI Timesync Low Level Driver abstract APIs.

Go to the source code of this file.

Data Structures

struct  LLDTSyncCfg_t
 Configuration structure for LLDTSync. More...
 

Typedefs

typedef struct LLDTSync LLDTSync_t
 Structure representing the LLDTSync instance. More...
 

Functions

void LLDTSyncCfgInit (LLDTSyncCfg_t *cfg)
 Initializes the LLDTSyncCfg_t configuration structure. More...
 
LLDTSync_tLLDTSyncOpen (LLDTSyncCfg_t *cfg)
 Opens a new LLDTSync instance to access the PTP clock. More...
 
void LLDTSyncClose (LLDTSync_t *hTSync)
 Closes the LLDTSync instance. More...
 
int LLDTSyncGetRxTime (LLDTSync_t *hTSync, uint8_t rxPort, int msgType, uint16_t seqId, uint8_t domain, uint64_t *ts)
 Retrieves the PTP RX timestamp for a specific message. More...
 
int LLDTSyncGetTxTime (LLDTSync_t *hTSync, uint8_t txPort, int msgType, uint16_t seqId, uint8_t domain, uint64_t *ts)
 Retrieves the PTP TX timestamp for a specific message. More...
 
int LLDTSyncAdjFreq (LLDTSync_t *hTSync, int ppb)
 Adjusts the frequency of the PTP clock. More...
 
int LLDTSyncSetTime (LLDTSync_t *hTSync, uint64_t ts)
 Sets the time for the PTP clock. More...
 
int LLDTSyncGetTime (LLDTSync_t *hTSync, uint64_t *ts)
 Retrieves the current time from the PTP clock. More...
 
int LLDTSyncEnableTsEvent (LLDTSync_t *hTSync, uint32_t ports[], uint32_t numPorts)
 Enables PTP timestamp events for specified ports. More...
 
int LLDTSyncShiftTime (LLDTSync_t *hTSync, int64_t offset)
 Shift the time of the PTP clock by offset nsec. More...