/hal_nxp-3.5.0/mcux/middleware/mcux-sdk-middleware-usb/host/ |
D | usb_host_framework.c | 41 transfer->setupPacket->wLength = USB_SHORT_TO_LITTLE_ENDIAN((uint16_t)bufferLen); in USB_HostCh9RequestCommon() 66 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_DIR_IN | USB_REQUEST_TYPE_TYPE_STANDARD; in USB_HostStandardGetStatus() 69 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_RECIPIENT_DEVICE; in USB_HostStandardGetStatus() 73 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostStandardGetStatus() 77 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostStandardGetStatus() 79 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(statusParam->statusSelector); in USB_HostStandardGetStatus() 99 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_RECIPIENT_DEVICE; in USB_HostStandardSetClearFeature() 103 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostStandardSetClearFeature() 107 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostStandardSetClearFeature() 109 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(featureParam->featureSelector); in USB_HostStandardSetClearFeature() [all …]
|
D | usb_host_devices.c | 322 transfer->setupPacket->bmRequestType = 0x00U; in USB_HostProcessState() 323 transfer->setupPacket->wIndex = 0U; in USB_HostProcessState() 324 transfer->setupPacket->wLength = 0U; in USB_HostProcessState() 325 transfer->setupPacket->wValue = 0U; in USB_HostProcessState() 342 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_DIR_IN; in USB_HostProcessState() 343 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_GET_DESCRIPTOR; in USB_HostProcessState() 347 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_ADDRESS; in USB_HostProcessState() 358 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_DIR_IN; in USB_HostProcessState() 359 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_GET_DESCRIPTOR; in USB_HostProcessState() 370 transfer->setupPacket->bmRequestType |= USB_REQUEST_TYPE_DIR_IN; in USB_HostProcessState() [all …]
|
D | usb_host_ip3516hs.c | 172 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_DIR_IN; in USB_HostIp3516HsTestSingleStepGetDeviceDesc() 173 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_GET_DESCRIPTOR; in USB_HostIp3516HsTestSingleStepGetDeviceDesc() 174 transfer->setupPacket->wIndex = 0; in USB_HostIp3516HsTestSingleStepGetDeviceDesc() 175 transfer->setupPacket->wLength = 0; in USB_HostIp3516HsTestSingleStepGetDeviceDesc() 176 transfer->setupPacket->wValue = 0; in USB_HostIp3516HsTestSingleStepGetDeviceDesc() 209 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_DIR_IN; in USB_HostIp3516HsTestSingleStepGetDeviceDescData() 210 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_GET_DESCRIPTOR; in USB_HostIp3516HsTestSingleStepGetDeviceDescData() 211 transfer->setupPacket->wIndex = 0; in USB_HostIp3516HsTestSingleStepGetDeviceDescData() 212 transfer->setupPacket->wLength = 0; in USB_HostIp3516HsTestSingleStepGetDeviceDescData() 213 transfer->setupPacket->wValue = 0; in USB_HostIp3516HsTestSingleStepGetDeviceDescData() [all …]
|
D | usb_host_ehci.c | 716 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_DIR_IN; in USB_HostEhciTestSingleStepGetDeviceDesc() 717 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_GET_DESCRIPTOR; in USB_HostEhciTestSingleStepGetDeviceDesc() 718 transfer->setupPacket->wIndex = 0; in USB_HostEhciTestSingleStepGetDeviceDesc() 719 transfer->setupPacket->wLength = 0; in USB_HostEhciTestSingleStepGetDeviceDesc() 720 transfer->setupPacket->wValue = 0; in USB_HostEhciTestSingleStepGetDeviceDesc() 774 dataAddress = (uint32_t)(transfer->setupPacket); in USB_HostEhciSingleStepQtdListInit() 874 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_DIR_IN; in USB_HostEhciTestSingleStepGetDeviceDescData() 875 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_GET_DESCRIPTOR; in USB_HostEhciTestSingleStepGetDeviceDescData() 876 …transfer->setupPacket->wLength = USB_SHORT_TO_LITTLE_ENDIAN(USB_HOST_EHCI_TEST_DESCRIPTOR_LE… in USB_HostEhciTestSingleStepGetDeviceDescData() 877 …transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN((uint16_t)((uint16_t)USB_DESCRIPTOR_TYP… in USB_HostEhciTestSingleStepGetDeviceDescData() [all …]
|
D | usb_host_hci.c | 188 g_UsbHostInstance[i].transferList[index].setupPacket = (usb_setup_struct_t *)temp; in USB_HostGetInstance() 439 … if ((transfer->setupPacket->bmRequestType & USB_REQUEST_TYPE_DIR_MASK) == USB_REQUEST_TYPE_DIR_IN) in USB_HostSendSetup() 460 … DCACHE_CleanByRange((uint32_t)&transfer->setupPacket->bmRequestType, sizeof(usb_setup_struct_t)); in USB_HostSendSetup()
|
D | usb_host_khci.c | 668 (transfer->setupPacket->bRequest == USB_REQUEST_STANDARD_CLEAR_FEATURE) && in _USB_HostKhciProcessTrCallback() 669 (transfer->setupPacket->bmRequestType == USB_REQUEST_TYPE_RECIPIENT_ENDPOINT) && in _USB_HostKhciProcessTrCallback() 670 ((USB_SHORT_FROM_LITTLE_ENDIAN(transfer->setupPacket->wValue) & 0x00FFu) == in _USB_HostKhciProcessTrCallback() 679 (uint8_t)(USB_SHORT_FROM_LITTLE_ENDIAN(transfer->setupPacket->wIndex))) && in _USB_HostKhciProcessTrCallback() 1054 … usbHostPointer, (uint32_t)kTr_Ctrl, transfer->transferPipe, (uint8_t *)transfer->setupPacket, 8U); in _USB_HostKhciStartTranfer()
|
D | usb_host.h | 249 usb_setup_struct_t *setupPacket; /*!< Set up packet buffer*/ member
|
D | usb_host_ohci.c | 1177 (USB_REQUEST_STANDARD_CLEAR_FEATURE == currentTr->setupPacket->bRequest) && in USB_HostOhciTdDoneHandle() 1178 (USB_REQUEST_TYPE_RECIPIENT_ENDPOINT == currentTr->setupPacket->bmRequestType) && in USB_HostOhciTdDoneHandle() 1180 (USB_SHORT_FROM_LITTLE_ENDIAN(currentTr->setupPacket->wValue) & 0x00FFU))) in USB_HostOhciTdDoneHandle() 1188 … ((uint8_t)(USB_SHORT_FROM_LITTLE_ENDIAN(currentTr->setupPacket->wIndex)))) && in USB_HostOhciTdDoneHandle() 1596 …USB_HostOhciFillGtd(pipe, tr, p, (uint8_t *)tr->setupPacket, 8U, USB_HOST_OHCI_GTD_DP_SETUP, 0x02U… in USB_HostOhciLinkGtdControlTr() 1639 if (tr->setupPacket->wLength > 0u) in USB_HostOhciLinkGtdControlTr()
|
/hal_nxp-3.5.0/mcux/middleware/mcux-sdk-middleware-usb/host/class/ |
D | usb_host_phdc.c | 147 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_CLEAR_FEATURE; in USB_HostPhdcClearHalt() 148 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostPhdcClearHalt() 149 …transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(USB_REQUEST_STANDARD_FEATURE_SELECTOR_… in USB_HostPhdcClearHalt() 150 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(endpoint); in USB_HostPhdcClearHalt() 151 transfer->setupPacket->wLength = 0; in USB_HostPhdcClearHalt() 178 if (USB_HOST_PHDC_SET_FEATURE_REQUEST == transfer->setupPacket->bRequest) in USB_HostPhdcControlPipeCallback() 183 else if (USB_HOST_PHDC_CLEAR_FEATURE_REQUEST == transfer->setupPacket->bRequest) in USB_HostPhdcControlPipeCallback() 217 if ((transfer->setupPacket->bRequest == USB_REQUEST_STANDARD_SET_FEATURE) && in USB_HostPhdcSetClearFeatureEndpointHaltCallback() 218 (transfer->setupPacket->bmRequestType == USB_REQUEST_TYPE_RECIPIENT_ENDPOINT) && in USB_HostPhdcSetClearFeatureEndpointHaltCallback() 219 (transfer->setupPacket->wValue == in USB_HostPhdcSetClearFeatureEndpointHaltCallback() [all …]
|
D | usb_host_printer.c | 155 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_CLEAR_FEATURE; in USB_HostPrinterClearHalt() 156 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostPrinterClearHalt() 157 …transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(USB_REQUEST_STANDARD_FEATURE_SELECTOR_… in USB_HostPrinterClearHalt() 158 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(endpoint); in USB_HostPrinterClearHalt() 159 transfer->setupPacket->wLength = 0; in USB_HostPrinterClearHalt() 459 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_INTERFACE; in USB_HostPrinterSetInterface() 460 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostPrinterSetInterface() 461 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN( in USB_HostPrinterSetInterface() 463 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(alternateSetting); in USB_HostPrinterSetInterface() 464 transfer->setupPacket->wLength = 0; in USB_HostPrinterSetInterface() [all …]
|
D | usb_host_hid.c | 158 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_CLEAR_FEATURE; in USB_HostHidClearHalt() 159 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostHidClearHalt() 160 …transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(USB_REQUEST_STANDARD_FEATURE_SELECTOR_… in USB_HostHidClearHalt() 161 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(endpoint); in USB_HostHidClearHalt() 162 transfer->setupPacket->wLength = 0; in USB_HostHidClearHalt() 455 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_INTERFACE; in USB_HostHidSetInterface() 456 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostHidSetInterface() 457 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN( in USB_HostHidSetInterface() 459 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(alternateSetting); in USB_HostHidSetInterface() 460 transfer->setupPacket->wLength = 0U; in USB_HostHidSetInterface() [all …]
|
D | usb_host_cdc.c | 85 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_CLEAR_FEATURE; in USB_HostCdcClearHalt() 86 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostCdcClearHalt() 87 …transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(USB_REQUEST_STANDARD_FEATURE_SELECTOR_… in USB_HostCdcClearHalt() 88 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(endpoint); in USB_HostCdcClearHalt() 89 transfer->setupPacket->wLength = 0; in USB_HostCdcClearHalt() 568 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_INTERFACE; in USB_HostCdcSetControlInterface() 569 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostCdcSetControlInterface() 570 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN( in USB_HostCdcSetControlInterface() 572 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(alternateSetting); in USB_HostCdcSetControlInterface() 573 transfer->setupPacket->wLength = 0; in USB_HostCdcSetControlInterface() [all …]
|
D | usb_host_hub.c | 154 transfer->setupPacket->bmRequestType = requestType; in USB_HostHubClassRequestCommon() 155 transfer->setupPacket->bRequest = request; in USB_HostHubClassRequestCommon() 156 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(wvalue); in USB_HostHubClassRequestCommon() 157 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(windex); in USB_HostHubClassRequestCommon() 158 transfer->setupPacket->wLength = USB_SHORT_TO_LITTLE_ENDIAN(bufferLength); in USB_HostHubClassRequestCommon() 435 transfer->setupPacket->bmRequestType = in USB_HostHubSendPortReset() 437 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_FEATURE; in USB_HostHubSendPortReset() 438 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(PORT_RESET); in USB_HostHubSendPortReset() 439 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(portNumber); in USB_HostHubSendPortReset() 440 transfer->setupPacket->wLength = 0; in USB_HostHubSendPortReset()
|
D | usb_host_video.c | 387 transfer->setupPacket->bmRequestType = typeRequest; in USB_HostVideoControl() 388 transfer->setupPacket->bRequest = request; in USB_HostVideoControl() 389 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(wvalue); in USB_HostVideoControl() 390 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(windex); in USB_HostVideoControl() 391 transfer->setupPacket->wLength = USB_SHORT_TO_LITTLE_ENDIAN(wlength); in USB_HostVideoControl() 553 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_INTERFACE; in USB_HostVideoStreamSetInterface() 554 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostVideoStreamSetInterface() 555 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN( in USB_HostVideoStreamSetInterface() 557 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(alternateSetting); in USB_HostVideoStreamSetInterface() 558 transfer->setupPacket->wLength = 0; in USB_HostVideoStreamSetInterface() [all …]
|
D | usb_host_msd.c | 224 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_CLEAR_FEATURE; in USB_HostMsdClearHalt() 225 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_ENDPOINT; in USB_HostMsdClearHalt() 226 …transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(USB_REQUEST_STANDARD_FEATURE_SELECTOR_… in USB_HostMsdClearHalt() 227 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(endpoint); in USB_HostMsdClearHalt() 228 transfer->setupPacket->wLength = 0; in USB_HostMsdClearHalt() 1003 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_INTERFACE; in USB_HostMsdSetInterface() 1004 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostMsdSetInterface() 1005 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN( in USB_HostMsdSetInterface() 1007 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(alternateSetting); in USB_HostMsdSetInterface() 1008 transfer->setupPacket->wLength = 0; in USB_HostMsdSetInterface() [all …]
|
D | usb_host_audio.c | 273 transfer->setupPacket->bmRequestType = typeRequest; in _USB_HostAudioControl() 274 transfer->setupPacket->bRequest = request; in _USB_HostAudioControl() 275 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(wvalue); in _USB_HostAudioControl() 276 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(windex); in _USB_HostAudioControl() 278 transfer->setupPacket->wLength = USB_SHORT_TO_LITTLE_ENDIAN(wlength); in _USB_HostAudioControl() 623 transfer->setupPacket->bRequest = USB_REQUEST_STANDARD_SET_INTERFACE; in USB_HostAudioStreamSetInterface() 624 transfer->setupPacket->bmRequestType = USB_REQUEST_TYPE_RECIPIENT_INTERFACE; in USB_HostAudioStreamSetInterface() 625 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN( in USB_HostAudioStreamSetInterface() 627 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(alternateSetting); in USB_HostAudioStreamSetInterface() 628 transfer->setupPacket->wLength = 0; in USB_HostAudioStreamSetInterface() [all …]
|
D | usb_host_hub_app.c | 1092 transfer->setupPacket->bmRequestType = requestType; in USB_HostSendHubRequest() 1093 transfer->setupPacket->bRequest = request; in USB_HostSendHubRequest() 1094 transfer->setupPacket->wValue = USB_SHORT_TO_LITTLE_ENDIAN(wvalue); in USB_HostSendHubRequest() 1095 transfer->setupPacket->wIndex = USB_SHORT_TO_LITTLE_ENDIAN(windex); in USB_HostSendHubRequest() 1096 transfer->setupPacket->wLength = USB_SHORT_TO_LITTLE_ENDIAN(0U); in USB_HostSendHubRequest()
|
/hal_nxp-3.5.0/mcux/middleware/mcux-sdk-middleware-usb/device/ |
D | usb_device_lpcip3511.c | 1102 usb_setup_struct_t *setupPacket; in USB_DeviceLpc3511IpInterruptToken() local 1342 setupPacket = (usb_setup_struct_t *)temp; in USB_DeviceLpc3511IpInterruptToken() 1346 … if (USB_SHORT_FROM_LITTLE_ENDIAN(setupPacket->wLength) > epState->transferLength) in USB_DeviceLpc3511IpInterruptToken()
|