STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Typedefs | Enumerations
USBD_DFU_Exported_Defines

Macros

#define USB_DFU_CONFIG_DESC_SIZ   (18 + (9 * USBD_DFU_MAX_ITF_NUM))
 
#define USB_DFU_DESC_SIZ   9
 
#define DFU_DESCRIPTOR_TYPE   0x21
 
#define APP_STATE_IDLE   0
 
#define APP_STATE_DETACH   1
 
#define DFU_STATE_IDLE   2
 
#define DFU_STATE_DNLOAD_SYNC   3
 
#define DFU_STATE_DNLOAD_BUSY   4
 
#define DFU_STATE_DNLOAD_IDLE   5
 
#define DFU_STATE_MANIFEST_SYNC   6
 
#define DFU_STATE_MANIFEST   7
 
#define DFU_STATE_MANIFEST_WAIT_RESET   8
 
#define DFU_STATE_UPLOAD_IDLE   9
 
#define DFU_STATE_ERROR   10
 
#define DFU_ERROR_NONE   0x00
 
#define DFU_ERROR_TARGET   0x01
 
#define DFU_ERROR_FILE   0x02
 
#define DFU_ERROR_WRITE   0x03
 
#define DFU_ERROR_ERASE   0x04
 
#define DFU_ERROR_CHECK_ERASED   0x05
 
#define DFU_ERROR_PROG   0x06
 
#define DFU_ERROR_VERIFY   0x07
 
#define DFU_ERROR_ADDRESS   0x08
 
#define DFU_ERROR_NOTDONE   0x09
 
#define DFU_ERROR_FIRMWARE   0x0A
 
#define DFU_ERROR_VENDOR   0x0B
 
#define DFU_ERROR_USB   0x0C
 
#define DFU_ERROR_POR   0x0D
 
#define DFU_ERROR_UNKNOWN   0x0E
 
#define DFU_ERROR_STALLEDPKT   0x0F
 
#define DFU_MANIFEST_COMPLETE   0x00
 
#define DFU_MANIFEST_IN_PROGRESS   0x01
 
#define DFU_CMD_GETCOMMANDS   0x00
 
#define DFU_CMD_SETADDRESSPOINTER   0x21
 
#define DFU_CMD_ERASE   0x41
 
#define DFU_MEDIA_ERASE   0x00
 
#define DFU_MEDIA_PROGRAM   0x01
 
#define DFU_DETACH_MASK   (uint8_t)(1 << 4)
 
#define DFU_STATUS_DEPTH   (6)
 
#define USBD_DFU_IF_DESC(n)
 
#define TRANSFER_SIZE_BYTES(size)
 
#define IS_PROTECTED_AREA(add)    (uint8_t)(((add >= 0x08000000) && (add < (APP_DEFAULT_ADD)))? 1:0)
 

Typedefs

typedef void(* pFunction) (void)
 

Enumerations

enum  DFU_RequestTypeDef {
  DFU_DETACH = 0, DFU_DNLOAD, DFU_UPLOAD, DFU_GETSTATUS,
  DFU_CLRSTATUS, DFU_GETSTATE, DFU_ABORT
}
 

Detailed Description

Macro Definition Documentation

#define APP_STATE_DETACH   1

Definition at line 63 of file usbd_dfu.h.

#define APP_STATE_IDLE   0

Definition at line 62 of file usbd_dfu.h.

#define DFU_CMD_ERASE   0x41

Definition at line 106 of file usbd_dfu.h.

#define DFU_CMD_GETCOMMANDS   0x00

Definition at line 104 of file usbd_dfu.h.

#define DFU_CMD_SETADDRESSPOINTER   0x21

Definition at line 105 of file usbd_dfu.h.

#define DFU_DESCRIPTOR_TYPE   0x21

Definition at line 56 of file usbd_dfu.h.

#define DFU_DETACH_MASK   (uint8_t)(1 << 4)

Definition at line 115 of file usbd_dfu.h.

#define DFU_ERROR_ADDRESS   0x08

Definition at line 85 of file usbd_dfu.h.

#define DFU_ERROR_CHECK_ERASED   0x05

Definition at line 82 of file usbd_dfu.h.

#define DFU_ERROR_ERASE   0x04

Definition at line 81 of file usbd_dfu.h.

#define DFU_ERROR_FILE   0x02

Definition at line 79 of file usbd_dfu.h.

#define DFU_ERROR_FIRMWARE   0x0A

Definition at line 87 of file usbd_dfu.h.

#define DFU_ERROR_NONE   0x00

Definition at line 77 of file usbd_dfu.h.

#define DFU_ERROR_NOTDONE   0x09

Definition at line 86 of file usbd_dfu.h.

#define DFU_ERROR_POR   0x0D

Definition at line 90 of file usbd_dfu.h.

#define DFU_ERROR_PROG   0x06

Definition at line 83 of file usbd_dfu.h.

#define DFU_ERROR_STALLEDPKT   0x0F

Definition at line 92 of file usbd_dfu.h.

#define DFU_ERROR_TARGET   0x01

Definition at line 78 of file usbd_dfu.h.

#define DFU_ERROR_UNKNOWN   0x0E

Definition at line 91 of file usbd_dfu.h.

#define DFU_ERROR_USB   0x0C

Definition at line 89 of file usbd_dfu.h.

#define DFU_ERROR_VENDOR   0x0B

Definition at line 88 of file usbd_dfu.h.

#define DFU_ERROR_VERIFY   0x07

Definition at line 84 of file usbd_dfu.h.

#define DFU_ERROR_WRITE   0x03

Definition at line 80 of file usbd_dfu.h.

#define DFU_MANIFEST_COMPLETE   0x00

Definition at line 97 of file usbd_dfu.h.

#define DFU_MANIFEST_IN_PROGRESS   0x01

Definition at line 98 of file usbd_dfu.h.

#define DFU_MEDIA_ERASE   0x00

Definition at line 108 of file usbd_dfu.h.

#define DFU_MEDIA_PROGRAM   0x01

Definition at line 109 of file usbd_dfu.h.

#define DFU_STATE_DNLOAD_BUSY   4

Definition at line 66 of file usbd_dfu.h.

#define DFU_STATE_DNLOAD_IDLE   5

Definition at line 67 of file usbd_dfu.h.

#define DFU_STATE_DNLOAD_SYNC   3

Definition at line 65 of file usbd_dfu.h.

#define DFU_STATE_ERROR   10

Definition at line 72 of file usbd_dfu.h.

#define DFU_STATE_IDLE   2

Definition at line 64 of file usbd_dfu.h.

#define DFU_STATE_MANIFEST   7

Definition at line 69 of file usbd_dfu.h.

#define DFU_STATE_MANIFEST_SYNC   6

Definition at line 68 of file usbd_dfu.h.

#define DFU_STATE_MANIFEST_WAIT_RESET   8

Definition at line 70 of file usbd_dfu.h.

#define DFU_STATE_UPLOAD_IDLE   9

Definition at line 71 of file usbd_dfu.h.

#define DFU_STATUS_DEPTH   (6)

Definition at line 116 of file usbd_dfu.h.

#define IS_PROTECTED_AREA (   add)    (uint8_t)(((add >= 0x08000000) && (add < (APP_DEFAULT_ADD)))? 1:0)

Definition at line 146 of file usbd_dfu.h.

#define TRANSFER_SIZE_BYTES (   size)
Value:
((uint8_t)(size)), /* XFERSIZEB0 */\
((uint8_t)(size >> 8)) /* XFERSIZEB1 */
u16_t size
Definition: memp_priv.h:124

Definition at line 143 of file usbd_dfu.h.

#define USB_DFU_CONFIG_DESC_SIZ   (18 + (9 * USBD_DFU_MAX_ITF_NUM))

Definition at line 53 of file usbd_dfu.h.

#define USB_DFU_DESC_SIZ   9

Definition at line 54 of file usbd_dfu.h.

#define USBD_DFU_IF_DESC (   n)
Value:
0x09, /* bLength: Interface Descriptor size */ \
USB_DESC_TYPE_INTERFACE, /* bDescriptorType */ \
0x00, /* bInterfaceNumber: Number of Interface */ \
(n), /* bAlternateSetting: Alternate setting */ \
0x00, /* bNumEndpoints*/ \
0xFE, /* bInterfaceClass: Application Specific Class Code */ \
0x01, /* bInterfaceSubClass : Device Firmware Upgrade Code */ \
0x02, /* nInterfaceProtocol: DFU mode protocol */ \
USBD_IDX_INTERFACE_STR + (n) + 1 /* iInterface: Index of string descriptor */ \
#define USBD_IDX_INTERFACE_STR
Definition: usbd_def.h:71

Definition at line 133 of file usbd_dfu.h.

Typedef Documentation

typedef void(* pFunction) (void)

Definition at line 129 of file usbd_dfu.h.

Enumeration Type Documentation

Enumerator
DFU_DETACH 
DFU_DNLOAD 
DFU_UPLOAD 
DFU_GETSTATUS 
DFU_CLRSTATUS 
DFU_GETSTATE 
DFU_ABORT 

Definition at line 118 of file usbd_dfu.h.