USBD ROM Stack
2.0
ROM based USB device stack
|
Device Firmware Upgrade (DFU) class descriptors. More...
#include "mw_usbd.h"
Go to the source code of this file.
Data Structures | |
struct | USB_DFU_FUNC_DESCRIPTOR |
struct | DFU_STATUS_T |
Macros | |
#define | USB_DFU_IF_NUM 0x0 |
#define | USB_DFU_DESCRIPTOR_TYPE 0x21 |
#define | USB_DFU_DESCRIPTOR_SIZE 9 |
#define | USB_DFU_SUBCLASS 0x01 |
#define | USB_REQ_DFU_DETACH 0x00 |
#define | USB_REQ_DFU_DNLOAD 0x01 |
#define | USB_REQ_DFU_UPLOAD 0x02 |
#define | USB_REQ_DFU_GETSTATUS 0x03 |
#define | USB_REQ_DFU_CLRSTATUS 0x04 |
#define | USB_REQ_DFU_GETSTATE 0x05 |
#define | USB_REQ_DFU_ABORT 0x06 |
#define | DFU_STATUS_OK 0x00 |
#define | DFU_STATUS_errTARGET 0x01 |
#define | DFU_STATUS_errFILE 0x02 |
#define | DFU_STATUS_errWRITE 0x03 |
#define | DFU_STATUS_errERASE 0x04 |
#define | DFU_STATUS_errCHECK_ERASED 0x05 |
#define | DFU_STATUS_errPROG 0x06 |
#define | DFU_STATUS_errVERIFY 0x07 |
#define | DFU_STATUS_errADDRESS 0x08 |
#define | DFU_STATUS_errNOTDONE 0x09 |
#define | DFU_STATUS_errFIRMWARE 0x0a |
#define | DFU_STATUS_errVENDOR 0x0b |
#define | DFU_STATUS_errUSBR 0x0c |
#define | DFU_STATUS_errPOR 0x0d |
#define | DFU_STATUS_errUNKNOWN 0x0e |
#define | DFU_STATUS_errSTALLEDPKT 0x0f |
#define | DFU_STATUS_errNONSEQDL 0x10 |
#define | DFU_EP0_NONE 0 |
#define | DFU_EP0_UNHANDLED 1 |
#define | DFU_EP0_STALL 2 |
#define | DFU_EP0_ZLP 3 |
#define | DFU_EP0_DATA 4 |
#define | USB_DFU_CAN_DOWNLOAD (1 << 0) |
#define | USB_DFU_CAN_UPLOAD (1 << 1) |
#define | USB_DFU_MANIFEST_TOL (1 << 2) |
#define | USB_DFU_WILL_DETACH (1 << 3) |
#define | DFU_FUNC_DESC_SIZE sizeof(USB_DFU_FUNC_DESCRIPTOR) |
#define | DFU_GET_STATUS_SIZE 0x6 |
Device Firmware Upgrade (DFU) class descriptors.
Definition of DFU class descriptors and their bit defines.
#define USB_DFU_IF_NUM 0x0 |
If USB device is only DFU capable, DFU Interface number is always 0. if USB device is (DFU + Other Class (Audio/Mass Storage/HID), DFU Interface number should also be 0 in this implementation.