20 #ifndef COMMON_DFU_SPEC_H_
21 #define COMMON_DFU_SPEC_H_
54 DFU_STATE_DNLOAD_SYNC = 3,
56 DFU_STATE_DNLOAD_IDLE = 5,
57 DFU_STATE_MANIFEST_SYNC = 6,
58 DFU_STATE_MANIFEST = 7,
59 DFU_STATE_MANIFEST_WAIT_RESET = 8,
60 DFU_STATE_UPLOAD_IDLE = 9,
69 DFU_STATUS_ERR_TARGET = 0x01,
70 DFU_STATUS_ERR_FILE = 0x02,
71 DFU_STATUS_ERR_WRITE = 0x03,
72 DFU_STATUS_ERR_ERASE = 0x04,
73 DFU_STATUS_ERR_CHECK_ERASED = 0x05,
74 DFU_STATUS_ERR_PROG = 0x06,
75 DFU_STATUS_ERR_VERIFY = 0x07,
76 DFU_STATUS_ERR_ADDRESS = 0x08,
77 DFU_STATUS_ERR_NOT_DONE = 0x09,
78 DFU_STATUS_ERR_FIRMWARE = 0x0a,
79 DFU_STATUS_ERR_VENDOR = 0x0b,
80 DFU_STATUS_ERR_USBR = 0x0c,
81 DFU_STATUS_ERR_POR = 0x0d,
82 DFU_STATUS_ERR_UNKNOWN = 0x0e,
83 DFU_STATUS_ERR_STALLED_PKT = 0x0f
99 enum { GET_STATUS_RESPONSE_SIZE = 6 };
105 #endif // COMMON_DFU_SPEC_H_
DFUStatus
DFU status codes.
Definition: dfu_spec.h:67
Download supported.
Definition: dfu_spec.h:90
Will detach without timer.
Definition: dfu_spec.h:93
Upload supported.
Definition: dfu_spec.h:91
DFUState
DFU States.
Definition: dfu_spec.h:50
Manifestation tolerant.
Definition: dfu_spec.h:92