USB Device library for the STM32F103 with USB Device Firmware Upgrade (DFU) runtime support.
Dependents: STM32F103C8T6_WebUSBDFU STM32F103C8T6_USBDFU STM32F103C8T6_USBDFU dfu_usb_stm32f103
Fork of USBDevice_STM32F103 by
Diff: USBDFU/USBDFU.h
- Revision:
- 67:39396cc073f2
- Parent:
- 66:390c4a31db54
diff -r 390c4a31db54 -r 39396cc073f2 USBDFU/USBDFU.h --- a/USBDFU/USBDFU.h Mon Aug 29 00:47:17 2016 +0000 +++ b/USBDFU/USBDFU.h Sun Sep 04 03:13:09 2016 +0000 @@ -104,45 +104,6 @@ * @returns true if class handles this request */ virtual bool USBCallback_setConfiguration(uint8_t configuration); - - enum DFURequest { - DFU_DETACH, - DFU_DNLOAD, - DFU_UPLOAD, - DFU_GETSTATUS, - DFU_CLRSTATUS, - DFU_GETSTATE, - DFU_ABORT, - }; - - enum DFUClass { - DFU_CLASS_APP_SPECIFIC = 0xFE, - }; - - enum DFUSubClass { - DFU_SUBCLASS_DFU = 0x01, - }; - - enum DFUProtocol { - DFU_PROTO_RUNTIME = 0x01, - DFU_PROTO_DFU = 0x02 - }; - - enum DFUDescriptorType { - DFU_DESCRIPTOR = 0x21, - }; - - enum DFUAttributes { - DFU_ATTR_CAN_DOWNLOAD = 0x01, - DFU_ATTR_CAN_UPLOAD = 0x02, - DFU_ATTR_MANIFEST_TOLERANT = 0x04, - DFU_ATTR_WILL_DETACH = 0x08, - }; - - enum DFUVersion { - DFU_VERSION_1_00 = 0x0100, - DFUSE_VERSION_1_1A = 0x011A, - }; private: Callback<void()> detach;