Header file for the usbd_dfu_core.c file.
More...
Go to the source code of this file.
|
#define | USB_DFU_CONFIG_DESC_SIZE (18 + (9 * USBD_ITF_MAX_NUM)) |
|
#define | USB_DFU_DESC_SIZE 9 |
|
#define | DFU_DESC_TYPE 0x21 |
|
#define | Manifest_complete 0x00 |
|
#define | Manifest_In_Progress 0x01 |
|
#define | GET_COMMANDS 0x00 |
|
#define | SET_ADDRESS_POINTER 0x21 |
|
#define | ERASE 0x41 |
|
#define | CMD_ERASE 0 |
|
#define | CMD_WRITE 1 |
|
#define | DFU_DETACH_MASK (uint8_t)(0x10) |
|
#define | USBD_DFU_IF_DESC(n) |
|
|
typedef enum _DFU_STATE | DFU_STATE |
|
typedef enum _DFU_STATUS | DFU_STATUS |
|
typedef enum _DFU_REQUESTS | DFU_REQUESTS |
|
typedef void(* | pAppFunction )(void) |
|
|
enum | _DFU_STATE {
STATE_appIDLE = 0x00,
STATE_appDETACH,
STATE_dfuIDLE,
STATE_dfuDNLOAD_SYNC,
STATE_dfuDNBUSY,
STATE_dfuDNLOAD_IDLE,
STATE_dfuMANIFEST_SYNC,
STATE_dfuMANIFEST,
STATE_dfuMANIFEST_WAIT_RESET,
STATE_dfuUPLOAD_IDLE,
STATE_dfuERROR
} |
|
enum | _DFU_STATUS {
STATUS_OK = 0x00,
STATUS_errTARGET,
STATUS_errFILE,
STATUS_errWRITE,
STATUS_errERASE,
STATUS_errCHECK_ERASED,
STATUS_errPROG,
STATUS_errVERIFY,
STATUS_errADDRESS,
STATUS_errNOTDONE,
STATUS_errFIRMWARE,
STATUS_errVENDOR,
STATUS_errUSBR,
STATUS_errPOR,
STATUS_errUNKNOWN,
STATUS_errSTALLEDPKT
} |
|
enum | _DFU_REQUESTS {
DFU_DETACH = 0,
DFU_DNLOAD,
DFU_UPLOAD,
DFU_GETSTATUS,
DFU_CLRSTATUS,
DFU_GETSTATE,
DFU_ABORT
} |
|