GD32F1x0: USB/GD32_USB_Device_Library/Class/IAP/inc/usbd_iap_core.h File Reference

GD32F1x0

usbd_iap_core.h File Reference

Custom HID device class core defines for usb iap. More...

#include "usbd_enum.h"

Go to the source code of this file.

Macros

#define USB_CUSTOMHID_DESC_SIZE   9
 
#define CUSTOMHID_REPORT_DESC_SIZE   35
 
#define CUSTOMHID_CONFIG_DESC_SIZE   41
 
#define CUSTOMHID_DESC_TYPE   0x21
 
#define CUSTOMHID_REPORT_DESCTYPE   0x22
 
#define GET_REPORT   0x01
 
#define GET_IDLE   0x02
 
#define GET_PROTOCOL   0x03
 
#define SET_REPORT   0x09
 
#define SET_IDLE   0x0A
 
#define SET_PROTOCOL   0x0B
 
#define IAP_OPTION_BYTE   0x01
 
#define IAP_ERASE   0x02
 
#define IAP_DNLOAD   0x03
 
#define IAP_LEAVE   0x04
 
#define IAP_GETBIN_ADDRESS   0x05
 

Typedefs

typedef void(* pAppFunction) (void)
 

Functions

uint8_t USBD_CUSTOMHID_SendReport (USB_DEVICE_HANDLE *pudev, uint8_t *report, uint16_t Len)
 Send custom HID Report. More...
 

Variables

USBD_Class_cb_TypeDef USBD_CUSTOMHID_cb
 

Detailed Description

Custom HID device class core defines for usb iap.

Author
MCU SD
Version
V1.0
Date
6-Sep-2014

Definition in file usbd_iap_core.h.

Generated by   doxygen 1.8.10