XilinxProcessorIPLib/drivers/axiethernet/examples/avb/xavb.c
void XAvb_Start(XAvb * InstancePtr)
{
  /** Assert bad arguments and conditions */
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

  /** Re-run the BMCA algorithm with the current PTP buffer Announce Packet */
  XAvb_DecodeTxAnnounceFrame(InstancePtr);

  /** Set to PTP running in the PTP data structure */
  InstancePtr->PtpIsRunning   = 1;

  /** Assume that the Peer is not AS capable until it replies to a pDelay_Req
    * frame */
  XAvb_ChangePeerASCapability(InstancePtr, 0);

#ifdef DEBUG_XAVB_LEVEL1
  xil_printf("\r\n** XAvb_Start(): Starting PTP **");
#endif
}
/*****************************************************************************/
/**
*
* This function will start the PTP drivers running.
*
* @param  InstancePtr is a pointer to the Xavb instance to be worked on.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function will start the PTP drivers running.
This function will start the PTP drivers running .
void XAvb_Start(XAvb * InstancePtr)
{
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
  XAvb_DecodeTxAnnounceFrame(InstancePtr);
  InstancePtr->PtpIsRunning   = 1;
  XAvb_ChangePeerASCapability(InstancePtr, 0);
#ifdef DEBUG_XAVB_LEVEL1
  xil_printf("\r\n** XAvb_Start(): Starting PTP **");
#endif
}
void XAvb_Start ( XAvb * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; XAvb_DecodeTxAnnounceFrame ( InstancePtr ) ; InstancePtr -> PtpIsRunning = 1 ; XAvb_ChangePeerASCapability ( InstancePtr , 0 ) ; #ifdef DEBUG_XAVB_LEVEL1 xil_printf ( " \r \n " ) ; #endif }
This function will start the PTP drivers running.
This function will start the PTP drivers running .
/** Assert bad arguments and conditions */ /** Re-run the BMCA algorithm with the current PTP buffer Announce Packet */ /** Set to PTP running in the PTP data structure */ /** Assume that the Peer is not AS capable until it replies to a pDelay_Req
    * frame */