2.3.1 PHY_TaskHandler Function

C

void PHY_TaskHandler ( void )

Summary

PHY Task Handling routine

Description

This function

  • Checks and allocates the receive buffer.

  • Processes the PHY incoming frame queue.

  • Implements the PHY state machine

  • Invokes the PHY user callback functions

Precondition

PHY_Init should be called before calling this function

Parameters

None.

Returns

None.

Example

PHY_TaskHandler();

Remarks

This routine must be called from the RTOS Task function incase of any RTOS is used. For Baremetal implementation, This function should be called in a while loop to get the callback from PHY layer for received frame, transmitted frame status and ED completion.