1.1.4.4 WDRV_WINC_Open

Function

DRV_HANDLE WDRV_WINC_Open(const SYS_MODULE_INDEX index, const DRV_IO_INTENT intent)

Summary

Opens an instance of the WINC driver.

Description

Opens an instance of the WINC driver and returns a handle which must be used when calling other driver functions.

Precondition

WDRV_WINC_Initialize should have been called.

Parameters

index - Identifier for the driver instance to be opened.

intent - Zero or more of the values from the enumeration DRV_IO_INTENT ORed together to indicate the intended use of the driver

Returns

- Valid handle - if the open function succeeded

- DRV_HANDLE_INVALID - if an error occurs

Remarks

The index and intent parameters are not used in the current implementation and are maintained only for compatibility with the generic driver Open function signature.