30 #ifndef __USB_DFU_CORE_H_ 31 #define __USB_DFU_CORE_H_ 49 #define USB_DFU_CONFIG_DESC_SIZ (18 + (9 * USBD_ITF_MAX_NUM)) 50 #define USB_DFU_DESC_SIZ 9 52 #define DFU_DESCRIPTOR_TYPE 0x21 66 #define STATE_appIDLE 0 67 #define STATE_appDETACH 1 68 #define STATE_dfuIDLE 2 69 #define STATE_dfuDNLOAD_SYNC 3 70 #define STATE_dfuDNBUSY 4 71 #define STATE_dfuDNLOAD_IDLE 5 72 #define STATE_dfuMANIFEST_SYNC 6 73 #define STATE_dfuMANIFEST 7 74 #define STATE_dfuMANIFEST_WAIT_RESET 8 75 #define STATE_dfuUPLOAD_IDLE 9 76 #define STATE_dfuERROR 10 82 #define STATUS_OK 0x00 83 #define STATUS_ERRTARGET 0x01 84 #define STATUS_ERRFILE 0x02 85 #define STATUS_ERRWRITE 0x03 86 #define STATUS_ERRERASE 0x04 87 #define STATUS_ERRCHECK_ERASED 0x05 88 #define STATUS_ERRPROG 0x06 89 #define STATUS_ERRVERIFY 0x07 90 #define STATUS_ERRADDRESS 0x08 91 #define STATUS_ERRNOTDONE 0x09 92 #define STATUS_ERRFIRMWARE 0x0A 93 #define STATUS_ERRVENDOR 0x0B 94 #define STATUS_ERRUSBR 0x0C 95 #define STATUS_ERRPOR 0x0D 96 #define STATUS_ERRUNKNOWN 0x0E 97 #define STATUS_ERRSTALLEDPKT 0x0F 103 #define Manifest_complete 0x00 104 #define Manifest_In_Progress 0x01 111 #define CMD_GETCOMMANDS 0x00 112 #define CMD_SETADDRESSPOINTER 0x21 113 #define CMD_ERASE 0x41 119 #define DFU_DETACH_MASK (uint8_t)(1 << 4) 153 #define USBD_DFU_IF_DESC(n) 0x09, \ 154 USB_INTERFACE_DESCRIPTOR_TYPE, \ 161 USBD_IDX_INTERFACE_STR + (n) + 1 \ 184 #endif // __USB_DFU_CORE_H_
enum _DFU_REQUESTS DFU_REQUESTS
Header for usbd_dfu_mal.c file.
header file for the usbd_ioreq.c file
USBD_Class_cb_TypeDef DFU_cb