Home
last modified time | relevance | path

Searched refs:g_usbDev (Results 1 – 6 of 6) sorted by relevance

/bsp/apm32/libraries/APM32F0xx_Library/USB_Device_Lib/Core_Device/Standard/src/
A Dusbd_core.c69 USBD_Info_T g_usbDev; variable
151 tmp = USB_MIN(g_usbDev.inBuf[0].bufLen, g_usbDev.inBuf[0].maxPackSize); in USBD_CtrlInProcess()
264 g_usbDev.inBuf[0].bufLen = len - g_usbDev.inBuf[0].maxPackSize; in USBD_CtrlInData()
265 g_usbDev.inBuf[0].pBuf = buf + g_usbDev.inBuf[0].maxPackSize; in USBD_CtrlInData()
276 g_usbDev.ctrlState = g_usbDev.reqData.byte.bmRequestType.bit.dir ? \ in USBD_CtrlInData()
286 g_usbDev.ctrlState = g_usbDev.reqData.byte.bmRequestType.bit.dir ? \ in USBD_CtrlInData()
338 len = g_usbDev.inBuf[ep].bufLen > g_usbDev.inBuf[ep].maxPackSize ? \ in USBD_DataInProcess()
339 g_usbDev.inBuf[ep].maxPackSize : g_usbDev.inBuf[ep].bufLen; in USBD_DataInProcess()
376 g_usbDev.outBuf[ep].bufLen -= g_usbDev.outBuf[ep].xferCnt; in USBD_DataOutProcess()
377 g_usbDev.outBuf[ep].pBuf += g_usbDev.outBuf[ep].xferCnt; in USBD_DataOutProcess()
[all …]
A Dusbd_stdReq.c55 uint8_t bRequest = g_usbDev.reqData.byte.bRequest; in USBD_StandardReqeust()
107 if(g_usbDev.stdReqExceptionHandler != NULL) in USBD_StandardReqeust()
109 g_usbDev.stdReqExceptionHandler(&g_usbDev.reqData); in USBD_StandardReqeust()
161 len = USB_MIN(*(uint16_t *)g_usbDev.reqData.byte.wLength, g_usbDev.pDeviceDesc->size); in USBD_StandardGetDescriptor()
166 … len = USB_MIN(*(uint16_t *)g_usbDev.reqData.byte.wLength, g_usbDev.pConfigurationDesc->size); in USBD_StandardGetDescriptor()
173 … len = USB_MIN(*(uint16_t *)g_usbDev.reqData.byte.wLength, g_usbDev.pStringDesc[wValue0].size); in USBD_StandardGetDescriptor()
219 if(g_usbDev.curFeature & (1 << 5)) in USBD_StandardGetStatus()
224 if(g_usbDev.curFeature & (1 << 6)) in USBD_StandardGetStatus()
244 if(g_usbDev.reqData.byte.wIndex[0] & 0x80) in USBD_StandardGetStatus()
279 USBD_DevReqData_T *reqData = &g_usbDev.reqData; in USBD_StandardSetAddress()
[all …]
A Dusbd_init.c85 g_usbDev.pDeviceDesc = param->pDeviceDesc; in USBD_Init()
87 g_usbDev.pStringDesc = param->pStringDesc; in USBD_Init()
88 g_usbDev.pQualifierDesc = param->pQualifierDesc; in USBD_Init()
89 g_usbDev.pHidReportDesc = param->pHidReportDesc; in USBD_Init()
91 g_usbDev.pStdReqCallback = param->pStdReqCallback; in USBD_Init()
99 g_usbDev.inEpHandler = param->inEpHandler; in USBD_Init()
100 g_usbDev.outEpHandler = param->outEpHandler; in USBD_Init()
102 g_usbDev.resetHandler = param->resetHandler; in USBD_Init()
103 g_usbDev.intHandler = param->intHandler; in USBD_Init()
241 g_usbDev.outBuf[ep].maxPackSize = 0; in USBD_CloseOutEP()
[all …]
A Dusbd_interrupt.c224 g_usbDev.configurationNum = USB_CONFIGURATION_NUM; in USBD_ResetIsrHandler()
225 g_usbDev.curConfiguration = 0; in USBD_ResetIsrHandler()
226 g_usbDev.curInterface = 0; in USBD_ResetIsrHandler()
227 g_usbDev.curAlternateSetting = 0; in USBD_ResetIsrHandler()
228 g_usbDev.curFeature = 0; in USBD_ResetIsrHandler()
229 g_usbDev.ctrlState = USBD_CTRL_STATE_WAIT_SETUP; in USBD_ResetIsrHandler()
231 g_usbDev.inBuf[USBD_EP_0].maxPackSize = USB_EP0_PACKET_SIZE; in USBD_ResetIsrHandler()
251 if (g_usbDev.resetHandler) in USBD_ResetIsrHandler()
253 g_usbDev.resetHandler(); in USBD_ResetIsrHandler()
366 g_usbDev.outEpHandler(ep); in USBD_HighPriorityProc()
[all …]
/bsp/apm32/libraries/APM32F0xx_Library/USB_Device_Lib/Core_Device/Class/MSC/src/
A Dusbd_msc_bot.c168 uint32_t xferCnt = g_usbDev.outBuf[MSC_OUT_EP & 0x7f].xferCnt; in USBD_MSC_BOT_DecodeCBW()
258 else if (((g_usbDev.reqData.byte.wIndex[0] & 0x80) == 0x80) && \ in USBD_MSV_BOT_ClearFeatureHandler()
/bsp/apm32/libraries/APM32F0xx_Library/USB_Device_Lib/Core_Device/Standard/inc/
A Dusbd_core.h339 extern USBD_Info_T g_usbDev;

Completed in 10 milliseconds