axiethernet
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xavb_ptp_packets.c File Reference
#include "xil_types.h"
#include "xavb_hw.h"
#include "xavb.h"
#include "stdlib.h"

Functions

u32 XAvb_CompareClockIdentity (u32 BaseAddress, XAvb_ClockIdentity Identity1, XAvb_ClockIdentity Identity2)
 A function to compare two ClockIdentity values. More...
 
u32 XAvb_ComparePortIdentity (u32 BaseAddress, XAvb_PortIdentity Identity1, XAvb_PortIdentity Identity2)
 A function to compare two PortIdentity values. More...
 
void XAvb_GetPortIdentity (u32 BaseAddress, u32 PtpFrameBaseAddr, u32 PortIdOffset, XAvb_PortIdentity *portID)
 A function to extract portIdentity information from a received PTP frame. More...
 
void XAvb_WriteToMultipleTxPtpFrames (u32 BaseAddress, u32 PtpFieldAddress, u32 Data, u32 DataBitEnable, u8 BufferEnable)
 A function to write common data (eg the Source Address) to all PTP frames. More...
 
u32 XAvb_ReorderWord (u32 Data)
 Switches the bytes in a 4-byte word, swapping the MSB for the. More...
 
u32 XAvb_IncSequenceId (u32 BaseAddress, u32 PtpFrameBaseAddress)
 A function to increment the sequenceId in a PTP frame template. More...
 
void XAvb_WaitOnTxPtpQueue (XAvb *InstancePtr)
 The software drivers are kept simple by only requesting a single PTP frame to. More...
 
void XAvb_MasterSendAnnounce (XAvb *InstancePtr)
 A function to format then request the transmission of a PTP Announce Packet. More...
 
void XAvb_MasterSendSync (XAvb *InstancePtr)
 A function to format then request the transmission of a PTP Sync Packet. More...
 
void XAvb_MasterSendFollowUp (XAvb *InstancePtr)
 A function to format then request the transmission of a PTP Follow-Up Packet. More...
 
void XAvb_SendPDelayReq (XAvb *InstancePtr)
 A function to format then request the transmission of a PTP PDelay Request. More...
 
void XAvb_SendPDelayResp (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to format then request the transmission of a PTP PDelay Response. More...
 
void XAvb_SendPDelayRespFollowUp (XAvb *InstancePtr)
 A function to format then request the transmission of a PTP PDelay Response. More...
 
u32 XAvb_IsRxFramePTP (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to check that various fields in the received frame contain the. More...
 
void XAvb_DecodeRxSync (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to decode a received PTP Sync Packet. More...
 
void XAvb_DecodeRxFollowUp (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to decode a received PTP Follow-up Packet. More...
 
void XAvb_DecodeRxPDelayResp (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to decode a received PDelayResp Packet. More...
 
void XAvb_DecodeRxPDelayRespFollowUp (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to decode a received PDelayRespFollowUp Packet. More...
 
void XAvb_DecodeRxSignaling (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A function to decode a received Signalling Packet and modify the TX PTP. More...
 
u16 XAvb_UpdateIntervalDuration (u16 currentIntervalDuration, char logMeanVal)
 A function to update a PTP message Interval Duration (defined as a. More...
 
u16 XAvb_ConvertLogMeanToDuration (char logMeanVal)
 A function to convert a logMean (power of 2) value into a fraction of 128. More...
 
char XAvb_ConvertDurationToLogMean (u16 fractionalVal)
 A function to convert a fraction of 128 value that is compatible with. More...
 
void XAvb_UpdateLogMeanMessageInterval (u32 BaseAddress, u32 PtpFrameBaseAddr, u16 intervalDuration)
 A function to update the logMeanMessageInterval field in a PTP packet. More...
 
void XAvb_SetupSourcePortIdentity (XAvb *InstancePtr, XAvb_PortIdentity systemIdentity)
 Updates the portIdLocal local copy of the sourcePortIdentity. More...