1.2.2.2.5.2.3.1 MW_DFU_Config
C
uint16_t MW_DFU_Config(MW_DFU_Info_T *p_dfuInfo);
Description
The API is used to configure the device information for DFU process.
Parameters
Parameter | Description |
---|---|
[in] p_dfuInfo | Pointer to the structure of the image size for DFU. Refer to MW_DFU_Info_T for detail structure info. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Configure successfully. |
MBA_RES_INVALID_PARA | Invalid parameters. One of the following reasons: - The image size exceeds the maximum image size. - The image size is not 16-bytes aligned. - Invalid flash type. See MW_DFU_FLASH_TYPE for valid values. |
MBA_RES_FAIL | Failed to access SST26 external flash. |