/* Registers pRxCb callback. Callback will be invoked after the next received frame. When EMAC_Poll() returns EMAC_RX_NO_DATA the application task call EMAC_Set_RxCb() to register pRxCb() callback and enters suspend state. The callback is in charge to resume the task once a new frame has been received. The next time EMAC_Poll() is called, it will be successfull.  */
void EMAC_Set_RxCb(EMAC_RxCallback pRxCb)
/* Registers pRxCb callback. Callback will be invoked after the next received frame. When EMAC_Poll() returns EMAC_RX_NO_DATA the application task call EMAC_Set_RxCb() to register pRxCb() callback and enters suspend state. The callback is in charge to resume the task once a new frame has been received. The next time EMAC_Poll() is called, it will be successfull.  */
void EMAC_Set_RxCb(EMAC_RxCallback pRxCb)
{
    rxTd.rxCb = pRxCb;
    AT91C_BASE_EMAC->EMAC_IER = AT91C_EMAC_RCOMP;
}