Macros | Typedefs | Enumerations | Variables
usbd_dfu_core.h File Reference

header file for the usbd_dfu_core.c file. More...

#include "usbd_ioreq.h"
#include "usbd_dfu_mal.h"
Include dependency graph for usbd_dfu_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CMD_ERASE   0x41
 
#define CMD_GETCOMMANDS   0x00
 
#define CMD_SETADDRESSPOINTER   0x21
 
#define DFU_DESCRIPTOR_TYPE   0x21
 
#define DFU_DETACH_MASK   (uint8_t)(1 << 4)
 
#define Manifest_complete   0x00
 
#define Manifest_In_Progress   0x01
 
#define STATE_appDETACH   1
 
#define STATE_appIDLE   0
 
#define STATE_dfuDNBUSY   4
 
#define STATE_dfuDNLOAD_IDLE   5
 
#define STATE_dfuDNLOAD_SYNC   3
 
#define STATE_dfuERROR   10
 
#define STATE_dfuIDLE   2
 
#define STATE_dfuMANIFEST   7
 
#define STATE_dfuMANIFEST_SYNC   6
 
#define STATE_dfuMANIFEST_WAIT_RESET   8
 
#define STATE_dfuUPLOAD_IDLE   9
 
#define STATUS_ERRADDRESS   0x08
 
#define STATUS_ERRCHECK_ERASED   0x05
 
#define STATUS_ERRERASE   0x04
 
#define STATUS_ERRFILE   0x02
 
#define STATUS_ERRFIRMWARE   0x0A
 
#define STATUS_ERRNOTDONE   0x09
 
#define STATUS_ERRPOR   0x0D
 
#define STATUS_ERRPROG   0x06
 
#define STATUS_ERRSTALLEDPKT   0x0F
 
#define STATUS_ERRTARGET   0x01
 
#define STATUS_ERRUNKNOWN   0x0E
 
#define STATUS_ERRUSBR   0x0C
 
#define STATUS_ERRVENDOR   0x0B
 
#define STATUS_ERRVERIFY   0x07
 
#define STATUS_ERRWRITE   0x03
 
#define STATUS_OK   0x00
 
#define USB_DFU_CONFIG_DESC_SIZ   (18 + (9 * USBD_ITF_MAX_NUM))
 
#define USB_DFU_DESC_SIZ   9
 
#define USBD_DFU_IF_DESC(n)
 

Typedefs

typedef enum _DFU_REQUESTS DFU_REQUESTS
 
typedef void(* pFunction) (void)
 

Enumerations

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

Variables

USBD_Class_cb_TypeDef DFU_cb
 

Detailed Description

header file for the usbd_dfu_core.c file.

Author
MCD Application Team
Version
V1.1.0
Date
19-March-2012
Attention

© COPYRIGHT 2012 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_core.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:21