| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/device/core/Source/ |
| A D | usbd_core.c | 103 uint8_t ep_addr = ep_desc->bEndpointAddress; in usbd_ep_setup() local 107 if (EP_DIR(ep_addr)) { in usbd_ep_setup() 110 transc->ep_addr.dir = 1U; in usbd_ep_setup() 112 transc = &udev->dev.transc_out[ep_addr]; in usbd_ep_setup() 114 transc->ep_addr.dir = 0U; in usbd_ep_setup() 117 transc->ep_addr.num = EP_ID(ep_addr); in usbd_ep_setup() 141 if (EP_DIR(ep_addr)) { in usbd_ep_clear() 144 transc = &udev->dev.transc_out[ep_addr]; in usbd_ep_clear() 229 if (EP_DIR(ep_addr)) { in usbd_ep_stall() 256 if (EP_DIR(ep_addr)) { in usbd_ep_stall_clear() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/drivers/src/ |
| A D | hpm_usb_drv.c | 210 uint8_t const epnum = config->ep_addr & 0x0f; in usb_dcd_edpt_open() 222 uint8_t const epnum = ep_addr & 0x0f; in usb_dcd_edpt_get_type() 223 uint8_t const dir = (ep_addr & 0x80) >> 7; in usb_dcd_edpt_get_type() 239 uint8_t const epnum = ep_addr & 0x0f; in usb_dcd_edpt_stall() 240 uint8_t const dir = (ep_addr & 0x80) >> 7; in usb_dcd_edpt_stall() 247 uint8_t const epnum = ep_addr & 0x0f; in usb_dcd_edpt_clear_stall() 248 uint8_t const dir = (ep_addr & 0x80) >> 7; in usb_dcd_edpt_clear_stall() 257 uint8_t const epnum = ep_addr & 0x0f; in usb_dcd_edpt_check_stall() 258 uint8_t const dir = (ep_addr & 0x80) >> 7; in usb_dcd_edpt_check_stall() 265 uint8_t const epnum = ep_addr & 0x0f; in usb_dcd_edpt_close() [all …]
|
| /bsp/stm32/libraries/templates/stm32l1xx/board/CubeMX_Config/Src/ |
| A D | usbd_conf.c | 403 hal_status = HAL_PCD_EP_Open(pdev->pData, ep_addr, ep_mps, ep_type); in USBD_LL_OpenEP() 421 hal_status = HAL_PCD_EP_Close(pdev->pData, ep_addr); in USBD_LL_CloseEP() 439 hal_status = HAL_PCD_EP_Flush(pdev->pData, ep_addr); in USBD_LL_FlushEP() 457 hal_status = HAL_PCD_EP_SetStall(pdev->pData, ep_addr); in USBD_LL_StallEP() 475 hal_status = HAL_PCD_EP_ClrStall(pdev->pData, ep_addr); in USBD_LL_ClearStallEP() 488 uint8_t USBD_LL_IsStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) in USBD_LL_IsStallEP() argument 492 if((ep_addr & 0x80) == 0x80) in USBD_LL_IsStallEP() 494 return hpcd->IN_ep[ep_addr & 0x7F].is_stall; in USBD_LL_IsStallEP() 498 return hpcd->OUT_ep[ep_addr & 0x7F].is_stall; in USBD_LL_IsStallEP() 533 hal_status = HAL_PCD_EP_Transmit(pdev->pData, ep_addr, pbuf, size); in USBD_LL_Transmit() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/include/hal/usb/ |
| A D | sunxi_hal_udc.h | 33 typedef udc_errno_t (*udc_callback_t)(uint8_t ep_addr, udc_callback_event_t event, 43 int32_t hal_udc_ep_read(uint8_t ep_addr, void *buf, uint32_t len); 44 int32_t hal_udc_ep_write(uint8_t ep_addr, void *buf , uint32_t len); 45 void hal_udc_ep_enable(uint8_t ep_addr, uint16_t maxpacket, uint32_t ts_type); 46 void hal_udc_ep_disable(uint8_t ep_addr); 47 void hal_udc_ep_set_buf(uint8_t ep_addr, void *buf, uint32_t len);
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/device/core/Include/ |
| A D | usbd_core.h | 87 uint32_t usbd_ep_clear (usb_core_driver *udev, uint8_t ep_addr); 89 uint32_t usbd_ep_recev (usb_core_driver *udev, uint8_t ep_addr, uint8_t *pbuf, uint32_t len); 91 uint32_t usbd_ep_send (usb_core_driver *udev, uint8_t ep_addr, uint8_t *pbuf, uint32_t len); 93 uint32_t usbd_ep_stall (usb_core_driver *udev, uint8_t ep_addr); 95 uint32_t usbd_ep_stall_clear (usb_core_driver *udev, uint8_t ep_addr); 97 uint32_t usbd_fifo_flush (usb_core_driver *udev, uint8_t ep_addr);
|
| /bsp/hpmicro/libraries/hpm_sdk/components/usb/device/ |
| A D | hpm_usb_device.c | 194 uint8_t const epnum = config->ep_addr & 0x0f; in usb_device_edpt_open() 195 uint8_t const dir = (config->ep_addr & 0x80) >> 7; in usb_device_edpt_open() 223 uint8_t const epnum = ep_addr & 0x0f; in usb_device_edpt_xfer() 224 uint8_t const dir = (ep_addr & 0x80) >> 7; in usb_device_edpt_xfer() 285 void usb_device_edpt_stall(usb_device_handle_t *handle, uint8_t ep_addr) in usb_device_edpt_stall() argument 287 usb_dcd_edpt_stall(handle->regs, ep_addr); in usb_device_edpt_stall() 290 void usb_device_edpt_clear_stall(usb_device_handle_t *handle, uint8_t ep_addr) in usb_device_edpt_clear_stall() argument 292 usb_dcd_edpt_clear_stall(handle->regs, ep_addr); in usb_device_edpt_clear_stall() 297 return usb_dcd_edpt_check_stall(handle->regs, ep_addr); in usb_device_edpt_check_stall() 300 void usb_device_edpt_close(usb_device_handle_t *handle, uint8_t ep_addr) in usb_device_edpt_close() argument [all …]
|
| A D | hpm_usb_device.h | 135 bool usb_device_edpt_xfer(usb_device_handle_t *handle, uint8_t ep_addr, uint8_t *buffer, uint32_t t… 138 void usb_device_edpt_stall(usb_device_handle_t *handle, uint8_t ep_addr); 141 void usb_device_edpt_clear_stall(usb_device_handle_t *handle, uint8_t ep_addr); 144 bool usb_device_edpt_check_stall(usb_device_handle_t *handle, uint8_t ep_addr); 147 void usb_device_edpt_close(usb_device_handle_t *handle, uint8_t ep_addr);
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_hal_pcd.c | 1206 if ((ep_addr & 0x80U) == 0x80U) in HAL_PCD_EP_Open() 1217 ep->num = ep_addr & EP_ADDR_MSK; in HAL_PCD_EP_Open() 1249 if ((ep_addr & 0x80U) == 0x80U) in HAL_PCD_EP_Close() 1287 ep->num = ep_addr & EP_ADDR_MSK; in HAL_PCD_EP_Receive() 1332 ep->num = ep_addr & EP_ADDR_MSK; in HAL_PCD_EP_Transmit() 1361 if ((0x80U & ep_addr) == 0x80U) in HAL_PCD_EP_SetStall() 1368 ep = &hpcd->OUT_ep[ep_addr]; in HAL_PCD_EP_SetStall() 1373 ep->num = ep_addr & EP_ADDR_MSK; in HAL_PCD_EP_SetStall() 1399 if ((0x80U & ep_addr) == 0x80U) in HAL_PCD_EP_ClrStall() 1411 ep->num = ep_addr & EP_ADDR_MSK; in HAL_PCD_EP_ClrStall() [all …]
|
| A D | stm32l1xx_hal_pcd_ex.c | 81 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr, in HAL_PCDEx_PMAConfig() argument 87 if ((0x80U & ep_addr) == 0x80U) in HAL_PCDEx_PMAConfig() 89 ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; in HAL_PCDEx_PMAConfig() 93 ep = &hpcd->OUT_ep[ep_addr]; in HAL_PCDEx_PMAConfig()
|
| /bsp/hpmicro/libraries/hpm_sdk/components/usb/host/ |
| A D | hpm_usb_host.c | 123 ep_addr == usb_edpt_addr(qhd_pool[i].ep_number, qhd_pool[i].pid)) { in usb_host_qhd_get_from_addr() 424 uint8_t const epnum = usb_edpt_number(ep_addr); in usb_host_edpt_xfer() 425 uint8_t const dir = usb_edpt_dir(ep_addr); in usb_host_edpt_xfer() 455 p_qhd = usb_host_qhd_get_from_addr(handle, dev_addr, ep_addr); in usb_host_edpt_xfer() 546 hcd_qhd_t *p_qhd = usb_host_qhd_get_from_addr(handle, dev_addr, ep_addr); in usb_host_pipe_queue_xfer() 565 hcd_qhd_t *p_qhd = usb_host_qhd_get_from_addr(handle, dev_addr, ep_addr); in usb_host_pipe_xfer() 582 bool usb_host_edpt_busy(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr) in usb_host_edpt_busy() argument 584 hcd_qhd_t *p_qhd = usb_host_qhd_get_from_addr(handle, dev_addr, ep_addr); in usb_host_edpt_busy() 589 bool usb_host_edpt_stalled(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr) in usb_host_edpt_stalled() argument 591 hcd_qhd_t *p_qhd = usb_host_qhd_get_from_addr(handle, dev_addr, ep_addr); in usb_host_edpt_stalled() [all …]
|
| A D | hpm_usb_host.h | 281 bool usb_host_edpt_xfer(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr, uint8_t *buff… 284 bool usb_host_pipe_queue_xfer(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr, uint8_t… 285 bool usb_host_pipe_xfer(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr, uint8_t buffe… 286 bool usb_host_edpt_busy(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr); 287 bool usb_host_edpt_stalled(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr); 288 bool usb_host_edpt_clear_stall(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr);
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/usb/udc/ |
| A D | hal_udc.c | 537 idx = ep->ep_addr & 0x7f; in pio_read_fifo() 644 idx = ep->ep_addr & 0x7f; in pio_write_fifo() 1193 g_udc.ep0.ep_addr = 0; in ep_info_init() 1215 ep_idx = ep_addr & 0x7f; in udc_set_halt_ex() 1216 is_in = ep_addr & USB_DIR_IN; in udc_set_halt_ex() 1258 ep_idx = ep_addr & 0x7f; in hal_udc_ep_enable() 1259 is_in = ep_addr & USB_DIR_IN; in hal_udc_ep_enable() 1317 ep_idx = ep_addr & 0x7f; in hal_udc_ep_read() 1318 is_in = ep_addr & USB_DIR_IN; in hal_udc_ep_read() 1361 ep_idx = ep_addr & 0x7f; in hal_udc_ep_write() [all …]
|
| A D | udc.h | 86 uint8_t ep_addr; member 93 uint8_t ep_addr; member
|
| /bsp/microchip/samd51-adafruit-metro-m4/bsp/hal/include/ |
| A D | hpl_usb.h | 98 #define USB_EP_GET_DIR(ep_addr) ((ep_addr)&USB_EP_DIR) argument 101 #define USB_EP_GET_N(ep_addr) ((ep_addr)&USB_EP_N_MASK) argument
|
| /bsp/microchip/samd51-seeed-wio-terminal/bsp/hal/include/ |
| A D | hpl_usb.h | 98 #define USB_EP_GET_DIR(ep_addr) ((ep_addr)&USB_EP_DIR) argument 101 #define USB_EP_GET_N(ep_addr) ((ep_addr)&USB_EP_N_MASK) argument
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/driver/Source/ |
| A D | drv_usb_dev.c | 186 uint8_t ep_num = transc->ep_addr.num; in usb_transc0_active() 193 if (transc->ep_addr.dir) { in usb_transc0_active() 225 uint8_t ep_num = transc->ep_addr.num; in usb_transc_active() 228 if (transc->ep_addr.dir) { in usb_transc_active() 271 uint8_t ep_num = transc->ep_addr.num; in usb_transc_deactivate() 274 if (transc->ep_addr.dir) { in usb_transc_deactivate() 302 uint8_t ep_num = transc->ep_addr.num; in usb_transc_inxfer() 377 uint8_t ep_num = transc->ep_addr.num; in usb_transc_outxfer() 435 uint8_t ep_num = transc->ep_addr.num; in usb_transc_stall() 437 if (transc->ep_addr.dir) { in usb_transc_stall() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/drivers/inc/ |
| A D | hpm_usb_drv.h | 132 uint8_t ep_addr; member 535 uint8_t usb_dcd_edpt_get_type(USB_Type *ptr, uint8_t ep_addr); 551 void usb_dcd_edpt_stall(USB_Type *ptr, uint8_t ep_addr); 559 void usb_dcd_edpt_clear_stall(USB_Type *ptr, uint8_t ep_addr); 568 bool usb_dcd_edpt_check_stall(USB_Type *ptr, uint8_t ep_addr); 576 void usb_dcd_edpt_close(USB_Type *ptr, uint8_t ep_addr);
|
| /bsp/nxp/imx/imxrt/libraries/drivers/ |
| A D | drv_usbd.c | 248 rt_uint32_t ep_addr = (rt_uint32_t)callbackParam; in usb_device_endpoint_callback() local 259 else if(ep_addr == 0x00) in usb_device_endpoint_callback() 272 else if(ep_addr == 0x80) in usb_device_endpoint_callback() 285 else if(ep_addr & 0x80) in usb_device_endpoint_callback() 287 rt_usbd_ep_in_handler(udcd, ep_addr, message->length); in usb_device_endpoint_callback() 291 rt_usbd_ep_out_handler(udcd, ep_addr, message->length); in usb_device_endpoint_callback()
|
| /bsp/nxp/imx/imx6ull-smart/drivers/ |
| A D | drv_usbd.c | 275 rt_uint32_t ep_addr = (rt_uint32_t)callbackParam; in usb_device_endpoint_callback() local 286 else if(ep_addr == 0x00) in usb_device_endpoint_callback() 299 else if(ep_addr == 0x80) in usb_device_endpoint_callback() 312 else if(ep_addr & 0x80) in usb_device_endpoint_callback() 314 rt_usbd_ep_in_handler(udcd, ep_addr, message->length); in usb_device_endpoint_callback() 318 rt_usbd_ep_out_handler(udcd, ep_addr, message->length); in usb_device_endpoint_callback()
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/core/Source/ |
| A D | usbh_pipe.c | 111 uint8_t usbh_pipe_allocate (usb_core_driver *pudev, uint8_t ep_addr) in usbh_pipe_allocate() argument 117 pudev->host.pipe[pp_num].ep.dir = EP_DIR(ep_addr); in usbh_pipe_allocate() 118 pudev->host.pipe[pp_num].ep.num = EP_ID(ep_addr); in usbh_pipe_allocate()
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/class/hid/Source/ |
| A D | usbh_hid_core.c | 342 …hid_handler.ep_addr = puhost->dev_prop.cfg_desc_set.itf_desc_set[puhost->dev_prop.cur_itf][0].ep_d… in usbh_hid_itf_init() 359 uint8_t ep_addr = ep_desc->bEndpointAddress; in usbh_hid_itf_init() local 361 if (ep_addr & 0x80U) { in usbh_hid_itf_init() 362 hid_handler.ep_in = ep_addr; in usbh_hid_itf_init() 363 hid_handler.pipe_in = usbh_pipe_allocate (puhost->data, ep_addr); in usbh_hid_itf_init() 374 hid_handler.ep_out = ep_addr; in usbh_hid_itf_init() 375 hid_handler.pipe_out = usbh_pipe_allocate (puhost->data, ep_addr); in usbh_hid_itf_init() 507 if (USBH_OK == (usbh_clrfeature (puhost, hid->ep_addr, hid->pipe_in))) { in usbh_hid_handle()
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Inc/ |
| A D | stm32l1xx_hal_pcd.h | 330 HAL_StatusTypeDef HAL_PCD_EP_Open(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, 333 HAL_StatusTypeDef HAL_PCD_EP_Close(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); 334 HAL_StatusTypeDef HAL_PCD_EP_Receive(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, 337 HAL_StatusTypeDef HAL_PCD_EP_Transmit(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, 341 HAL_StatusTypeDef HAL_PCD_EP_SetStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); 342 HAL_StatusTypeDef HAL_PCD_EP_ClrStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); 343 HAL_StatusTypeDef HAL_PCD_EP_Flush(PCD_HandleTypeDef *hpcd, uint8_t ep_addr); 347 uint32_t HAL_PCD_EP_GetRxCount(PCD_HandleTypeDef *hpcd, uint8_t ep_addr);
|
| /bsp/allwinner/libraries/sunxi-hal/hal/test/usb/udc/ |
| A D | usb_msg.c | 215 udc_errno_t usb_msg_callback(uint8_t ep_addr, udc_callback_event_t event, void *data, uint32_t len) in usb_msg_callback() argument 225 ep_idx = ep_addr & 0x7f; in usb_msg_callback() 226 is_in = ep_addr & USB_DIR_IN; in usb_msg_callback()
|
| A D | usb_msg.h | 11 udc_errno_t usb_msg_callback(uint8_t ep_addr, udc_callback_event_t event,
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_usbd.c | 90 static void usb_opendevep(usb_core_instance *pdev, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_typ… in usb_opendevep() argument 95 tmp_1 = ep_addr >> 7; /* EP type, it is IN(=1) or OUT(=0) */ in usb_opendevep() 96 tmp_2 = ep_addr & 0x7FU; /* EP number */ in usb_opendevep() 124 static void usb_shutdevep(usb_core_instance *pdev, uint8_t ep_addr) in usb_shutdevep() argument 129 tmp_1 = ep_addr >> 7; /* EP type, it is IN(=1) or OUT(=0) */ in usb_shutdevep() 130 tmp_2 = ep_addr & 0x7FU; /* EP number */ in usb_shutdevep() 144 static void usb_readytorx(usb_core_instance *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t buf_len) in usb_readytorx() argument 149 tmp_1 = ep_addr & 0x7FU; /* EP number */ in usb_readytorx() 173 static void usb_deveptx(usb_core_instance *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t buf_len) in usb_deveptx() argument 178 tmp_1 = ep_addr & 0x7FU; /* EP number */ in usb_deveptx()
|