documentation
.HELP!
GD32F1x0 Documentation
GD32F1x0: USB/GD32_USB_Device_Driver/inc/usb_regs.h Source File
GD32F1x0
previous page
next page
GD32F1x0
Main Page
Modules
Data Structures
Files
File List
Globals
USB
GD32_USB_Device_Driver
inc
usb_regs.h
Go to the documentation of this file.
1
11
/* Define to prevent recursive inclusion -------------------------------------*/
12
#ifndef __GD32F1X0_USB_REGS_H
13
#define __GD32F1X0_USB_REGS_H
14
15
/* Includes ------------------------------------------------------------------*/
16
#include "usb_conf.h"
17
37
enum
USB_SPEED
38
{
39
USB_SPEED_LOW,
40
USB_SPEED_FULL
41
};
42
46
typedef
enum
_DBUF_EP_DIR
47
{
48
DBUF_EP_IN,
49
DBUF_EP_OUT,
50
DBUF_EP_ERR,
51
}
52
DBUF_EP_DIR
;
53
61
#define Reg_Base (0x40005C00L)
62
#define PBA_Addr (0x40006000L)
71
#define CTLR ((__IO unsigned *)(Reg_Base + 0x40))
72
#define IFR ((__IO unsigned *)(Reg_Base + 0x44))
73
#define SR ((__IO unsigned *)(Reg_Base + 0x48))
74
#define AR ((__IO unsigned *)(Reg_Base + 0x4C))
75
#define BAR ((__IO unsigned *)(Reg_Base + 0x50))
84
#define SUB_EP0REG ((__IO unsigned *)(Reg_Base + 0x100))
85
#define LPM_CNTR ((__IO unsigned *)(Reg_Base + 0x140))
86
#define LPM_ISTR ((__IO unsigned *)(Reg_Base + 0x144))
95
#define EP0CSR ((__IO unsigned *)(Reg_Base))
108
#define EP0_OUT ((uint8_t)0x00)
109
#define EP0_IN ((uint8_t)0x80)
110
#define EP1_OUT ((uint8_t)0x01)
111
#define EP1_IN ((uint8_t)0x81)
112
#define EP2_OUT ((uint8_t)0x02)
113
#define EP2_IN ((uint8_t)0x82)
114
#define EP3_OUT ((uint8_t)0x03)
115
#define EP3_IN ((uint8_t)0x83)
116
#define EP4_OUT ((uint8_t)0x04)
117
#define EP4_IN ((uint8_t)0x84)
118
#define EP5_OUT ((uint8_t)0x05)
119
#define EP5_IN ((uint8_t)0x85)
120
#define EP6_OUT ((uint8_t)0x06)
121
#define EP6_IN ((uint8_t)0x86)
122
#define EP7_OUT ((uint8_t)0x07)
123
#define EP7_IN ((uint8_t)0x87)
124
132
#define EP0 ((uint8_t)0)
133
#define EP1 ((uint8_t)1)
134
#define EP2 ((uint8_t)2)
135
#define EP3 ((uint8_t)3)
136
#define EP4 ((uint8_t)4)
137
#define EP5 ((uint8_t)5)
138
#define EP6 ((uint8_t)6)
139
#define EP7 ((uint8_t)7)
140
152
#define CTLR_STIE (0x8000)
153
#define CTLR_PMOUIE (0x4000)
154
#define CTLR_ERRIE (0x2000)
155
#define CTLR_WKUPIE (0x1000)
156
#define CTLR_SPSIE (0x0800)
157
#define CTLR_RSTIE (0x0400)
158
#define CTLR_SOFIE (0x0200)
159
#define CTLR_ESOFIE (0x0100)
160
#define CTLR_RSREQ (0x0010)
161
#define CTLR_SETSPS (0x0008)
162
#define CTLR_LOWM (0x0004)
163
#define CTLR_CLOSE (0x0002)
164
#define CTLR_SETRST (0x0001)
169
#define IFR_STIF (0x8000)
170
#define IFR_PMOUIF (0x4000)
171
#define IFR_ERRIF (0x2000)
172
#define IFR_WKUPIF (0x1000)
173
#define IFR_SPSIF (0x0800)
174
#define IFR_RSTIF (0x0400)
175
#define IFR_SOFIF (0x0200)
176
#define IFR_ESOFIF (0x0100)
177
#define IFR_DIR (0x0010)
178
#define IFR_EPNUM (0x000F)
180
#define CLR_STIF (~IFR_STIF)
181
#define CLR_PMOUIF (~IFR_PMOUIF)
182
#define CLR_ERRIF (~IFR_ERRIF)
183
#define CLR_WKUPIF (~IFR_WKUPIF)
184
#define CLR_SPSIF (~IFR_SPSIF)
185
#define CLR_RSTIF (~IFR_RSTIF)
186
#define CLR_SOFIF (~IFR_SOFIF)
187
#define CLR_ESOFIF (~IFR_ESOFIF)
192
#define SR_RXDP (0x8000)
193
#define SR_RXDM (0x4000)
194
#define SR_LOCK (0x2000)
195
#define SR_SOFLN (0x1800)
196
#define SR_FCNT (0x07FF)
201
#define AR_USBEN (0x80)
202
#define AR_USBADDR (0x7F)
207
#define SUB_ST (0x8000)
208
#define SUB_STA (0x3000)
209
#define SUBPID_ATTR (0x07ff)
211
#define ATTR_BREMOTEWAKE (0x0100)
212
#define ATTR_HIRD (0x00f0)
213
#define ATTR_BLINKSTATE (0x000f)
218
#define SUBEP_DISABLE (0x0000)
219
#define SUBEP_STALL (0x1000)
220
#define SUBEP_NYET (0x2000)
221
#define SUBEP_VALID (0x3000)
226
#define LPM_STIE (0x8000)
231
#define LPM_STIF (0x8000)
232
#define LPM_CLR_STIF (~LPM_STIF)
237
#define EPRX_ST (0x8000)
238
#define EPRX_DTG (0x4000)
239
#define EPRX_STA (0x3000)
240
#define EP_SETUP (0x0800)
241
#define EP_CTL (0x0600)
242
#define EP_KCTL (0x0100)
243
#define EPTX_ST (0x0080)
244
#define EPTX_DTG (0x0040)
245
#define EPTX_STA (0x0030)
246
#define EP_AR (0x000F)
251
#define EPCSR_MASK (EPRX_ST|EP_SETUP|EP_CTL|EP_KCTL|EPTX_ST|EP_AR)
252
256
#define EP_BULK (0x0000)
257
#define EP_CONTROL (0x0200)
258
#define EP_ISO (0x0400)
259
#define EP_INTERRUPT (0x0600)
260
#define EP_CTL_MASK (~EP_CTL & EPCSR_MASK)
261
265
#define EPKCTL_MASK (~EP_KCTL & EPCSR_MASK)
266
270
#define EPTX_DISABLED (0x0000)
271
#define EPTX_STALL (0x0010)
272
#define EPTX_NAK (0x0020)
273
#define EPTX_VALID (0x0030)
274
#define EPTX_DTGMASK (EPTX_STA | EPCSR_MASK)
275
279
#define EPRX_DISABLED (0x0000)
280
#define EPRX_STALL (0x1000)
281
#define EPRX_NAK (0x2000)
282
#define EPRX_VALID (0x3000)
283
#define EPRX_DTGMASK (EPRX_STA | EPCSR_MASK)
284
288
#define EPRXCNTR_BLKSIZ (0x8000)
289
#define EPRXCNTR_BLKNUM (0x7C00)
290
#define EPRXCNTR_CNT (0x03FF)
291
292
#define EPTXCNTR_CNT (0x03FF)
293
297
#define BLKSIZE_OFFSET (0x01)
298
#define BLKNUM_OFFSET (0x05)
299
#define RXCNT_OFFSET (0x0A)
300
301
#define TXCNT_OFFSET (0x0A)
302
303
#define BLKSIZE32_MASK (0x1f)
304
#define BLKSIZE2_MASK (0x01)
305
306
#define BLKSIZE32_OFFSETMASK (0x05)
307
#define BLKSIZE2_OFFSETMASK (0x01)
308
321
/* Set CTLR */
322
#define _SetCTLR(RegValue) (*CTLR = (uint16_t)RegValue)
323
324
/* Get CTLR */
325
#define _GetCTLR() ((uint16_t) *CTLR)
326
327
/* Set IFR */
328
#define _SetIFR(RegValue) (*IFR = (uint16_t)RegValue)
329
330
/* Get IFR */
331
#define _GetIFR() ((uint16_t) *IFR)
332
333
/* Set AR */
334
#define _SetAR(RegValue) (*AR = (uint16_t)RegValue)
335
336
/* Get AR */
337
#define _GetAR() ((uint16_t) *AR)
338
339
/* Set BAR */
340
#define _SetBAR(RegValue) (*BAR = (uint16_t)(RegValue & 0xFFF8))
341
342
/* Get BAR */
343
#define _GetBAR() ((uint16_t) *BAR)
344
345
/* Get SR */
346
#define _GetSR() ((uint16_t) *SR)
347
348
/* Set EPxCSR */
349
#define _SetEPxCSR(EpID,RegValue) (*(EP0CSR + EpID) = (uint16_t)RegValue)
350
351
/* Get EPxCSR*/
352
#define _GetEPxCSR(EpID) ((uint16_t)(*(EP0CSR + EpID)))
353
354
/* Set LPMCNTR */
355
#define _SetLPM_CNTR(RegValue) (*LPM_CNTR = (uint16_t)RegValue)
356
357
/* Get LPMCNTR */
358
#define _GetLPM_CNTR() ((uint16_t) *LPM_CNTR)
359
360
/* Set LPMISTR */
361
#define _SetLPM_ISTR(RegValue) (*LPM_ISTR = (uint16_t)RegValue)
362
363
/* Get LPMISTR */
364
#define _GetLPM_ISTR() ((uint16_t) *LPM_ISTR)
365
366
/* Set SUBEP0R */
367
#define _SetSUBEP0R(RegValue) (*SUB_EP0REG = (uint16_t)RegValue)
368
369
/* Get SUBEP0R */
370
#define _GetSUBEP0R() ((uint16_t)*SUB_EP0REG)
371
391
#define _SetEPType(EpID, Type) (_SetEPxCSR(EpID, ((_GetEPxCSR(EpID) & EP_CTL_MASK) | Type)))
392
393
#define _GetEPType(EpID) (_GetEPxCSR(EpID) & EP_CTL)
394
395
407
#define _SetEPTxStatus(EpID, State) {\
408
register uint16_t _RegVal; \
409
_RegVal = _GetEPxCSR(EpID) & EPTX_DTGMASK;\
410
_SetEPxCSR(EpID, (_RegVal ^ State)); \
411
}
412
413
#define _GetEPTxStatus(EpID) ((uint16_t)_GetEPxCSR(EpID) & EPTX_STA)
414
426
#define _SetEPRxStatus(EpID, State) {\
427
register uint16_t _RegVal; \
428
_RegVal = _GetEPxCSR(EpID) & EPRX_DTGMASK;\
429
_SetEPxCSR(EpID, (_RegVal ^ State)); \
430
}
431
432
#define _GetEPRxStatus(EpID) ((uint16_t)_GetEPxCSR(EpID) & EPRX_STA)
433
451
#define _SetEPRxTxStatus(EpID, StateRx, StateTx) {\
452
register uint16_t _RegVal; \
453
_RegVal = _GetEPxCSR(EpID) & (EPRX_DTGMASK | EPTX_STA) ;\
454
_SetEPxCSR(EpID, ((_RegVal ^ StateRx) ^ StateTx)); \
455
}
456
462
#define _SetEP_KIND(EpID) (_SetEPxCSR(EpID, ((_GetEPxCSR(EpID) | EP_KCTL) & EPCSR_MASK)))
463
464
#define _ClearEP_KIND(EpID) (_SetEPxCSR(EpID, (_GetEPxCSR(EpID) & EPKCTL_MASK)))
465
471
#define _Set_Status_Out(EpID) _SetEP_KIND(EpID)
472
473
#define _Clear_Status_Out(EpID) _ClearEP_KIND(EpID)
474
480
#define _SetEPDoubleBuff(EpID) _SetEP_KIND(EpID)
481
482
#define _ClearEPDoubleBuff(EpID) _ClearEP_KIND(EpID)
483
489
#define _ClearEPRX_ST(EpID) (_SetEPxCSR(EpID, _GetEPxCSR(EpID) & 0x7FFF & EPCSR_MASK))
490
491
#define _ClearEPTX_ST(EpID) (_SetEPxCSR(EpID, _GetEPxCSR(EpID) & 0xFF7F & EPCSR_MASK))
492
498
#define _ToggleDTG_RX(EpID) (_SetEPxCSR(EpID, EPRX_DTG | (_GetEPxCSR(EpID) & EPCSR_MASK)))
499
500
#define _ClearDTG_RX(EpID) if((_GetEPxCSR(EpID) & EPRX_DTG) != 0) _ToggleDTG_RX(EpID)
501
507
#define _ToggleDTG_TX(EpID) (_SetEPxCSR(EpID, EPTX_DTG | (_GetEPxCSR(EpID) & EPCSR_MASK)))
508
509
#define _ClearDTG_TX(EpID) if((_GetEPxCSR(EpID) & EPTX_DTG) != 0) _ToggleDTG_TX(EpID)
510
516
#define _ToggleSWBUF_TX(EpID) _ToggleDTG_RX(EpID)
517
518
#define _ToggleSWBUF_RX(EpID) _ToggleDTG_TX(EpID)
519
526
#define _SetEPAddress(EpID,Addr) _SetEPxCSR(EpID, (_GetEPxCSR(EpID) & EPCSR_MASK) | Addr)
527
528
#define _GetEPAddress(EpID) ((uint8_t)(_GetEPxCSR(EpID) & EP_AR))
529
535
#define _GetEPTXARn(EpID) ((uint32_t *)((_GetBAR() + EpID * 8) * 2 + PBA_Addr))
536
542
#define _GetEPTXCNTx(EpID) ((uint32_t *)((_GetBAR() + EpID * 8 + 2) * 2 + PBA_Addr))
543
549
#define _GetEPRXARn(EpID) ((uint32_t *)((_GetBAR() + EpID * 8 + 4) * 2 + PBA_Addr))
550
556
#define _GetEPRXCNTx(EpID) ((uint32_t *)((_GetBAR() + EpID * 8 + 6) * 2 + PBA_Addr))
557
564
#define _SetEPTxAddr(EpID, Addr) (*_GetEPTXARn(EpID) = (Addr & ~((uint16_t)1)))
565
#define _SetEPRxAddr(EpID, Addr) (*_GetEPRXARn(EpID) = (Addr & ~((uint16_t)1)))
566
572
#define _GetEPTxAddr(EpID) ((uint16_t)*_GetEPTXARn(EpID))
573
#define _GetEPRxAddr(EpID) ((uint16_t)*_GetEPRXARn(EpID))
574
581
#define _BlocksOf32(pdwReg, Count) {\
582
register uint16_t BlockNum = Count >> BLKSIZE32_OFFSETMASK;\
583
if((Count & BLKSIZE32_MASK) == 0)\
584
BlockNum--;\
585
*pdwReg = (uint32_t)((BlockNum << RXCNT_OFFSET) | EPRXCNTR_BLKSIZ);\
586
}
587
594
#define _BlocksOf2(pdwReg, Count) {\
595
register uint16_t BlockNum = Count >> BLKSIZE2_OFFSETMASK;\
596
if((Count & BLKSIZE2_MASK) != 0)\
597
BlockNum++;\
598
*pdwReg = (uint32_t)(BlockNum << RXCNT_OFFSET);\
599
}
600
607
#define _SetEPRxDblBuf0Count(EpID, Count) {\
608
uint32_t *pdwReg = _GetEPTXCNTx(EpID); \
609
if(Count > 62) { _BlocksOf32(pdwReg, Count); } \
610
else { _BlocksOf32(pdwReg, Count); } \
611
}
612
619
#define _SetEPTxCount(EpID, Count) (*_GetEPTXCNTx(EpID) = Count)
620
#define _SetEPRxCount(EpID, Count) {\
621
uint32_t *pdwReg = _GetEPRXCNTx(EpID); \
622
if(Count > 62) { _BlocksOf32(pdwReg, Count); } \
623
else { _BlocksOf2(pdwReg, Count); } \
624
}
625
631
#define _GetEPTxCount(EpID)((uint16_t) (*_GetEPTXCNTx(EpID)) & EPTXCNTR_CNT)
632
#define _GetEPRxCount(EpID)((uint16_t) (*_GetEPRXCNTx(EpID)) & EPRXCNTR_CNT)
633
641
#define _SetEPDblBuf0Addr(EpID, Buf0Addr) {_SetEPTxAddr(EpID, Buf0Addr);}
642
#define _SetEPDblBuf1Addr(EpID, Buf1Addr) {_SetEPRxAddr(EpID, Buf1Addr);}
643
651
#define _SetEPDblBufAddr(EpID, Buf0Addr, Buf1Addr) { \
652
_SetEPDblBuf0Addr(EpID, Buf0Addr);\
653
_SetEPDblBuf1Addr(EpID, Buf1Addr);\
654
}
655
661
#define _GetEPDblBuf0Addr(EpID) (_GetEPTxAddr(EpID))
662
#define _GetEPDblBuf1Addr(EpID) (_GetEPRxAddr(EpID))
663
674
#define _SetEPDblBuf0Count(EpID, Dir, Count) { \
675
if(Dir == DBUF_EP_OUT)\
676
{_SetEPRxDblBuf0Count(EpID, Count);} \
677
else if(Dir == DBUF_EP_IN)\
678
{*_GetEPTXCNTx(EpID) = (uint32_t)Count;} \
679
}
680
681
#define _SetEPDblBuf1Count(EpID, Dir, Count) { \
682
if(Dir == DBUF_EP_OUT)\
683
{_SetEPRxCount(EpID, Count);}\
684
else if(Dir == DBUF_EP_IN)\
685
{*_GetEPRXCNTx(EpID) = (uint32_t)Count;} \
686
}
687
688
#define _SetEPDblBuffCount(EpID, Dir, Count) {\
689
_SetEPDblBuf0Count(EpID, Dir, Count); \
690
_SetEPDblBuf1Count(EpID, Dir, Count); \
691
}
692
698
#define _GetEPDblBuf0Count(EpID) (_GetEPTxCount(EpID))
699
#define _GetEPDblBuf1Count(EpID) (_GetEPRxCount(EpID))
700
710
#define _SetDouBleBuffEPStall(EpID, Dir) {\
711
if (Dir == DBUF_EP_OUT) \
712
{ \
713
_SetEPxCSR(EpID, _GetEPxCSR(EpID) & ~EPRX_STALL); \
714
} \
715
else if (Dir == DBUF_EP_IN) \
716
{ \
717
_SetEPxCSR(EpID, _GetEPxCSR(EpID) & ~EPTX_STALL); \
718
} \
719
}
720
729
#endif
/* __GD32F1X0_USB_REGS_H */
730
743
/************************ (C) COPYRIGHT 2014 GIGADEVICE *****END OF FILE****/
_DBUF_EP_DIR
_DBUF_EP_DIR
USB double buffer endpoint direction.
Definition:
usb_regs.h:46
USB_SPEED
USB_SPEED
USB device speed.
Definition:
usb_regs.h:37
DBUF_EP_DIR
enum _DBUF_EP_DIR DBUF_EP_DIR
USB double buffer endpoint direction.
Generated by
1.8.10
previous page
start
next page
Menu
Homepage
Table of contents
Modules
GD32F1x0_Firmware
USB
USB_Device_Driver
USB_Buffer_Exported_Functions
BufferCopyToUser
FreeUserBuffer
UserCopyToBuffer
USB_Configure_Exported_Defines
USB_Core_Exported_defines
IER_MASK
USB_CTRL_IDLE
USB_EP0_MAX_SIZE
USB_EPTYPE_CONTROL
USB_SNG_BUFTYPE
USB_STATUS_UNCONNECTED
USB_Core_Exported_types
USB_ep
buf0addr
buf1addr
bufaddress
ctrl_count
is_dblbuf
is_stall
maxpacket
xfer_buf
xfer_count
xfer_len
usb_device_req
bmRequestType
bRequest
wIndex
wLength
wValue
_Device_Desc_cb
GetConfigurationStrDescriptor
GetDeviceDescriptor
GetInterfaceStrDescriptor
GetLangIDStrDescriptor
GetManufacturerStrDescriptor
GetProductStrDescriptor
GetSerialStrDescriptor
_Device_Class_cb
ClassReqHandle
ClearFeature
DataIn
DataOut
DeInit
EP0_RxReady
EP0_TxSent
GetClassDescriptor
GetConfigDescriptor
GetInterface
Init
SetInterface
SOF
_USBD_USER_cb
DeviceConfigured
DeviceInit
DeviceReset
DeviceResumed
DeviceSuspended
_UCD
class_cb
desc_cb
device_cur_config
device_cur_state
device_cur_status
device_old_status
DevRemoteWakeup
in_ep
out_ep
setup_packet
speed
user_cb
USB_Device_handle
dev
UCD_DEV
USB_DEVICE_REQ
USB_EP
USBD_Class_cb_TypeDef
USBD_Desc_cb_TypeDef
USBD_User_cb_TypeDef
USB_Status
USB_Core_Exported_Functions
DR_Init
DR_StopDevice
USB_CtlContinueRx
USB_CtlContinueTx
USB_CtlReceiveStatus
USB_CtlRx
USB_CtlTransmitStatus
USB_CtlTx
USB_EP_BufConfig
USB_EP_ClrStall
USB_EP_DeInit
USB_EP_GetStatus
USB_EP_Init
USB_EP_Rx
USB_EP_SetAddress
USB_EP_Stall
USB_EP_Tx
USB_GetRxCount
USB_Hwp_Exported_Functions
USB_HWP_ClockConfig
USB_HWP_Init
USB_HWP_USBINTConfig
USB_Interrupt_Exported_Functions
USB_Ifr
USB_Exported_Types
DBUF_EP_DIR
_DBUF_EP_DIR
USB_SPEED
USB_Register_Base_Address
PBA_Addr
Reg_Base
USB_Common_Register
AR
BAR
CTLR
IFR
SR
USB_LPM_Register
LPM_CNTR
LPM_ISTR
SUB_EP0REG
USB_Endpoint_Control_and_Status_Register
EP0CSR
Endpoints_Address
EP0_OUT
Endpoints_Identifier
USB_Registers_Bits_Definition
AR_USBADDR
AR_USBEN
ATTR_BLINKSTATE
ATTR_BREMOTEWAKE
ATTR_HIRD
BLKSIZE_OFFSET
CLR_ERRIF
CLR_ESOFIF
CLR_PMOUIF
CLR_RSTIF
CLR_SOFIF
CLR_SPSIF
CLR_STIF
CLR_WKUPIF
CTLR_CLOSE
CTLR_ERRIE
CTLR_ESOFIE
CTLR_LOWM
CTLR_PMOUIE
CTLR_RSREQ
CTLR_RSTIE
CTLR_SETRST
CTLR_SETSPS
CTLR_SOFIE
CTLR_SPSIE
CTLR_STIE
CTLR_WKUPIE
EP_AR
EP_BULK
EP_CONTROL
EP_CTL
EP_INTERRUPT
EP_ISO
EP_KCTL
EP_SETUP
EPCSR_MASK
EPKCTL_MASK
EPRX_DISABLED
EPRX_DTG
EPRX_NAK
EPRX_ST
EPRX_STA
EPRX_STALL
EPRX_VALID
EPRXCNTR_BLKSIZ
EPTX_DISABLED
EPTX_DTG
EPTX_NAK
EPTX_ST
EPTX_STA
EPTX_STALL
EPTX_VALID
IFR_DIR
IFR_EPNUM
IFR_ERRIF
IFR_ESOFIF
IFR_PMOUIF
IFR_RSTIF
IFR_SOFIF
IFR_SPSIF
IFR_STIF
IFR_WKUPIF
LPM_CLR_STIF
LPM_STIE
LPM_STIF
SR_FCNT
SR_LOCK
SR_RXDM
SR_RXDP
SR_SOFLN
SUB_ST
SUB_STA
SUBEP_DISABLE
SUBEP_NYET
SUBEP_STALL
SUBEP_VALID
SUBPID_ATTR
USB_Exported_Macros
USB_Register_Macros
USB_Operation_Macros
_BlocksOf2
_BlocksOf32
_ClearEPRX_ST
_GetEPDblBuf0Addr
_GetEPDblBuf0Count
_GetEPRXARn
_GetEPRXCNTx
_GetEPTxAddr
_GetEPTXARn
_GetEPTXCNTx
_GetEPTxCount
_Set_Status_Out
_SetDouBleBuffEPStall
_SetEP_KIND
_SetEPAddress
_SetEPDblBuf0Addr
_SetEPDblBuf0Count
_SetEPDblBufAddr
_SetEPDoubleBuff
_SetEPRxDblBuf0Count
_SetEPRxStatus
_SetEPRxTxStatus
_SetEPTxAddr
_SetEPTxCount
_SetEPTxStatus
_SetEPType
_ToggleDTG_RX
_ToggleDTG_TX
_ToggleSWBUF_TX
USB_Buffer_Private_functions
BufferCopyToUser
FreeUserBuffer
UserCopyToBuffer
USB_Core_Private_Variables
USB_Core_Private_functions
DR_Init
DR_StopDevice
USB_CtlContinueRx
USB_CtlContinueTx
USB_CtlReceiveStatus
USB_CtlRx
USB_CtlTransmitStatus
USB_CtlTx
USB_EP_BufConfig
USB_EP_ClrStall
USB_EP_DeInit
USB_EP_GetStatus
USB_EP_Init
USB_EP_Rx
USB_EP_SetAddress
USB_EP_Stall
USB_EP_Tx
USB_GetRxCount
USB_Hwp_Private_Functions
USB_HWP_ClockConfig
USB_HWP_Init
USB_HWP_USBINTConfig
USB_Interrupt_Private_Variables
USB_Interrupt_Private_functions
USB_Ifr
USB_Device_Class_Library
USB_CDC_Class
USB_CDC_Class_Exported_Defines
USB_CDC_Class_Exported_Types
_CDC_IF_FOP
pIf_Ctrl
pIf_DataRx
pIf_DataTx
pIf_DeInit
pIf_Init
LINE_CODING
bCharFormat
bDataBits
bParityType
dwDTERate
USB_CDC_Exported_Variables
USB_CDC_Exported_Functions
USBD_CDC_ReceiveData
USBD_CDC_SendData
USB_CDC_Class_Private_Variables
USB_CDC_Class_Private_Functions
USBD_CDC_ReceiveData
USBD_CDC_SendData
USB_DFU_Class
USB_DFU_Core_Exported_Defines
USB_DFU_Core_Exported_Types
USB_DFU_Core_Exported_Macros
USB_DFU_Core_Exported_Variables
USB_DFU_MAL_Exported_Types
_DFU_MAL_PROPERTY
EraseTimeout
pMAL_CheckAdd
pMAL_DeInit
pMAL_Erase
pMAL_Init
pMAL_Read
pMAL_Write
pStrDesc
WriteTimeout
USB_DFU_MAL_Defines
USB_DFU_MAL_Exported_Macros
_1st_BYTE
_1st_BYTE
_2nd_BYTE
_2nd_BYTE
_3rd_BYTE
_3rd_BYTE
USB_DFU_MAL_Exported_Functions
DFU_MAL_DeInit
DFU_MAL_Erase
DFU_MAL_GetStatus
DFU_MAL_Init
DFU_MAL_Read
DFU_MAL_Write
IAP_MAL_DeInit
IAP_MAL_Erase
IAP_MAL_GetStatus
IAP_MAL_Init
IAP_MAL_Read
IAP_MAL_Write
USB_DFU_MAL_Exported_Variables
USB_DFU_FlashIf_Exported_Defines
USB_DFU_FlashIf_Exported_Variables
USB_DFU_Core_Private_Variables
USB_DFU_Core_Private_Function
USB_DFU_MAL_Private_Variables
USB_DFU_MAL_Private_Functions
DFU_MAL_DeInit
DFU_MAL_Erase
DFU_MAL_GetStatus
DFU_MAL_Init
DFU_MAL_Read
DFU_MAL_Write
IAP_MAL_DeInit
IAP_MAL_Erase
IAP_MAL_GetStatus
IAP_MAL_Init
IAP_MAL_Read
IAP_MAL_Write
USB_DFU_FlashIf_Private_Functions
USB_DFU_FlashIf_Private_Variables
USB_DFU_FlashIf_Private_Functions
USB_HID_Class
USB_CustomHID_Class_Exported_Defines
USB_CustomHID_Exported_Variables
USB_CustomHID_Exported_Functions
USB_HID_Class_Exported_Types
USB_HID_Class_Exported_Variables
USB_HID_Class_Exported_Functions
USBD_HID_SendReport
USB_CustomHID_Private_Variables
USB_CustomHID_Handle_Function
USBD_CUSTOMHID_SendReport
USB_HID_Class_Private_Varibales
USB_HID_Class_Private_Functions
USBD_HID_SendReport
USB_IAP
USB_IAP_MAL_Exported_Types
_IAP_MAL_PROPERTY
EraseTimeout
pMAL_CheckAdd
pMAL_DeInit
pMAL_Erase
pMAL_Init
pMAL_Read
pMAL_Write
pStrDesc
WriteTimeout
USB_DFU_MAL_Defines
USB_DFU_MAL_Exported_Macros
_1st_BYTE
_1st_BYTE
_2nd_BYTE
_2nd_BYTE
_3rd_BYTE
_3rd_BYTE
USB_DFU_MAL_Exported_Functions
DFU_MAL_DeInit
DFU_MAL_Erase
DFU_MAL_GetStatus
DFU_MAL_Init
DFU_MAL_Read
DFU_MAL_Write
IAP_MAL_DeInit
IAP_MAL_Erase
IAP_MAL_GetStatus
IAP_MAL_Init
IAP_MAL_Read
IAP_MAL_Write
USB_DFU_MAL_Exported_Variables
USB_IAP_MAL_Private_Variables
USB_DFU_MAL_Private_Functions
DFU_MAL_DeInit
DFU_MAL_Erase
DFU_MAL_GetStatus
DFU_MAL_Init
DFU_MAL_Read
DFU_MAL_Write
IAP_MAL_DeInit
IAP_MAL_Erase
IAP_MAL_GetStatus
IAP_MAL_Init
IAP_MAL_Read
IAP_MAL_Write
USB_PRINTING_Class
USB_PRINTING_Class_Exported_Types
USB_PRINTING_Class_Exported_Variables
USB_PRINTER_Class
USB_PRINTER_Class_Private_Varibales
USB_HID_Class_Exported_Variables
USB_HID_Class_Private_Functions
USBD_HID_SendReport
USB_Device_Core_Library
USBD_Configure_Exported_Defines
APP_RX_DATA_SIZE
APP_RX_DATA_SIZE
CDC_CMD_EP
CDC_CMD_EP
CDC_CMD_PACKET_SIZE
CDC_CMD_PACKET_SZE
CDC_DATA_MAX_PACKET_SIZE
CDC_DATA_MAX_PACKET_SIZE
CDC_IN_EP
CDC_IN_EP
CDC_IN_FRAME_INTERVAL
CDC_IN_FRAME_INTERVAL
CDC_OUT_EP
CDC_OUT_EP
MAX_USED_MEDIA
XFERSIZE
USBD_Core_Exported_Types
USBD_Status
USBD_Core_Exported_Functions
USBD_ClrCfg
USBD_Connect
USBD_DataInStage
USBD_DataOutStage
USBD_DeInit
USBD_Disconnect
USBD_Init
USBD_SetCfg
USBD_SetupStage
USBD_Protocol_Exported_Defines
USBD_Descriptor_Exported_Constants
USBD_Descriptor_Exported_Variables
USBD_Descriptor_Exported_Functions
USBD_Enumeration_Exported_Defines
USBD_Enumeration_Exported_Functions
IntToUnicode
USBD_DevClsReq
USBD_EnumError
USBD_GetUnicodeString
USBD_ParseSetupRequest
USBD_StdReq
USBD_VdrDefReq
USBD_Interrupt_Exported_Types
_USB_INTHandler
Error
ESOF
HP_ST
LP_ST
PMOU
Reset
SOF
Suspend
WakeUp
USBD_Power_Exported_Types
USBD_Power_Exported_Variables
USBD_Power_Exported_Functions
USBD_Resume
USBD_Suspend
USBD_User_Exported_Functions
USBD_Core_Private_Functions
USBD_ClrCfg
USBD_Connect
USBD_DataInStage
USBD_DataOutStage
USBD_DeInit
USBD_Disconnect
USBD_Init
USBD_SetCfg
USBD_SetupStage
USBD_Enumeration_Private_Variables
USBD_Enumeration_Private_Functions
IntToUnicode
USBD_DevClsReq
USBD_EnumError
USBD_GetUnicodeString
USBD_ParseSetupRequest
USBD_StdReq
USBD_VdrDefReq
USBD_Interrupt_Handle_Functions
USBD_Interrupt_Private_Variables
USBD_Power_Private_Variables
USBD_Power_Private_Functions
USBD_Resume
USBD_Suspend
USBD_Exported_Macros
Data Structures
Data Structures
_CDC_IF_FOP
pIf_Ctrl
pIf_DataRx
pIf_DataTx
pIf_DeInit
pIf_Init
_Device_Class_cb
ClassReqHandle
ClearFeature
DataIn
DataOut
DeInit
EP0_RxReady
EP0_TxSent
GetClassDescriptor
GetConfigDescriptor
GetInterface
Init
SetInterface
SOF
_Device_Desc_cb
GetConfigurationStrDescriptor
GetDeviceDescriptor
GetInterfaceStrDescriptor
GetLangIDStrDescriptor
GetManufacturerStrDescriptor
GetProductStrDescriptor
GetSerialStrDescriptor
_DFU_MAL_PROPERTY
EraseTimeout
pMAL_CheckAdd
pMAL_DeInit
pMAL_Erase
pMAL_Init
pMAL_Read
pMAL_Write
pStrDesc
WriteTimeout
_IAP_MAL_PROPERTY
EraseTimeout
pMAL_CheckAdd
pMAL_DeInit
pMAL_Erase
pMAL_Init
pMAL_Read
pMAL_Write
pStrDesc
WriteTimeout
_MSC_BBB_CBW
bCBWCBLength
bCBWLUN
bmCBWFlags
CBWCB
dCBWDataTransferLength
dCBWSignature
dCBWTag
_MSC_BBB_CSW
bCSWStatus
dCSWDataResidue
dCSWSignature
dCSWTag
_SENSE_ITEM
ASC
ASCQ
Information
SenseKey
_UCD
class_cb
desc_cb
device_cur_config
device_cur_state
device_cur_status
device_old_status
DevRemoteWakeup
in_ep
out_ep
setup_packet
speed
user_cb
_USB_INTHandler
Error
ESOF
HP_ST
LP_ST
PMOU
Reset
SOF
Suspend
WakeUp
_USBD_STORAGE
GetCapacity
GetMaxLun
Init
IsReady
IsWriteProtected
pInquiryData
Read
Write
_USBD_USER_cb
DeviceConfigured
DeviceInit
DeviceReset
DeviceResumed
DeviceSuspended
LINE_CODING
bCharFormat
bDataBits
bParityType
dwDTERate
USB_Device_handle
dev
usb_device_req
bmRequestType
bRequest
wIndex
wLength
wValue
USB_ep
buf0addr
buf1addr
bufaddress
ctrl_count
is_dblbuf
is_stall
maxpacket
xfer_buf
xfer_count
xfer_len
Data Structure Index
Files
File List
USB
GD32_USB_Device_Driver
inc
usb_buf.h
BufferCopyToUser
FreeUserBuffer
UserCopyToBuffer
usb_conf_template.h
BTABLE_ADDRESS
ENDP0_RX_ADDRESS
ENDP0_TX_ADDRESS
EP_NUM
MSC_RX_ADDRESS
MSC_TX_ADDRESS
usb_core.h
IER_MASK
USB_CTRL_DATA_IN
USB_CTRL_DATA_OUT
USB_CTRL_IDLE
USB_CTRL_SETUP
USB_CTRL_STATUS_IN
USB_CTRL_STATUS_OUT
USB_DBL_BUFTYPE
USB_EP0_MAX_SIZE
USB_EPTYPE_BULK
USB_EPTYPE_CONTROL
USB_EPTYPE_INT
USB_EPTYPE_ISOC
USB_SNG_BUFTYPE
USB_STATUS_ADDRESSED
USB_STATUS_CONFIGURED
USB_STATUS_CONNECTED
USB_STATUS_DEFAULT
USB_STATUS_SUSPENDED
USB_STATUS_UNCONNECTED
UCD_DEV
UCD_PDEV
USB_CORE_HANDLE
USB_DEVICE_HANDLE
USB_DEVICE_REQ
USB_EP
USBD_Class_cb_TypeDef
USBD_Desc_cb_TypeDef
USBD_User_cb_TypeDef
USB_Status
USB_OK
USB_FAIL
DR_Init
DR_StopDevice
USB_CtlContinueRx
USB_CtlContinueTx
USB_CtlReceiveStatus
USB_CtlRx
USB_CtlTransmitStatus
USB_CtlTx
USB_EP_BufConfig
USB_EP_ClrStall
USB_EP_DeInit
USB_EP_GetStatus
USB_EP_Init
USB_EP_Rx
USB_EP_SetAddress
USB_EP_Stall
USB_EP_Tx
USB_GetRxCount
usb_hwp.h
USB_Cable_Config
USB_HWP_ClockConfig
USB_HWP_DelayInit
USB_HWP_Init
USB_HWP_mDelay
USB_HWP_uDelay
USB_HWP_USBINTConfig
usb_int.h
USB_Ifr
usb_regs.h
_BlocksOf2
_BlocksOf32
_Clear_Status_Out
_ClearDTG_RX
_ClearDTG_TX
_ClearEP_KIND
_ClearEPDoubleBuff
_ClearEPRX_ST
_ClearEPTX_ST
_GetAR
_GetBAR
_GetCTLR
_GetEPAddress
_GetEPDblBuf0Addr
_GetEPDblBuf0Count
_GetEPDblBuf1Addr
_GetEPDblBuf1Count
_GetEPRxAddr
_GetEPRXARn
_GetEPRXCNTx
_GetEPRxCount
_GetEPRxStatus
_GetEPTxAddr
_GetEPTXARn
_GetEPTXCNTx
_GetEPTxCount
_GetEPTxStatus
_GetEPType
_GetEPxCSR
_GetIFR
_GetLPM_CNTR
_GetLPM_ISTR
_GetSR
_GetSUBEP0R
_Set_Status_Out
_SetAR
_SetBAR
_SetCTLR
_SetDouBleBuffEPStall
_SetEP_KIND
_SetEPAddress
_SetEPDblBuf0Addr
_SetEPDblBuf0Count
_SetEPDblBuf1Addr
_SetEPDblBuf1Count
_SetEPDblBufAddr
_SetEPDblBuffCount
_SetEPDoubleBuff
_SetEPRxAddr
_SetEPRxCount
_SetEPRxDblBuf0Count
_SetEPRxStatus
_SetEPRxTxStatus
_SetEPTxAddr
_SetEPTxCount
_SetEPTxStatus
_SetEPType
_SetEPxCSR
_SetIFR
_SetLPM_CNTR
_SetLPM_ISTR
_SetSUBEP0R
_ToggleDTG_RX
_ToggleDTG_TX
_ToggleSWBUF_RX
_ToggleSWBUF_TX
AR
AR_USBADDR
AR_USBEN
ATTR_BLINKSTATE
ATTR_BREMOTEWAKE
ATTR_HIRD
BAR
BLKNUM_OFFSET
BLKSIZE2_MASK
BLKSIZE2_OFFSETMASK
BLKSIZE32_MASK
BLKSIZE32_OFFSETMASK
BLKSIZE_OFFSET
CLR_ERRIF
CLR_ESOFIF
CLR_PMOUIF
CLR_RSTIF
CLR_SOFIF
CLR_SPSIF
CLR_STIF
CLR_WKUPIF
CTLR
CTLR_CLOSE
CTLR_ERRIE
CTLR_ESOFIE
CTLR_LOWM
CTLR_PMOUIE
CTLR_RSREQ
CTLR_RSTIE
CTLR_SETRST
CTLR_SETSPS
CTLR_SOFIE
CTLR_SPSIE
CTLR_STIE
CTLR_WKUPIE
EP0
EP0_IN
EP0_OUT
EP0CSR
EP1
EP1_IN
EP1_OUT
EP2
EP2_IN
EP2_OUT
EP3
EP3_IN
EP3_OUT
EP4
EP4_IN
EP4_OUT
EP5
EP5_IN
EP5_OUT
EP6
EP6_IN
EP6_OUT
EP7
EP7_IN
EP7_OUT
EP_AR
EP_BULK
EP_CONTROL
EP_CTL
EP_CTL_MASK
EP_INTERRUPT
EP_ISO
EP_KCTL
EP_SETUP
EPCSR_MASK
EPKCTL_MASK
EPRX_DISABLED
EPRX_DTG
EPRX_DTGMASK
EPRX_NAK
EPRX_ST
EPRX_STA
EPRX_STALL
EPRX_VALID
EPRXCNTR_BLKNUM
EPRXCNTR_BLKSIZ
EPRXCNTR_CNT
EPTX_DISABLED
EPTX_DTG
EPTX_DTGMASK
EPTX_NAK
EPTX_ST
EPTX_STA
EPTX_STALL
EPTX_VALID
EPTXCNTR_CNT
IFR
IFR_DIR
IFR_EPNUM
IFR_ERRIF
IFR_ESOFIF
IFR_PMOUIF
IFR_RSTIF
IFR_SOFIF
IFR_SPSIF
IFR_STIF
IFR_WKUPIF
LPM_CLR_STIF
LPM_CNTR
LPM_ISTR
LPM_STIE
LPM_STIF
PBA_Addr
Reg_Base
RXCNT_OFFSET
SR
SR_FCNT
SR_LOCK
SR_RXDM
SR_RXDP
SR_SOFLN
SUB_EP0REG
SUB_ST
SUB_STA
SUBEP_DISABLE
SUBEP_NYET
SUBEP_STALL
SUBEP_VALID
SUBPID_ATTR
TXCNT_OFFSET
DBUF_EP_DIR
_DBUF_EP_DIR
DBUF_EP_IN
DBUF_EP_OUT
DBUF_EP_ERR
USB_SPEED
USB_SPEED_LOW
USB_SPEED_FULL
src
usb_buf.c
BufferCopyToUser
FreeUserBuffer
UserCopyToBuffer
usb_core.c
DR_Init
DR_StopDevice
USB_CtlContinueRx
USB_CtlContinueTx
USB_CtlReceiveStatus
USB_CtlRx
USB_CtlTransmitStatus
USB_CtlTx
USB_EP_BufConfig
USB_EP_ClrStall
USB_EP_DeInit
USB_EP_GetStatus
USB_EP_Init
USB_EP_Rx
USB_EP_SetAddress
USB_EP_Stall
USB_EP_Tx
USB_GetRxCount
InterruptMask
usb_hwp_template.c
usb_int.c
USB_Ifr
InterruptMask
USB_Device_dev
USB_INT_fops
GD32_USB_Device_Library
Class
cdc
inc
usbd_cdc_core.h
CDC_DATA_IN_PACKET_SIZE
CDC_DATA_OUT_PACKET_SIZE
CDC_DESC_TYPE
CLEAR_COMM_FEATURE
GET_COMM_FEATURE
GET_ENCAPSULATED_RESPONSE
GET_LINE_CODING
NO_CMD
SEND_BREAK
SEND_ENCAPSULATED_COMMAND
SET_COMM_FEATURE
SET_CONTROL_LINE_STATE
SET_LINE_CODING
USB_CDC_CONFIG_DESC_SIZE
USB_CDC_DESC_SIZE
CDC_IF_Fop_TypeDef
USBD_CDC_cb
usbd_cdc_loopback_core.h
CDC_DATA_IN_PACKET_SIZE
CDC_DATA_OUT_PACKET_SIZE
CDC_DESC_TYPE
CLEAR_COMM_FEATURE
GET_COMM_FEATURE
GET_ENCAPSULATED_RESPONSE
GET_LINE_CODING
NO_CMD
SEND_BREAK
SEND_ENCAPSULATED_COMMAND
SET_COMM_FEATURE
SET_CONTROL_LINE_STATE
SET_LINE_CODING
USB_CDC_CONFIG_DESC_SIZE
USB_CDC_DESC_SIZE
USBD_CDC_ReceiveData
USBD_CDC_SendData
USBD_CDC_cb
src
usbd_cdc_core.c
APP_DATA_Buffer
APP_FOPS
AppBufInPtr
AppBufOutPtr
AppRxLength
end_packet
USB_CMD_Buffer
USB_DATA_Buffer
USB_Tx_State
USBD_CDC_cb
USBD_CDC_CfgDesc
usbd_cdc_loopback_core.c
cdc_msc_wrapper
inc
usbd_msc_cdc_wrapper.h
CDC_COM_INTERFACE
MSC_INTERFACE
USB_MSC_CDC_CONFIG_DESC_SIZE
USBD_MSC_CDC_cb
src
usbd_msc_cdc_wrapper.c
USBD_CDC_cb
USBD_MSC_cb
USBD_MSC_CDC_cb
USBD_MSC_CDC_CfgDesc
cdc_printer_wrapper
inc
usbd_printer_cdc_wrapper.h
CDC_COM_INTERFACE
PRINTER_INTERFACE
USB_PRINTER_CDC_CONFIG_DESC_SIZE
USBD_PRINTER_CDC_cb
src
usbd_printer_cdc_wrapper.c
USBD_CDC_cb
USBD_PRINTER_cb
USBD_PRINTER_CDC_cb
USBD_PRINTER_CDC_CfgDesc
dfu
inc
usbd_dfu_core.h
CMD_ERASE
CMD_WRITE
DFU_DESC_TYPE
DFU_DETACH_MASK
ERASE
GET_COMMANDS
Manifest_complete
Manifest_In_Progress
SET_ADDRESS_POINTER
USB_DFU_CONFIG_DESC_SIZE
USB_DFU_DESC_SIZE
USBD_DFU_IF_DESC
DFU_REQUESTS
DFU_STATE
DFU_STATUS
pAppFunction
_DFU_REQUESTS
DFU_DETACH
DFU_DNLOAD
DFU_UPLOAD
DFU_GETSTATUS
DFU_CLRSTATUS
DFU_GETSTATE
DFU_ABORT
_DFU_STATE
STATE_appIDLE
STATE_appDETACH
STATE_dfuIDLE
STATE_dfuDNLOAD_SYNC
STATE_dfuDNBUSY
STATE_dfuDNLOAD_IDLE
STATE_dfuMANIFEST_SYNC
STATE_dfuMANIFEST
STATE_dfuMANIFEST_WAIT_RESET
STATE_dfuUPLOAD_IDLE
STATE_dfuERROR
_DFU_STATUS
STATUS_OK
STATUS_errTARGET
STATUS_errFILE
STATUS_errWRITE
STATUS_errERASE
STATUS_errCHECK_ERASED
STATUS_errPROG
STATUS_errVERIFY
STATUS_errADDRESS
STATUS_errNOTDONE
STATUS_errFIRMWARE
STATUS_errVENDOR
STATUS_errUSBR
STATUS_errPOR
STATUS_errUNKNOWN
STATUS_errSTALLEDPKT
USBD_DFU_cb
usbd_dfu_mal.h
_1st_BYTE
_2nd_BYTE
_3rd_BYTE
SET_POLLING_TIMEOUT
DFU_MAL_Property_TypeDef
MAL_Status
MAL_OK
MAL_FAIL
MAL_OK
MAL_FAIL
DFU_MAL_DeInit
DFU_MAL_Erase
DFU_MAL_GetStatus
DFU_MAL_Init
DFU_MAL_Read
DFU_MAL_Write
MAL_Buffer
usbd_flash_if.h
src
usbd_dfu_core.c
DeviceStatus
MAL_Buffer
Manifest_State
USBD_DFU_cb
USBD_DFU_CfgDesc
USBD_DFU_StringDesc
usbd_dfu_mal.c
DFU_MAL_DeInit
DFU_MAL_Erase
DFU_MAL_GetStatus
DFU_MAL_Init
DFU_MAL_Read
DFU_MAL_Write
MAL_Buffer
tMALTab
USBD_DFU_StringDesc
usbd_flash_if.c
hid
inc
usbd_custom_hid_core.h
CUSTOMHID_CONFIG_DESC_SIZE
CUSTOMHID_DESC_TYPE
CUSTOMHID_REPORT_DESC_SIZE
CUSTOMHID_REPORT_DESCTYPE
GET_IDLE
GET_PROTOCOL
GET_REPORT
SET_IDLE
SET_PROTOCOL
SET_REPORT
USB_CUSTOMHID_DESC_SIZE
USBD_CUSTOMHID_SendReport
USBD_CUSTOMHID_cb
usbd_hid_core.h
GET_IDLE
GET_PROTOCOL
GET_REPORT
HID_DESC_TYPE
HID_REPORT_DESCTYPE
SET_IDLE
SET_PROTOCOL
SET_REPORT
USB_HID_CONFIG_DESC_SIZE
USB_HID_DESC_SIZE
USB_HID_REPORT_DESC_SIZE
USBD_HID_SendReport
USBD_HID_cb
src
usbd_custom_hid_core.c
USBD_CUSTOMHID_SendReport
CustomHID_ReportDescriptor
flag
Report_buf
USBD_CUSTOMHID_cb
USBD_CUSTOMHID_Report_ID
USBD_HID_CfgDesc
usbd_hid_core.c
USBD_HID_SendReport
HID_ReportDesc
PrevXferComplete
USBD_HID_cb
USBD_HID_CfgDesc
hid_cdc_wrapper
inc
usbd_hid_cdc_wrapper.h
CDC_COM_INTERFACE
HID_INTERFACE
USB_HID_CDC_CONFIG_DESC_SIZE
USBD_HID_CDC_cb
src
usbd_hid_cdc_wrapper.c
USBD_CDC_cb
USBD_CUSTOMHID_cb
USBD_HID_CDC_cb
USBD_HID_CDC_CfgDesc
hid_msc_wrapper
inc
usbd_hid_msc_wrapper.h
src
usbd_hid_msc_wrapper.c
IAP
inc
usbd_flash_if.h
usbd_iap_core.h
CUSTOMHID_CONFIG_DESC_SIZE
CUSTOMHID_DESC_TYPE
CUSTOMHID_REPORT_DESC_SIZE
CUSTOMHID_REPORT_DESCTYPE
GET_IDLE
GET_PROTOCOL
GET_REPORT
IAP_DNLOAD
IAP_ERASE
IAP_GETBIN_ADDRESS
IAP_LEAVE
IAP_OPTION_BYTE
SET_IDLE
SET_PROTOCOL
SET_REPORT
USB_CUSTOMHID_DESC_SIZE
pAppFunction
USBD_CUSTOMHID_SendReport
USBD_CUSTOMHID_cb
usbd_iap_mal.h
_1st_BYTE
_2nd_BYTE
_3rd_BYTE
SET_POLLING_TIMEOUT
IAP_MAL_Property_TypeDef
MAL_Status
MAL_OK
MAL_FAIL
MAL_OK
MAL_FAIL
IAP_MAL_DeInit
IAP_MAL_Erase
IAP_MAL_GetStatus
IAP_MAL_Init
IAP_MAL_Read
IAP_MAL_Write
MAL_Buffer
src
usbd_flash_if.c
usbd_iap_core.c
USBD_CUSTOMHID_SendReport
BinAddress
CustomHID_ReportDescriptor
DeviceStatus
flag
MAL_Buffer
OptionByte
Report_buf
USBD_CUSTOMHID_cb
USBD_CUSTOMHID_Report_ID
USBD_HID_CfgDesc
usbd_iap_mal.c
IAP_MAL_DeInit
IAP_MAL_Erase
IAP_MAL_GetStatus
IAP_MAL_Init
IAP_MAL_Read
IAP_MAL_Write
MAL_Buffer
tMALTab
USBD_IAP_StringDesc
msc
inc
usbd_msc_bot.h
_MSC_BBB_CBW
bCBWCBLength
bCBWLUN
bmCBWFlags
CBWCB
dCBWDataTransferLength
dCBWSignature
dCBWTag
_MSC_BBB_CSW
bCSWStatus
dCSWDataResidue
dCSWSignature
dCSWTag
BBB_CBW_LENGTH
BBB_CBW_SIGNATURE
BBB_CSW_LENGTH
BBB_CSW_SIGNATURE
BBB_DATA_IN
BBB_DATA_OUT
BBB_IDLE
BBB_LAST_DATA_IN
BBB_SEND_DATA
BBB_STATUS_ERROR
BBB_STATUS_NORMAL
BBB_STATUS_RECOVERY
CSW_CMD_FAILED
CSW_CMD_PASSED
CSW_PHASE_ERROR
MSC_BBB_CBW_TypeDef
MSC_BBB_CSW_TypeDef
MSC_BBB_CplClrFeature
MSC_BBB_DataIn
MSC_BBB_DataOut
MSC_BBB_DeInit
MSC_BBB_Init
MSC_BBB_Reset
MSC_BBB_SendCSW
MSC_BBB_cbw
MSC_BBB_csw
MSC_BBB_Data
MSC_BBB_DataLen
MSC_BBB_State
usbd_msc_core.h
BBB_GET_MAX_LUN
BBB_RESET
MSC_EPIN_SIZE
MSC_EPOUT_SIZE
USB_MSC_CONFIG_DESC_SIZE
USBD_MSC_cb
usbd_msc_data.h
FORMAT_CAPACITIES_LENGTH
INQUIRY_PAGE00_LENGTH
MODE_SENSE10_LENGTH
MODE_SENSE6_LENGTH
MSC_Mode_Sense10_data
MSC_Mode_Sense6_data
MSC_Page00_Inquiry_Data
usbd_msc_mem.h
_USBD_STORAGE
GetCapacity
GetMaxLun
Init
IsReady
IsWriteProtected
pInquiryData
Read
Write
USBD_STD_INQUIRY_LENGTH
USBD_STORAGE_cb_TypeDef
USBD_STORAGE_fops
usbd_msc_scsi.h
_SENSE_ITEM
ASC
ASCQ
Information
SenseKey
ABORTED_COMMAND
ADDRESS_OUT_OF_RANGE
BLANK_CHECK
BLKVFY
COPY_ABORTED
DATA_PROTECT
HARDWARE_ERROR
ILLEGAL_REQUEST
INVALID_CDB
INVALID_FIELD_IN_PARAMETER_LIST
INVALID_FIELED_IN_COMMAND
MEDIUM_ERROR
MEDIUM_HAVE_CHANGED
MEDIUM_NOT_PRESENT
MISCOMPARE
MODE_SENSE10_DATA_LEN
MODE_SENSE6_DATA_LEN
NO_SENSE
NOT_READY
PARAMETER_LIST_LENGTH_ERROR
READ_CAPACITY10_DATA_LEN
READ_FORMAT_CAPACITY_DATA_LEN
RECOVERED_ERROR
REQUEST_SENSE_DATA_LEN
SCSI_ALLOW_MEDIUM_REMOVAL
SCSI_FORMAT_UNIT
SCSI_INQUIRY
SCSI_MODE_SELECT10
SCSI_MODE_SELECT6
SCSI_MODE_SENSE10
SCSI_MODE_SENSE6
SCSI_READ10
SCSI_READ12
SCSI_READ16
SCSI_READ6
SCSI_READ_CAPACITY10
SCSI_READ_CAPACITY16
SCSI_READ_FORMAT_CAPACITIES
SCSI_REQUEST_SENSE
SCSI_SEND_DIAGNOSTIC
SCSI_START_STOP_UNIT
SCSI_TEST_UNIT_READY
SCSI_VERIFY10
SCSI_VERIFY12
SCSI_VERIFY16
SCSI_WRITE10
SCSI_WRITE12
SCSI_WRITE16
SCSI_WRITE6
SENSE_LIST_DEEPTH
STANDARD_INQUIRY_DATA_LEN
UNIT_ATTENTION
UNRECOVERED_READ_ERROR
VENDOR_SPECIFIC
VOLUME_OVERFLOW
WRITE_FAULT
WRITE_PROTECTED
SCSI_Sense_TypeDef
SCSI_ProcessCmd
SCSI_ProcessRead
SCSI_ProcessWrite
SCSI_SenseCode
Mode_Sense10_data
Mode_Sense6_data
Page00_Inquiry_Data
ReadCapacity10_Data
ReadFormatCapacity_Data
SCSI_Sense
Scsi_Sense_Data
SCSI_Sense_Head
SCSI_Sense_Tail
Standard_Inquiry_Data
Standard_Inquiry_Data2
src
usbd_msc_bot.c
MSC_BBB_CplClrFeature
MSC_BBB_DataIn
MSC_BBB_DataOut
MSC_BBB_DeInit
MSC_BBB_Init
MSC_BBB_Reset
MSC_BBB_SendCSW
MSC_BBB_cbw
MSC_BBB_csw
MSC_BBB_Data
MSC_BBB_DataLen
MSC_BBB_State
MSC_BBB_Status
usbd_msc_core.c
USBD_MSC_cb
USBD_MSC_CfgDesc
usbd_msc_data.c
MSC_Mode_Sense10_data
MSC_Mode_Sense6_data
MSC_Page00_Inquiry_Data
usbd_msc_scsi.c
SCSI_ProcessCmd
SCSI_ProcessRead
SCSI_ProcessWrite
SCSI_SenseCode
cdev
SCSI_blk_addr
SCSI_blk_len
SCSI_blk_nbr
SCSI_blk_size
SCSI_Sense
SCSI_Sense_Head
SCSI_Sense_Tail
usbd_storage_template.c
STORAGE_LUN_NBR
STORAGE_GetCapacity
STORAGE_GetMaxLun
STORAGE_Init
STORAGE_IsReady
STORAGE_IsWriteProtected
STORAGE_Read
STORAGE_Write
STORAGE_Inquirydata
USBD_MICRO_SDIO_fops
USBD_STORAGE_fops
printer
inc
usbd_printer_core.h
GET_DEVICE_ID
GET_PORT_STATUS
SOFT_RESET
USB_PRINTER_CONFIG_DESC_SIZE
USBD_PRINTER_cb
src
usbd_printer_core.c
USBD_PRINTER_cb
USBD_PRINTER_CfgDesc
Core
inc
usbd_conf_template.h
APP_DEFAULT_ADD
APP_FOPS
APP_FOPS
APP_RX_DATA_SIZE
APP_RX_DATA_SIZE
AUDIO_OUT_EP
AUDIO_TOTAL_IF_NUM
CCID_BULK_EP_MAX_PACKET
CCID_BULK_IN_EP
CCID_BULK_OUT_EP
CCID_INTR_EP_MAX_PACKET
CCID_INTR_IN_EP
CDC_CMD_EP
CDC_CMD_EP
CDC_CMD_PACKET_SIZE
CDC_CMD_PACKET_SZE
CDC_DATA_MAX_PACKET_SIZE
CDC_DATA_MAX_PACKET_SIZE
CDC_IN_EP
CDC_IN_EP
CDC_IN_FRAME_INTERVAL
CDC_IN_FRAME_INTERVAL
CDC_OUT_EP
CDC_OUT_EP
CUSTOMHID_CONFIG_DESC_SIZE
CUSTOMHID_CONFIG_DESC_SIZE
CUSTOMHID_CONFIG_DESC_SIZE
CUSTOMHID_REPORT_DESC_SIZE
CUSTOMHID_REPORT_DESC_SIZE
CUSTOMHID_REPORT_DESC_SIZE
DFU_IN_EP
DFU_MAL_IS_PROTECTED_AREA
DFU_OUT_EP
HID_IN_EP
HID_IN_EP
HID_IN_EP
HID_IN_PACKET
HID_IN_PACKET
HID_IN_PACKET
HID_OUT_EP
HID_OUT_EP
HID_OUT_EP
HID_OUT_PACKET
HID_OUT_PACKET
HID_OUT_PACKET
MAX_USED_MEDIA
MSC_IN_EP
MSC_IN_EP
MSC_MAX_PACKET
MSC_MAX_PACKET
MSC_MEDIA_PACKET
MSC_MEDIA_PACKET
MSC_OUT_EP
MSC_OUT_EP
TRANSFER_SIZE_BYTES
USB_MAX_STR_DESC_SIZ
USB_MAX_STR_DESC_SIZ
USB_MAX_STR_DESC_SIZE
USB_MAX_STR_DESC_SIZE
USB_STR_DESC_MAX_SIZE
USB_STR_DESC_MAX_SIZE
USB_STR_DESC_MAX_SIZE
USB_STR_DESC_MAX_SIZE
USB_SUPPORT_USER_STRING_DESC
USB_SUPPORT_USER_STRING_DESC
USBD_CFG_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_ITF_MAX_NUM
USBD_SELF_POWERED
XFERSIZE
usbd_core.h
USBD_Status
USBD_OK
USBD_BUSY
USBD_FAIL
USBD_ClrCfg
USBD_Connect
USBD_DataInStage
USBD_DataOutStage
USBD_DeInit
USBD_Disconnect
USBD_Init
USBD_SetCfg
USBD_SetupStage
usbd_def.h
HIGHBYTE
LOWBYTE
MIN
NULL
SWAPBYTE
USB_CFG_DESC_LEN
USB_CLASS_REQ
USB_DESCTYPE_BOS
USB_DESCTYPE_CONFIGURATION
USB_DESCTYPE_DEVICE
USB_DESCTYPE_DEVICE_QUALIFIER
USB_DESCTYPE_ENDPOINT
USB_DESCTYPE_INTERFACE
USB_DESCTYPE_OTHER_SPEED_CONFIGURATION
USB_DESCTYPE_STRING
USB_DEV_QUALIFIER_DESC_LEN
USB_FEATURE_ENDP_HALT
USB_FEATURE_REMOTE_WAKEUP
USB_FEATURE_TEST_MODE
USB_REQ_MASK
USB_REQ_RECIPIENT_MASK
USB_REQTYPE_DEVICE
USB_REQTYPE_ENDPOINT
USB_REQTYPE_INTERFACE
USB_STANDARD_REQ
USB_STATUS_REMOTE_WAKEUP
USB_STATUS_SELF_POWERED
USB_VENDOR_REQ
USBD_CONFIG_STR_IDX
USBD_INTERFACE_STR_IDX
USBD_LANGID_STR_IDX
USBD_MFC_STR_IDX
USBD_PRODUCT_STR_IDX
USBD_SERIAL_STR_IDX
USBREQ_CLEAR_FEATURE
USBREQ_GET_CONFIGURATION
USBREQ_GET_DESCRIPTOR
USBREQ_GET_INTERFACE
USBREQ_GET_STATUS
USBREQ_SET_ADDRESS
USBREQ_SET_CONFIGURATION
USBREQ_SET_FEATURE
USBREQ_SET_INTERFACE
usbd_desc.h
DEVICE_ID1
DEVICE_ID2
DEVICE_ID3
USB_DEVICE_DESC_SIZE
USB_LANGID_STRING_SIZE
USB_SERIAL_STRING_SIZE
Get_SerialString
USBD_USER_ConfigStrDesc
USBD_USER_DevDesc
USBD_USER_ItfStrDesc
USBD_USER_LANGIDStrDesc
USBD_USER_MFCStrDesc
USBD_USER_ProdStrDesc
USBD_USER_SerialStrDesc
USBD_StrDesc
USER_desc
usbd_enum.h
IS_NOT_EP0
IntToUnicode
USBD_DevClsReq
USBD_EnumError
USBD_GetUnicodeString
USBD_ParseSetupRequest
USBD_StdReq
USBD_VdrDefReq
usbd_it.h
USB_INTHandler_TypeDef
usbd_pwr.h
RESUME_STATE
_RESUME_STATE
RESUME_EXTERNAL
RESUME_INTERNAL
RESUME_LATER
RESUME_ON
RESUME_OFF
RESUME_ESOF
USBD_Resume
USBD_Suspend
USB_Device_dev
usbd_user.h
USBD_USER_DeviceConfigured
USBD_USER_DeviceInit
USBD_USER_DeviceReset
USBD_USER_DeviceResumed
USBD_USER_DeviceSuspended
src
usbd_core.c
USBD_ClrCfg
USBD_Connect
USBD_DataInStage
USBD_DataOutStage
USBD_DeInit
USBD_Disconnect
USBD_Init
USBD_SetCfg
USBD_SetupStage
gAddress
usbd_enum.c
usbd_it.c
usbd_pwr.c
USBD_Resume
USBD_Suspend
ESOFcount
RemoteWakeupOn
State
SuspendEnabled
Globals
All
_
a
b
c
d
e
f
i
l
m
p
r
s
u
x
Functions
Typedefs
Enumerations
Macros
Get in touch
Submit feedback about this site to:
[email protected]