1.1.16.11 WDRV_WINC_FileWrite
C
WDRV_WINC_STATUS WDRV_WINC_FileWrite ( DRV_HANDLE handle, WDRV_WINC_FILE_HANDLE fHandle, const uint8_t *pData, size_t lenData )
Description
Write data to a file from user application to WINC device.
Precondition
WDRV_WINC_Initialize
must have been called.
WDRV_WINC_Open
must have been called to obtain a valid handle.
WDRV_WINC_FileOpen
must have been called to obtain a valid file handle.
Parameters
Parameters | Description |
---|---|
handle | WINC driver handle obtained from WDRV_WINC_Open . |
fHandle | File handle received from WDRV_WINC_FileOpen . |
pData | Pointer to data to write. |
lenData | Length of data to write. |
Returns
WDRV_WINC_STATUS_OK - A file write was sent.
WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.
WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.
WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.
WDRV_WINC_STATUS_BUSY - Transfer is busy
Remarks
None.