1.1.16.10 WDRV_WINC_FileOpen
C
WDRV_WINC_FILE_HANDLE WDRV_WINC_FileOpen ( DRV_HANDLE handle, const char *pFilename, WDRV_WINC_FILE_TYPE type, WDRV_WINC_FILE_MODE_TYPE mode, size_t lenFile, WDRV_WINC_FILE_STATUS_CALLBACK pfStatusCb, uintptr_t statusCbCtx )
Description
Open a file transfer between user application and WINC device.
Precondition
WDRV_WINC_Initialize
must have been called.
WDRV_WINC_Open
must have been called to obtain a valid handle.
Parameters
Parameters | Description |
---|---|
handle | WINC driver handle obtained from WDRV_WINC_Open . |
pFilename | Pointer to filename to open. |
type | Type of file. |
mode | Mode of opening. |
lenFile | Length of file to transfer. |
pfStatusCb | Pointer to application callback to receive status. |
statusCbCtx | User context value to pass to callback. |
Returns
File handle or WDRV_WINC_FILE_INVALID_HANDLE
.
Remarks
None.