Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Device Driver

...

Functions for PHY

...

NetPhy_Init()

...

11058171105817The first function within the Ethernet PHY API is the PHY driver initialization/Init() function which is called by the Ethernet network interface layer after the MAC device driver is initialized without error. Anchor11065531106553

Files

Anchor11065541106554Every physical layer driver’s net_phy.c Anchor11058241105824

Prototype

Anchor11234041123404 

 

...

...

rowspan2

...

Anchor11147591114759Note that since every PHY driver’s Init() function is accessed only by function pointer via the PHY driver’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’. Anchor10986141098614static’.

Arguments

...

10968441096844pif Anchor11321331132133

Pointer to the interface to initialize a PHY.

...

perr Anchor11321351132135

Pointer to variable that will receive the return error code from this function.

...

Returned Value

Anchor11148821114882None. Anchor11148831114883

Required Configuration

...

None. Anchor11148851114885

Notes/Warnings

...

The PHY initialization function is responsible for the following actions:

...