STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
usbd_dfu.h File Reference

Header file for the usbd_dfu.c file. More...

#include "usbd_ioreq.h"

Go to the source code of this file.

Data Structures

struct  USBD_DFU_HandleTypeDef
 
struct  USBD_DFU_MediaTypeDef
 

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)
 
#define USBD_DFU_CLASS   &USBD_DFU
 

Typedefs

typedef void(* pFunction) (void)
 

Enumerations

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

Functions

uint8_t USBD_DFU_RegisterMedia (USBD_HandleTypeDef *pdev, USBD_DFU_MediaTypeDef *fops)
 USBD_DFU_GetUsrStringDesc Manages the transfer of memory interfaces string descriptors. More...
 

Variables

USBD_ClassTypeDef USBD_DFU
 

Detailed Description

Header file for the usbd_dfu.c file.

Author
MCD Application Team
Version
V2.4.2
Date
11-December-2015
Attention

© COPYRIGHT 2015 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file usbd_dfu.h.