Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/usb/private_include/
Dhcd.h138 typedef bool (*hcd_pipe_callback_t)(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t pipe_event, void *…
362 …loc(hcd_port_handle_t port_hdl, const hcd_pipe_config_t *pipe_config, hcd_pipe_handle_t *pipe_hdl);
376 esp_err_t hcd_pipe_free(hcd_pipe_handle_t pipe_hdl);
393 esp_err_t hcd_pipe_update_mps(hcd_pipe_handle_t pipe_hdl, int mps);
410 esp_err_t hcd_pipe_update_dev_addr(hcd_pipe_handle_t pipe_hdl, uint8_t dev_addr);
426 esp_err_t hcd_pipe_update_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_callback_t callback, void *…
440 esp_err_t hcd_pipe_set_persist_reset(hcd_pipe_handle_t pipe_hdl);
448 void *hcd_pipe_get_context(hcd_pipe_handle_t pipe_hdl);
456 hcd_pipe_state_t hcd_pipe_get_state(hcd_pipe_handle_t pipe_hdl);
470 esp_err_t hcd_pipe_command(hcd_pipe_handle_t pipe_hdl, hcd_pipe_cmd_t command);
[all …]
/hal_espressif-3.6.0/components/usb/test/hcd/
Dtest_hcd_common.c34 hcd_pipe_handle_t pipe_hdl; member
75 static bool pipe_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t pipe_event, void *user_arg, … in pipe_callback() argument
79 .pipe_hdl = pipe_hdl, in pipe_callback()
108 void test_hcd_expect_pipe_event(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t expected_event) in test_hcd_expect_pipe_event() argument
111 QueueHandle_t pipe_evt_queue = (QueueHandle_t)hcd_pipe_get_context(pipe_hdl); in test_hcd_expect_pipe_event()
117 TEST_ASSERT_EQUAL(pipe_hdl, msg.pipe_hdl); in test_hcd_expect_pipe_event()
129 int test_hcd_get_num_pipe_events(hcd_pipe_handle_t pipe_hdl) in test_hcd_get_num_pipe_events() argument
132 QueueHandle_t pipe_evt_queue = (QueueHandle_t)hcd_pipe_get_context(pipe_hdl); in test_hcd_get_num_pipe_events()
239 hcd_pipe_handle_t pipe_hdl; in test_hcd_pipe_alloc() local
240 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_alloc(port_hdl, &pipe_config, &pipe_hdl)); in test_hcd_pipe_alloc()
[all …]
Dtest_hcd_common.h31 void test_hcd_expect_pipe_event(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t expected_event);
47 int test_hcd_get_num_pipe_events(hcd_pipe_handle_t pipe_hdl);
103 void test_hcd_pipe_free(hcd_pipe_handle_t pipe_hdl);
/hal_espressif-3.6.0/components/usb/
Dusbh.c215 static bool default_pipe_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t pipe_event, void *us… in default_pipe_callback() argument
762 hcd_pipe_handle_t pipe_hdl; in usbh_ep_alloc() local
763 ret = hcd_pipe_alloc(dev_obj->constant.port_hdl, &pipe_config, &pipe_hdl); in usbh_ep_alloc()
784 dev_obj->mux_protected.ep_in[addr - 1] = pipe_hdl; in usbh_ep_alloc()
787 dev_obj->mux_protected.ep_out[addr - 1] = pipe_hdl; in usbh_ep_alloc()
797 *pipe_hdl_ret = pipe_hdl; in usbh_ep_alloc()
802 ESP_ERROR_CHECK(hcd_pipe_free(pipe_hdl)); in usbh_ep_alloc()
815 hcd_pipe_handle_t pipe_hdl; in usbh_ep_free() local
822 pipe_hdl = dev_obj->mux_protected.ep_in[addr - 1]; in usbh_ep_free()
831 pipe_hdl = dev_obj->mux_protected.ep_out[addr - 1]; in usbh_ep_free()
[all …]
Dhcd.c1817 …lloc(hcd_port_handle_t port_hdl, const hcd_pipe_config_t *pipe_config, hcd_pipe_handle_t *pipe_hdl) in hcd_pipe_alloc() argument
1819 HCD_CHECK(port_hdl != NULL && pipe_config != NULL && pipe_hdl != NULL, ESP_ERR_INVALID_ARG); in hcd_pipe_alloc()
1896 *pipe_hdl = (hcd_pipe_handle_t)pipe; in hcd_pipe_alloc()
1908 esp_err_t hcd_pipe_free(hcd_pipe_handle_t pipe_hdl) in hcd_pipe_free() argument
1910 pipe_t *pipe = (pipe_t *)pipe_hdl; in hcd_pipe_free()
1932 esp_err_t hcd_pipe_update_mps(hcd_pipe_handle_t pipe_hdl, int mps) in hcd_pipe_update_mps() argument
1934 pipe_t *pipe = (pipe_t *)pipe_hdl; in hcd_pipe_update_mps()
1948 esp_err_t hcd_pipe_update_dev_addr(hcd_pipe_handle_t pipe_hdl, uint8_t dev_addr) in hcd_pipe_update_dev_addr() argument
1950 pipe_t *pipe = (pipe_t *)pipe_hdl; in hcd_pipe_update_dev_addr()
1964 esp_err_t hcd_pipe_update_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_callback_t callback, void *… in hcd_pipe_update_callback() argument
[all …]
Dusb_host.c69 hcd_pipe_handle_t pipe_hdl; member
336 static bool pipe_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t pipe_event, void *user_arg, … in pipe_callback() argument
586 ESP_ERROR_CHECK(hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_FLUSH)); in _handle_pending_ep()
591 urb_t *urb = hcd_urb_dequeue(ep_obj->constant.pipe_hdl); in _handle_pending_ep()
595 urb = hcd_urb_dequeue(ep_obj->constant.pipe_hdl); in _handle_pending_ep()
931 hcd_pipe_handle_t pipe_hdl; in endpoint_alloc() local
932 ret = usbh_ep_alloc(dev_hdl, &ep_config, &pipe_hdl); in endpoint_alloc()
937 ep_obj->constant.pipe_hdl = pipe_hdl; in endpoint_alloc()
1171 ret = hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_HALT); in usb_host_endpoint_halt()
1185 ret = hcd_pipe_command(ep_obj->constant.pipe_hdl, HCD_PIPE_CMD_FLUSH); in usb_host_endpoint_flush()
[all …]
Dhub.c243 static bool enum_dflt_pipe_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t pipe_event, void *…
709 static bool enum_dflt_pipe_callback(hcd_pipe_handle_t pipe_hdl, hcd_pipe_event_t pipe_event, void *… in enum_dflt_pipe_callback() argument