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

ParametersDescription
handleWINC driver handle obtained from WDRV_WINC_Open.
pFilenamePointer to filename to open.
typeType of file.
modeMode of opening.
lenFileLength of file to transfer.
pfStatusCbPointer to application callback to receive status.
statusCbCtxUser context value to pass to callback.

Returns

File handle or WDRV_WINC_FILE_INVALID_HANDLE.

Remarks

None.