Home
last modified time | relevance | path

Searched refs:ept_num (Results 1 – 17 of 17) sorted by relevance

/bsp/at32/libraries/usbd_library/src/
A Dusbd_int.c112 uint32_t ept_val = usbx->ept[ept_num]; in usbd_eptn_handler()
119 ept_info = &udev->ept_in[ept_num]; in usbd_eptn_handler()
122 USB_CLEAR_TXTC(ept_num); in usbd_eptn_handler()
152 ept_info = &udev->ept_out[ept_num]; in usbd_eptn_handler()
168 usbd_core_setup_handler(udev, ept_num); in usbd_eptn_handler()
174 USB_CLEAR_RXTC(ept_num); in usbd_eptn_handler()
179 length = USB_GET_RX_LEN(ept_num); in usbd_eptn_handler()
188 length = USB_DBUF0_GET_LEN(ept_num); in usbd_eptn_handler()
193 length = USB_DBUF1_GET_LEN(ept_num); in usbd_eptn_handler()
225 usb_ept_number_type ept_num = USB_EPT0; in usbd_ept_loop_handler() local
[all …]
A Dusbd_core.c131 void usbd_core_setup_handler(usbd_core_type *udev, uint8_t ept_num) in usbd_core_setup_handler() argument
/bsp/at32/libraries/usbotg_library/src/
A Dusbd_int.c155 usb_ept_info *ept_info = &udev->ept_in[ept_num]; in usb_write_empty_txfifo()
195 uint32_t ept_num = 0, ept_int; in usbd_inept_handler() local
217 ept_info = &udev->ept_in[ept_num]; in usbd_inept_handler()
220 if((ept_num == 0) && (udev->ept_in[ept_num].total_len == 0)) in usbd_inept_handler()
257 usb_write_empty_txfifo(udev, ept_num); in usbd_inept_handler()
260 ept_num ++; in usbd_inept_handler()
273 uint32_t ept_num = 0, ept_int; in usbd_outept_handler() local
288 ept_info = &udev->ept_out[ept_num]; in usbd_outept_handler()
326 if((ept_num == 0) && (udev->ept_out[ept_num].total_len == 0)) in usbd_outept_handler()
339 if((ept_num == 0) && (udev->ept_out[ept_num].total_len == 0)) in usbd_outept_handler()
[all …]
A Dusbh_core.c677 uint8_t ept_num, in usbh_hc_open() argument
696 uhost->hch[chn].dir = (ept_num & 0x80)?1:0;; in usbh_hc_open()
702 uhost->hch[chn].ept_num = ept_num; in usbh_hc_open()
706 ept_num, dev_address, in usbh_hc_open()
A Dusb_core.c61 otgdev->cfg.ept_num = USB_EPT_MAX_NUM; in usb_core_config()
A Dusbh_ctrl.c864 usb_sts_type usbh_set_interface(usbh_core_type *uhost, uint8_t ept_num, uint8_t altsetting) in usbh_set_interface() argument
874 uhost->ctrl.setup.wIndex = ept_num; in usbh_set_interface()
931 usb_sts_type usbh_clear_ept_feature(usbh_core_type *uhost, uint8_t ept_num, uint8_t hc_num) in usbh_clear_ept_feature() argument
943 uhost->ctrl.setup.wIndex = ept_num; in usbh_clear_ept_feature()
A Dusbd_core.c137 void usbd_core_setup_handler(usbd_core_type *udev, uint8_t ept_num) in usbd_core_setup_handler() argument
701 void usbd_flush_tx_fifo(usbd_core_type *udev, uint8_t ept_num) in usbd_flush_tx_fifo() argument
704 usb_flush_tx_fifo(udev->usb_reg, ept_num & 0x1F); in usbd_flush_tx_fifo()
/bsp/at32/libraries/usbotg_library/inc/
A Dusbd_core.h108 …usb_sts_type (*in_handler)(void *udev, uint8_t ept_num); /*!< usb class in transfer comp…
109 …usb_sts_type (*out_handler)(void *udev, uint8_t ept_num); /*!< usb class out transfer com…
149 void usbd_core_in_handler(usbd_core_type *udev, uint8_t ept_num);
150 void usbd_core_out_handler(usbd_core_type *udev, uint8_t ept_num);
151 void usbd_core_setup_handler(usbd_core_type *udev, uint8_t ept_num);
162 void usbd_ept_send(usbd_core_type *udev, uint8_t ept_num, uint8_t *buffer, uint16_t len);
163 void usbd_ept_recv(usbd_core_type *udev, uint8_t ept_num, uint8_t *buffer, uint16_t len);
172 void usbd_flush_tx_fifo(usbd_core_type *udev, uint8_t ept_num);
A Dusbd_int.h62 void usb_write_empty_txfifo(usbd_core_type *udev, uint32_t ept_num);
67 void usbd_data_in_stage_callback(usbd_core_type *udev, uint32_t ept_num);
69 void usbd_data_out_stage_callback(usbd_core_type *udev, uint32_t ept_num);
A Dusbh_ctrl.h83 usb_sts_type usbh_set_interface(usbh_core_type *uhost, uint8_t ept_num, uint8_t altsetting);
86 usb_sts_type usbh_clear_ept_feature(usbh_core_type *uhost, uint8_t ept_num, uint8_t hc_num);
A Dusb_core.h68 …uint8_t ept_num; /*!< the otg device support numb… member
A Dusbh_core.h342 uint8_t ept_num,
/bsp/at32/libraries/usbd_library/inc/
A Dusbd_core.h93 …usb_sts_type (*in_handler)(void *udev, uint8_t ept_num); /*!< usb class in transfer comp…
94 …usb_sts_type (*out_handler)(void *udev, uint8_t ept_num); /*!< usb class out transfer com…
139 void usbd_core_in_handler(usbd_core_type *udev, uint8_t ept_num);
140 void usbd_core_out_handler(usbd_core_type *udev, uint8_t ept_num);
141 void usbd_core_setup_handler(usbd_core_type *udev, uint8_t ept_num);
151 void usbd_ept_send(usbd_core_type *udev, uint8_t ept_num, uint8_t *buffer, uint16_t len);
152 void usbd_ept_recv(usbd_core_type *udev, uint8_t ept_num, uint8_t *buffer, uint16_t len);
A Dusbd_int.h48 void usbd_eptn_handler(usbd_core_type *udev, usb_ept_number_type ept_num);
57 void usbd_data_in_stage_callback(usbd_core_type *udev, uint32_t ept_num);
59 void usbd_data_out_stage_callback(usbd_core_type *udev, uint32_t ept_num);
/bsp/at32/libraries/rt_drivers/
A Ddrv_usbd.c81 void usbd_data_in_stage_callback(usbd_core_type *udev, uint32_t ept_num) in usbd_data_in_stage_callback() argument
85 if (ept_num == 0) in usbd_data_in_stage_callback()
91 rt_usbd_ep_in_handler(udcd, 0x80 | ept_num, udev->ept_in[ept_num].trans_len); in usbd_data_in_stage_callback()
101 void usbd_data_out_stage_callback(usbd_core_type *udev, uint32_t ept_num) in usbd_data_out_stage_callback() argument
105 if (ept_num != 0) in usbd_data_out_stage_callback()
107 rt_usbd_ep_out_handler(udcd, ept_num, udev->ept_out[ept_num].trans_len); in usbd_data_out_stage_callback()
A Ddrv_usbotgd.c102 void usbd_data_in_stage_callback(usbd_core_type *udev, uint32_t ept_num) in usbd_data_in_stage_callback() argument
106 if (ept_num == 0) in usbd_data_in_stage_callback()
112 rt_usbd_ep_in_handler(udcd, 0x80 | ept_num, udev->ept_in[ept_num].trans_len); in usbd_data_in_stage_callback()
122 void usbd_data_out_stage_callback(usbd_core_type *udev, uint32_t ept_num) in usbd_data_out_stage_callback() argument
126 if (ept_num != 0) in usbd_data_out_stage_callback()
128 rt_usbd_ep_out_handler(udcd, ept_num, udev->ept_out[ept_num].trans_len); in usbd_data_out_stage_callback()
/bsp/ht32/libraries/usbd_library/src/
A Dusbd_code.c277 uint8_t ept_num = 0; in usbd_ept_init() local
279 for (ept_num = 0; ept_num < 8; ept_num++) in usbd_ept_init()
281 ept_info = &udev->ept_io[ept_num]; in usbd_ept_init()

Completed in 37 milliseconds