Home
last modified time | relevance | path

Searched refs:uhost (Results 1 – 7 of 7) sorted by relevance

/bsp/at32/libraries/usbotg_library/src/
A Dusbh_core.c455 usbh_free_channel(uhost, uhost->ctrl.hch_in); in usbh_cfg_default_init()
456 usbh_free_channel(uhost, uhost->ctrl.hch_out); in usbh_cfg_default_init()
833 usbh_hc_open(uhost, uhost->ctrl.hch_in,0x80, in usbh_enum_handler()
839 usbh_hc_open(uhost, uhost->ctrl.hch_out,0x00, in usbh_enum_handler()
863 usbh_set_address(uhost, uhost->dev.address); in usbh_enum_handler()
868 usbh_hc_open(uhost, uhost->ctrl.hch_in,0x80, in usbh_enum_handler()
1023 uhost->user_handler->user_speed(uhost->dev.speed); in usbh_attached()
1026 usbh_hc_open(uhost, uhost->ctrl.hch_in,0x80, in usbh_attached()
1032 usbh_hc_open(uhost, uhost->ctrl.hch_out,0x00, in usbh_attached()
1162 uhost->class_handler->reset_handler(uhost); in usbh_disconnect()
[all …]
A Dusbh_ctrl.c95 uhost->hch[uhost->ctrl.hch_out].toggle_out = 1; in usbh_ctrl_send_data()
97 if(uhost->hch[uhost->ctrl.hch_out].toggle_out == 0) in usbh_ctrl_send_data()
132 urb_state = uhost->urb_state[uhost->ctrl.hch_out]; in usbh_ctrl_setup_wait_handler()
160 uhost->ctrl.timer = uhost->timer; in usbh_ctrl_setup_wait_handler()
190 usbh_ctrl_recv_data(uhost, uhost->ctrl.buffer, in usbh_ctrl_data_in_handler()
208 urb_state = uhost->urb_state[uhost->ctrl.hch_in]; in usbh_ctrl_data_in_wait_handler()
244 uhost->hch[uhost->ctrl.hch_out].toggle_out = 1; in usbh_ctrl_data_out_handler()
246 usbh_ctrl_send_data(uhost, uhost->ctrl.buffer, in usbh_ctrl_data_out_handler()
318 urb_state = uhost->urb_state[uhost->ctrl.hch_in]; in usbh_ctrl_status_in_wait_handler()
353 uhost->hch[uhost->ctrl.hch_out].toggle_out ^= 1; in usbh_ctrl_status_out_handler()
[all …]
A Dusbh_int.c52 usbh_hch_handler(uhost); in usbh_irq_handler()
120 uhost->timer ++; in usbh_sof_handler()
136 uhost->conn_sts = 0; in usbh_disconnect_handler()
207 usbd_notify_urbchange_callback(uhost, chn, uhost->urb_state[chn]); in usbh_hch_in_handler()
212 usbd_notify_urbchange_callback(uhost, chn, uhost->urb_state[chn]); in usbh_hch_in_handler()
216 if(((uhost->hch[chn].trans_len / uhost->hch[chn].maxpacket) & 1) != 0) in usbh_hch_in_handler()
263 usbd_notify_urbchange_callback(uhost, chn, uhost->urb_state[chn]); in usbh_hch_in_handler()
270 uhost->err_cnt[chn] ++; in usbh_hch_in_handler()
387 else if(uhost->hch[chn].state == HCH_NAK || uhost->hch[chn].state == HCH_NYET) in usbh_hch_out_handler()
403 usbd_notify_urbchange_callback(uhost, chn, uhost->urb_state[chn]); in usbh_hch_out_handler()
[all …]
/bsp/at32/libraries/usbotg_library/inc/
A Dusbh_ctrl.h47 usb_sts_type usbh_ctrl_recv_data(usbh_core_type *uhost, uint8_t *buffer,
51 usb_sts_type usbh_ctrl_setup_handler(usbh_core_type *uhost);
53 usb_sts_type usbh_ctrl_data_in_handler(usbh_core_type *uhost);
55 usb_sts_type usbh_ctrl_data_out_handler(usbh_core_type *uhost);
57 usb_sts_type usbh_ctrl_status_in_handler(usbh_core_type *uhost);
59 usb_sts_type usbh_ctrl_status_out_handler(usbh_core_type *uhost);
61 usb_sts_type usbh_ctrl_error_handler(usbh_core_type *uhost);
62 usb_sts_type usbh_ctrl_stall_handler(usbh_core_type *uhost);
63 usb_sts_type usbh_ctrl_complete_handler(usbh_core_type *uhost);
64 usb_sts_type usbh_ctrl_transfer_loop(usbh_core_type *uhost);
[all …]
A Dusbh_core.h311 void usbh_free_channel(usbh_core_type *uhost, uint8_t index);
312 uint16_t usbh_get_free_channel(usbh_core_type *uhost);
327 usb_sts_type usbh_cfg_default_init(usbh_core_type *uhost);
328 void usbh_enter_suspend(usbh_core_type *uhost);
329 void usbh_resume(usbh_core_type *uhost);
333 usb_sts_type usbh_ctrl_result_check(usbh_core_type *uhost,
337 void usbh_reset_port(usbh_core_type *uhost);
338 usb_sts_type usbh_loop_handler(usbh_core_type *uhost);
339 void usbh_ch_disable(usbh_core_type *uhost, uint8_t chn);
340 void usbh_hc_open(usbh_core_type *uhost,
[all …]
A Dusbh_int.h48 void usbh_hch_handler(usbh_core_type *uhost);
49 void usbh_port_handler(usbh_core_type *uhost);
50 void usbh_disconnect_handler(usbh_core_type *uhost);
51 void usbh_hch_in_handler(usbh_core_type *uhost, uint8_t chn);
52 void usbh_hch_out_handler(usbh_core_type *uhost, uint8_t chn);
53 void usbh_rx_qlvl_handler(usbh_core_type *uhost);
54 void usbh_wakeup_handler(usbh_core_type *uhost);
55 void usbh_sof_handler(usbh_core_type *uhost);
56 void usbh_connect_callback(usbh_core_type *uhost);
57 void usbh_disconnect_callback(usbh_core_type *uhost);
[all …]
/bsp/at32/libraries/rt_drivers/
A Ddrv_usbotgh.c75 void usbh_connect_callback(usbh_core_type *uhost) in usbh_connect_callback() argument
77 uhcd_t hcd = (uhcd_t)uhost->pdata; in usbh_connect_callback()
86 void usbh_disconnect_callback(usbh_core_type *uhost) in usbh_disconnect_callback() argument
88 uhcd_t hcd = (uhcd_t)uhost->pdata; in usbh_disconnect_callback()
97 void usbd_notify_urbchange_callback(usbh_core_type *uhost, uint8_t chnum, urb_sts_type sts) in usbd_notify_urbchange_callback() argument

Completed in 19 milliseconds