1.1.20.13 WDRV_WINC_NVMCheck
C
WDRV_WINC_STATUS WDRV_WINC_NVMCheck ( DRV_HANDLE handle, uint32_t offset, uint32_t size, WDRV_WINC_NVM_CHECK_MODE_TYPE mode, WDRV_WINC_NVM_STATUS_CALLBACK pfUpdateStatusCB )
Description
Performs a CRC/hash check of the number of bytes from the NVM.
Precondition
WDRV_WINC_Initialize
must have been called.
WDRV_WINC_Open
must have been called to obtain a valid handle.
Parameters
Parameters | Description |
---|---|
handle | Client handle obtained by a call to WDRV_WINC_Open . |
offset | Offset within the NVM to read the data from. |
size | Number of bytes to be checked. |
mode | Algorithm to be used to check memory. |
pfUpdateStatusCB | Callback 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
When a check operation completes the callback is called with opStatusInfo
being the structure WDRV_WINC_CHK_STATUS_INFO
.