DRV_MIIM_Initialize Function

C

SYS_MODULE_OBJ DRV_MIIM_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 initializes the MIIM driver, making it ready for clients to open and use it.

Remarks

  • This function must be called before any other MIIM routine is called.

  • This function should only be called once during system initialization unless DRV_MIIM_Deinitialize is called to deinitialize the driver instance.

  • The returned object must be passed as argument to DRV_MIIM_Reinitialize, DRV_MIIM_Deinitialize, DRV_MIIM_Tasks and DRV_MIIM_Status routines.

Preconditions

None.