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

Functions

void XAvb_DecodeTxAnnounceFrame (XAvb *InstancePtr)
 A New Announce Packet has been written to this device to transmit. More...
 
void XAvb_DecodeRxAnnounceFrame (XAvb *InstancePtr, u32 PtpFrameBaseAddr)
 A New Announce Packet has been received. More...
 
void XAvb_ReadAnnounceFrame (u32 BaseAddress, u32 PtpFrameBaseAddr, XAvb_BmcData *AnnounceFrame)
 Analyzes a new Announce packet. More...
 
void XAvb_ReadAnnounceReceiptTimeout (u32 BaseAddress, u32 PtpFrameBaseAddr, XAvb_BmcData *AnnounceFrame)
 Reads the logMessageinteval from an RX PTP Buffer and updates. More...
 
u32 XAvb_BestMasterClockAlgorithm (XAvb_BmcData *AnnounceFrame, XAvb_BmcData *CurrentBmc)
 accept the data pointer to the current BMCA records, accept. More...
 
void XAvb_UpdateBmcRecords (XAvb_BmcData *NewMaster, XAvb_BmcData *CurrentBmc)
 accept the data pointer to the current BMCA records, accept. More...
 
void XAvb_BecomeRtcMaster (XAvb *InstancePtr, u8 txAnnounceHasWon)
 make any adjustments needed when the node becomes the Grand. More...
 
void XAvb_BecomeRtcSlave (XAvb *InstancePtr)
 make any adjustments needed when the node becomes a PTP slave. More...
 
void XAvb_ChangePTPLockStatus (XAvb *InstancePtr, u8 locked)
 Operations needed when PTP locks or unlocks. More...
 
void XAvb_ChangePeerASCapability (XAvb *InstancePtr, u8 capable)
 Operations needed when the peer's AS capability changes. More...
 
void XAvb_SetGMDiscontinuityHandler (XAvb *InstancePtr, XAvb_Handler FuncPtr, void *CallBackRef)
 Sets the handler that will be called when a GM discontinuity. More...