Device Firmware Update (DFU) Middleware Library 5.1
DFU State

General Description

The state of updating.


This is a set of values that the DFU state variable can hold.
When Cy_DFU_Continue() and Cy_DFU_Complete() return, the state parameter indicates whether the update has finished successfully or what is the unsuccessful state.

Macros

#define CY_DFU_STATE_NONE   (0U)
 Updating has not yet started, no Enter packet received.
 
#define CY_DFU_STATE_UPDATING   (1U)
 Updating is in process.
 
#define CY_DFU_STATE_FINISHED   (2U)
 Updating has finished successfully.
 
#define CY_DFU_STATE_FAILED   (3U)
 Updating has finished with an error.