MW_DFU_Config
PIC32CX-BZ2
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
| Parameter | Description |
|---|---|
| [in] p_dfuInfo | Pointer to the structure containing the DFU image size information. Refer to MW_DFU_Info_T for the structure's detailed information. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Configuration successful. |
| 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. |
PIC32CX-BZ3 and PIC32CX-BZ6
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
| Parameter | Description |
|---|---|
| [in] p_dfuInfo | Pointer to the structure containing the DFU image size information. Refer to MW_DFU_Info_T for the structure's detailed information. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Configuration successful. |
| MBA_RES_INVALID_PARA | Invalid parameters. The size exceeds the maximum allowable size, or the size is not aligned to a 32-byte boundary or invalid flash type (refer to Flash types). |
