The PTP client API can be used if you want extra information about the PTP time domain. An application does not need to directly use this to control the AVB endpoint since the talker, listener and media clock server units communicate with the PTP server directly.
This type is used to relate local XCore time with gptp time.
It can be retrieved from the PTP server using the ptp_get_time_info() function.
This structure is used to relate local XCore time with the least significant 64 bits of gptp time.
The 64 bits of time is the PTP time in nanoseconds from the epoch.
It can be retrieved from the PTP server using the ptp_get_time_info_mod64() function.
Retrieve time information from the ptp server.
This function gets an up-to-date structure of type ptp_time_info to use to convert local time to PTP time.
Parameters: |
|
---|
Retrieve time information from the ptp server.
This function gets an up-to-date structure of type ptp_time_info_mod64 to use to convert local time to ptp time (modulo 64 bits).
Parameters: |
|
---|
This function requests a ptp_time_info structure from the PTP server.
This is an asynchronous call so needs to be completed later with a call to ptp_get_requested_time_info().
Parameters: |
|
---|
This function requests a ptp_time_info_mod64 structure from the PTP server.
This is an asynchronous call so needs to be completed later with a call to ptp_get_requested_time_info_mod64().
Parameters: |
|
---|
This function receives a ptp_time_info structure from the PTP server.
This completes an asynchronous transaction initiated with a call to ptp_request_time_info(). The function can be placed in a select case which will activate when the PTP server is ready to send.
Parameters: |
|
---|
This function receives a ptp_time_info_mod64 structure from the PTP server.
This completes an asynchronous transaction initiated with a call to ptp_request_time_info_mod64(). The function can be placed in a select case which will activate when the PTP server is ready to send.
Parameters: |
|
---|
Convert a timestamp from the local XCore timer to PTP time.
This function takes a 32-bit timestamp taken from an XCore timer and converts it to PTP time.
Parameters: |
|
---|
Convert a timestamp from the local XCore timer to the least significant 32 bits of PTP time.
This function takes a 32-bit timestamp taken from an XCore timer and converts it to the least significant 32 bits of global PTP time.
Parameters: |
|
---|---|
Returns: | the least significant 32-bits of ptp time in nanoseconds |
Convert a PTP timestamp to a local XCore timestamp.
This function takes a PTP timestamp and converts it to a local 32-bit timestamp that is related to the XCore timer.
Parameters: |
|
---|---|
Returns: | the local timestamp |