OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
dfu_spec.h File Reference

Detailed Description

Constants from the Device Firmware Uploads (DFU) 1.1 specification.

Include dependency graph for dfu_spec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  DFU_DETACH = 0, DFU_DNLOAD = 1, DFU_UPLOAD = 2, DFU_GETSTATUS = 3,
  DFU_CLRSTATUS = 4, DFU_GETSTATE = 5, DFU_ABORT = 6
}
 DFU message types.
 
enum  DFUState {
  APP_STATE_IDLE = 0, APP_STATE_DETACH = 1, DFU_STATE_IDLE = 2, DFU_STATE_DNLOAD_SYNC = 3,
  DFU_STATE_DNBUSY = 4, DFU_STATE_DNLOAD_IDLE = 5, DFU_STATE_MANIFEST_SYNC = 6, DFU_STATE_MANIFEST = 7,
  DFU_STATE_MANIFEST_WAIT_RESET = 8, DFU_STATE_UPLOAD_IDLE = 9, DFU_STATE_ERROR = 10
}
 DFU States.
 
enum  DFUStatus {
  DFU_STATUS_OK = 0x00, DFU_STATUS_ERR_TARGET = 0x01, DFU_STATUS_ERR_FILE = 0x02, DFU_STATUS_ERR_WRITE = 0x03,
  DFU_STATUS_ERR_ERASE = 0x04, DFU_STATUS_ERR_CHECK_ERASED = 0x05, DFU_STATUS_ERR_PROG = 0x06, DFU_STATUS_ERR_VERIFY = 0x07,
  DFU_STATUS_ERR_ADDRESS = 0x08, DFU_STATUS_ERR_NOT_DONE = 0x09, DFU_STATUS_ERR_FIRMWARE = 0x0a, DFU_STATUS_ERR_VENDOR = 0x0b,
  DFU_STATUS_ERR_USBR = 0x0c, DFU_STATUS_ERR_POR = 0x0d, DFU_STATUS_ERR_UNKNOWN = 0x0e, DFU_STATUS_ERR_STALLED_PKT = 0x0f
}
 DFU status codes.
 
enum  { DFU_CAN_DOWNLOAD = 0x01, DFU_CAN_UPLOAD = 0x02, DFU_MANIFESTATION_TOLERANT = 0x04, DFU_WILL_DETACH = 0x08 }
 DFU device attributes. More...
 
enum  { GET_STATUS_RESPONSE_SIZE = 6 }
 The size of a GET STATUS response.
 

Enumeration Type Documentation

anonymous enum

DFU device attributes.

Enumerator
DFU_CAN_DOWNLOAD 

Download supported.

DFU_CAN_UPLOAD 

Upload supported.

DFU_MANIFESTATION_TOLERANT 

Manifestation tolerant.

DFU_WILL_DETACH 

Will detach without timer.