MAC_DRVR_Initialize Function

C

SYS_MODULE_OBJ MAC_DRVR_Initialize(
    const SYS_MODULE_INDEX          index,
    const SYS_MODULE_INIT * const   init
    ); 

Returns

  • a valid handle to a driver object, if successful.

  • SYS_MODULE_OBJ_INVALID if initialization failed.

Description

This function supports the initialization of the Ethernet MAC. Used by tcpip_module_manager.

Remarks

This function initializes the Ethernet controller, the MAC and the associated PHY. It should be called to be able to schedule any Ethernet transmit or receive operation.

Preconditions

None

Parameters

ParametersDescription
indexindex of the ETH MAC driver to be initialized
initPointer to initialization data