Generic USB DFU defines and helpers.  
More...
Generic USB DFU defines and helpers. 
|  | 
| file | dfu.h | 
|  | Definition for USB DFU interfaces. 
 | 
|  | 
|  | 
| enum | usb_dfu_state_t { USB_DFU_STATE_APP_IDLE
, USB_DFU_STATE_APP_DETACH
, USB_DFU_STATE_DFU_IDLE
, USB_DFU_STATE_DFU_DL_SYNC
,
 USB_DFU_STATE_DFU_DL_BUSY
, USB_DFU_STATE_DFU_DL_IDLE
, USB_DFU_STATE_DFU_MANIFEST_SYNC
, USB_DFU_STATE_DFU_MANIFEST
,
 USB_DFU_STATE_DFU_MANIFEST_WAIT_RST
, USB_DFU_STATE_DFU_UP_IDLE
, USB_DFU_STATE_DFU_ERROR
 }
 | 
|  | USBUS DFU internal state.  More... 
 | 
|  | 
◆ DFU_ABORT
DFU Abort request. 
Definition at line 88 of file dfu.h.
 
 
◆ DFU_CLR_STATUS
      
        
          | #define DFU_CLR_STATUS   0x04 | 
      
 
DFU Clear Status request. 
Definition at line 86 of file dfu.h.
 
 
◆ DFU_DETACH
DFU Detach request. 
Definition at line 82 of file dfu.h.
 
 
◆ DFU_DOWNLOAD
      
        
          | #define DFU_DOWNLOAD   0x01 | 
      
 
DFU Download request. 
Definition at line 83 of file dfu.h.
 
 
◆ DFU_GET_STATE
      
        
          | #define DFU_GET_STATE   0x05 | 
      
 
DFU Get State request. 
Definition at line 87 of file dfu.h.
 
 
◆ DFU_GET_STATUS
      
        
          | #define DFU_GET_STATUS   0x03 | 
      
 
DFU Get Status request. 
Definition at line 85 of file dfu.h.
 
 
◆ DFU_UPLOAD
DFU Upload request. 
Definition at line 84 of file dfu.h.
 
 
◆ USB_DFU_CAN_DOWNLOAD
      
        
          | #define USB_DFU_CAN_DOWNLOAD   0x01 | 
      
 
DFU Download attribute. 
Definition at line 49 of file dfu.h.
 
 
◆ USB_DFU_CAN_UPLOAD
      
        
          | #define USB_DFU_CAN_UPLOAD   0x02 | 
      
 
DFU Upload attribute. 
Definition at line 50 of file dfu.h.
 
 
◆ USB_DFU_DETACH_TIMEOUT_MS
      
        
          | #define USB_DFU_DETACH_TIMEOUT_MS   255 | 
      
 
Definition at line 41 of file dfu.h.
 
 
◆ USB_DFU_INTERFACE
      
        
          | #define USB_DFU_INTERFACE   0xFE /** Application Specific Interface */ | 
      
 
Definition at line 59 of file dfu.h.
 
 
◆ USB_DFU_MANIFEST_TOLERANT
      
        
          | #define USB_DFU_MANIFEST_TOLERANT   0x04 | 
      
 
DFU Manifest tolerant attribute. 
Definition at line 51 of file dfu.h.
 
 
◆ USB_DFU_PROTOCOL_DFU_MODE
      
        
          | #define USB_DFU_PROTOCOL_DFU_MODE   0x02 | 
      
 
DFU mode. 
Definition at line 75 of file dfu.h.
 
 
◆ USB_DFU_PROTOCOL_RUNTIME_MODE
      
        
          | #define USB_DFU_PROTOCOL_RUNTIME_MODE   0x01 | 
      
 
Runtime mode. 
Definition at line 74 of file dfu.h.
 
 
◆ USB_DFU_SUBCLASS_DFU
      
        
          | #define USB_DFU_SUBCLASS_DFU   0x01 | 
      
 
DFU subclass. 
Definition at line 67 of file dfu.h.
 
 
◆ USB_DFU_VERSION_BCD
      
        
          | #define USB_DFU_VERSION_BCD   0x0110 | 
      
 
USB DFU version in BCD. 
Definition at line 34 of file dfu.h.
 
 
◆ USB_DFU_WILL_DETACH
      
        
          | #define USB_DFU_WILL_DETACH   0x08 | 
      
 
DFU Detach capability attribute. 
Definition at line 52 of file dfu.h.
 
 
◆ USB_IF_DESCRIPTOR_DFU
      
        
          | #define USB_IF_DESCRIPTOR_DFU   0x21 | 
      
 
USB DFU type descriptor. 
Definition at line 33 of file dfu.h.
 
 
◆ usb_dfu_state_t
USBUS DFU internal state. 
| Enumerator | 
|---|
| USB_DFU_STATE_APP_IDLE | DFU application idle.  | 
| USB_DFU_STATE_APP_DETACH | DFU application detach (reboot to DFU mode)  | 
| USB_DFU_STATE_DFU_IDLE | DFU runtime mode idle.  | 
| USB_DFU_STATE_DFU_DL_SYNC | DFU download synchronization.  | 
| USB_DFU_STATE_DFU_DL_BUSY | DFU download busy.  | 
| USB_DFU_STATE_DFU_DL_IDLE | DFU download idle.  | 
| USB_DFU_STATE_DFU_MANIFEST_SYNC | DFU manifest synchronization.  | 
| USB_DFU_STATE_DFU_MANIFEST | DFU manifest mode.  | 
| USB_DFU_STATE_DFU_MANIFEST_WAIT_RST | DFU manifest wait for CPU reset.  | 
| USB_DFU_STATE_DFU_UP_IDLE | DFU upload idle.  | 
| USB_DFU_STATE_DFU_ERROR | DFU internal error.  | 
Definition at line 94 of file dfu.h.