MW_DFU_Config

C

uint16_t MW_DFU_Config(MW_DFU_Info_T *p_dfuInfo);

Description

Configures the device information for the Device Firmware Update (DFU) process.

Parameters

ParameterDescription
[in] p_dfuInfoPointer to the structure containing the DFU image size information. Refer to MW_DFU_Info_T for the structure's detailed information.

Return values

Return valueDescription
MBA_RES_SUCCESSConfiguration successful.
MBA_RES_INVALID_PARAInvalid 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 Flash types for valid values.
MBA_RES_FAILExternal flash access failed.