DRV_ENC28J60_Initialize Function

C

SYS_MODULE_OBJ DRV_ENC28J60_Initialize(SYS_MODULE_INDEX index, SYS_MODULE_INIT * init); 

Returns

  • Valid handle to the driver instance - If successful

  • SYS_MODULE_OBJ_INVALID - If unsuccessful

Description

ENC28J60 Initialization This function initializes the ENC28J60 Driver with configuration data passed into it by either the system_init function or by the DRV_ENC28J60_StackInitialize function. Calling this function alone is not enough to initialize the driver, DRV_ENC28J60_SetMacCtrlInfo must be called with valid data before the driver is ready to be opened.

Preconditions

None.

Parameters

ParametersDescription
indexThis is the index of the driver instance to be initialized. The definition DRV_ENC28J60_NUM_DRV_INSTANCES controls how many instances are available.
initThis is a pointer to a DRV_ENC28J60_CONFIG structure.