DRV_ENC28J60_Open Function
C
DRV_HANDLE DRV_ENC28J60_Open(SYS_MODULE_INDEX index, DRV_IO_INTENT intent);
Returns
Returns a valid handle - If successful, INVALID_HANDLE - If unsuccessful
Description
ENC28J60 Open The client will call this function to open a handle to the driver. When the first instance is opened than the driver will send the RX enabled command to the ENC hardware.
Preconditions
The driver had to be successfully initialized with DRV_ENC28J60_Initialize.
Parameters
Parameters | Description |
---|---|
index | This is the index of the driver instance to be initialized. The definition DRV_ENC28J60_NUM_DRV_INSTANCES controls how many instances are available. |
intent | The intent to use when opening the driver. Only exclusive is supported |