XilinxProcessorIPLib/drivers/axiethernet/examples/avb/xavb_ptp_packets.c
void XAvb_WaitOnTxPtpQueue(XAvb * InstancePtr) {
  u32 TxPtpType = 0;

  do {

  /** Wait until any queued PTP frame has been transmitted.  This is a
   * software safety feature, not a hardware restriction */
  TxPtpType = (XAvb_ReadReg(InstancePtr->Config.BaseAddress,
                             XAVB_PTP_TX_CONTROL_OFFSET)
               & XAVB_PTP_TX_WAIT_ALL_FRAMES_MASK);

  } while(TxPtpType != 0);

}
/****************************************************************************/
/**
*
* The software drivers are kept simple by only requesting a single PTP frame to
* be transmitted at a time.  This function checks (and if necessary waits)
* until the previously request PTP frame has been transmitted.
*
* @param  InstancePtr is a pointer to the XAvb instance to be worked on
*
* @return None.
**
* @note   None.
*
*****************************************************************************/
The software drivers are kept simple by only requesting a single PTP frame to
be transmitted at a time.  This function checks (and if necessary waits)
until the previously request PTP frame has been transmitted.
The software drivers are kept simple by only requesting a single PTP frame to be transmitted at a time . This function checks ( and if necessary waits ) until the previously request PTP frame has been transmitted .
void XAvb_WaitOnTxPtpQueue(XAvb * InstancePtr) {
  u32 TxPtpType = 0;
  do {
  TxPtpType = (XAvb_ReadReg(InstancePtr->Config.BaseAddress,
                             XAVB_PTP_TX_CONTROL_OFFSET)
               & XAVB_PTP_TX_WAIT_ALL_FRAMES_MASK);
  } while(TxPtpType != 0);
}
void XAvb_WaitOnTxPtpQueue ( XAvb * InstancePtr ) { u32 TxPtpType = 0 ; do { TxPtpType = ( XAvb_ReadReg ( InstancePtr -> Config . BaseAddress , XAVB_PTP_TX_CONTROL_OFFSET ) & XAVB_PTP_TX_WAIT_ALL_FRAMES_MASK ) ; } while ( TxPtpType != 0 ) ; }
The software drivers are kept simple by only requesting a single PTP frame to
be transmitted at a time.
The software drivers are kept simple by only requesting a single PTP frame to be transmitted at a time .
/** Wait until any queued PTP frame has been transmitted.  This is a
   * software safety feature, not a hardware restriction */