1.1.20.11 WDRV_WINC_NVMWrite

C

WDRV_WINC_STATUS WDRV_WINC_NVMWrite
(
    DRV_HANDLE handle,
    void *pBuffer,
    uint32_t offset,
    uint32_t length,
    WDRV_WINC_NVM_STATUS_CALLBACK pfUpdateStatusCB
)

Description

Writes a number of bytes to the NVM.

Precondition

WDRV_WINC_Initialize must have been called.

WDRV_WINC_Open must have been called to obtain a valid handle.

Parameters

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
pBufferPointer to buffer containing the data to write.
offsetOffset within the NVM to write the data to.
lengthNumber of bytes to be written.
pfUpdateStatusCBCallback to indicate update status.

Returns

  • WDRV_WINC_STATUS_OK - The request has been accepted.

  • WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.

  • WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.

  • WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.

Remarks

None.