/hal_espressif-3.6.0/components/usb/test/hcd/ |
D | test_hcd_port.c | 47 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 48 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 52 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… 71 test_hcd_expect_port_event(port_hdl, HCD_PORT_EVENT_DISCONNECTION); 72 TEST_ASSERT_EQUAL(HCD_PORT_EVENT_DISCONNECTION, hcd_port_handle_event(port_hdl)); 73 TEST_ASSERT_EQUAL(HCD_PORT_STATE_RECOVERY, hcd_port_get_state(port_hdl)); 107 TEST_ASSERT_EQUAL(ESP_OK, hcd_port_recover(port_hdl)); 108 TEST_ASSERT_EQUAL(HCD_PORT_STATE_NOT_POWERED, hcd_port_get_state(port_hdl)); 111 test_hcd_wait_for_conn(port_hdl); 112 test_hcd_wait_for_disconn(port_hdl, false); [all …]
|
D | test_hcd_common.c | 29 hcd_port_handle_t port_hdl; member 50 static bool port_callback(hcd_port_handle_t port_hdl, hcd_port_event_t port_event, void *user_arg, … in port_callback() argument 53 void *port_ctx = hcd_port_get_context(port_hdl); in port_callback() 57 .port_hdl = port_hdl, in port_callback() 94 void test_hcd_expect_port_event(hcd_port_handle_t port_hdl, hcd_port_event_t expected_event) in test_hcd_expect_port_event() argument 97 QueueHandle_t port_evt_queue = (QueueHandle_t)hcd_port_get_context(port_hdl); in test_hcd_expect_port_event() 103 TEST_ASSERT_EQUAL(port_hdl, msg.port_hdl); in test_hcd_expect_port_event() 121 int test_hcd_get_num_port_events(hcd_port_handle_t port_hdl) in test_hcd_get_num_port_events() argument 124 QueueHandle_t port_evt_queue = (QueueHandle_t)hcd_port_get_context(port_hdl); in test_hcd_get_num_port_events() 157 hcd_port_handle_t port_hdl; in test_hcd_setup() local [all …]
|
D | test_hcd_isoc.c | 45 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 46 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 48 TEST_ASSERT_EQUAL(ESP_OK, hcd_port_set_fifo_bias(port_hdl, HCD_PORT_FIFO_BIAS_PTX)); 52 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… 56 …hcd_pipe_handle_t isoc_out_pipe = test_hcd_pipe_alloc(port_hdl, &mock_isoc_out_ep_desc, dev_addr +… 97 test_hcd_wait_for_disconn(port_hdl, false); 98 test_hcd_teardown(port_hdl); 127 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 128 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 130 TEST_ASSERT_EQUAL(ESP_OK, hcd_port_set_fifo_bias(port_hdl, HCD_PORT_FIFO_BIAS_PTX)); [all …]
|
D | test_hcd_ctrl.c | 47 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 48 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 52 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… 117 test_hcd_wait_for_disconn(port_hdl, false); 118 test_hcd_teardown(port_hdl); 142 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 143 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 147 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… 224 test_hcd_wait_for_disconn(port_hdl, false); 225 test_hcd_teardown(port_hdl); [all …]
|
D | test_hcd_common.h | 23 void test_hcd_expect_port_event(hcd_port_handle_t port_hdl, hcd_port_event_t expected_event); 39 int test_hcd_get_num_port_events(hcd_port_handle_t port_hdl); 63 void test_hcd_teardown(hcd_port_handle_t port_hdl); 73 usb_speed_t test_hcd_wait_for_conn(hcd_port_handle_t port_hdl); 83 void test_hcd_wait_for_disconn(hcd_port_handle_t port_hdl, bool already_disabled); 96 hcd_pipe_handle_t test_hcd_pipe_alloc(hcd_port_handle_t port_hdl, const usb_ep_desc_t *ep_desc, uin…
|
D | test_hcd_intr.c | 44 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 45 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 49 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… 53 …hcd_pipe_handle_t intr_pipe = test_hcd_pipe_alloc(port_hdl, &mock_hid_mouse_in_ep_desc, dev_addr, … 87 test_hcd_wait_for_disconn(port_hdl, false); 88 test_hcd_teardown(port_hdl);
|
D | test_hcd_bulk.c | 58 hcd_port_handle_t port_hdl = test_hcd_setup(); //Setup the HCD and port 59 usb_speed_t port_speed = test_hcd_wait_for_conn(port_hdl); //Trigger a connection 63 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… 68 …hcd_pipe_handle_t bulk_out_pipe = test_hcd_pipe_alloc(port_hdl, &mock_msc_scsi_bulk_out_ep_desc, d… 69 …hcd_pipe_handle_t bulk_in_pipe = test_hcd_pipe_alloc(port_hdl, &mock_msc_scsi_bulk_in_ep_desc, dev… 112 test_hcd_wait_for_disconn(port_hdl, false); 113 test_hcd_teardown(port_hdl);
|
/hal_espressif-3.6.0/components/usb/private_include/ |
D | hcd.h | 131 typedef bool (*hcd_port_callback_t)(hcd_port_handle_t port_hdl, hcd_port_event_t port_event, void *… 229 … hcd_port_init(int port_number, const hcd_port_config_t *port_config, hcd_port_handle_t *port_hdl); 241 esp_err_t hcd_port_deinit(hcd_port_handle_t port_hdl); 263 esp_err_t hcd_port_command(hcd_port_handle_t port_hdl, hcd_port_cmd_t command); 271 hcd_port_state_t hcd_port_get_state(hcd_port_handle_t port_hdl); 286 esp_err_t hcd_port_get_speed(hcd_port_handle_t port_hdl, usb_speed_t *speed); 305 hcd_port_event_t hcd_port_handle_event(hcd_port_handle_t port_hdl); 317 esp_err_t hcd_port_recover(hcd_port_handle_t port_hdl); 325 void *hcd_port_get_context(hcd_port_handle_t port_hdl); 340 esp_err_t hcd_port_set_fifo_bias(hcd_port_handle_t port_hdl, hcd_port_fifo_bias_t bias); [all …]
|
D | usbh.h | 88 typedef void (*usbh_hub_req_cb_t)(hcd_port_handle_t port_hdl, usbh_hub_req_t hub_req, void *arg); 345 esp_err_t usbh_hub_add_dev(hcd_port_handle_t port_hdl, usb_speed_t dev_speed, usb_device_handle_t *…
|
/hal_espressif-3.6.0/components/usb/ |
D | hub.c | 229 static bool root_port_callback(hcd_port_handle_t port_hdl, hcd_port_event_t port_event, void *user_… 255 static void usbh_hub_req_callback(hcd_port_handle_t port_hdl, usbh_hub_req_t hub_req, void *arg); 700 static bool root_port_callback(hcd_port_handle_t port_hdl, hcd_port_event_t port_event, void *user_… in root_port_callback() argument 718 static void usbh_hub_req_callback(hcd_port_handle_t port_hdl, usbh_hub_req_t hub_req, void *arg) in usbh_hub_req_callback() argument 721 assert(port_hdl == p_hub_driver_obj->constant.root_port_hdl); in usbh_hub_req_callback() 889 hcd_port_handle_t port_hdl; in hub_install() local 890 ret = hcd_port_init(HUB_ROOT_PORT_NUM, &port_config, &port_hdl); in hub_install() 898 hub_driver_obj->constant.root_port_hdl = port_hdl; in hub_install() 915 ESP_ERROR_CHECK(hcd_port_deinit(port_hdl)); in hub_install()
|
D | usbh.c | 67 hcd_port_handle_t port_hdl; member 129 static esp_err_t device_alloc(hcd_port_handle_t port_hdl, usb_speed_t speed, device_t **dev_obj_ret) in device_alloc() argument 148 ret = hcd_pipe_alloc(port_hdl, &pipe_config, &default_pipe_hdl); in device_alloc() 155 dev_obj->constant.port_hdl = port_hdl; in device_alloc() 453 hcd_port_handle_t port_hdl = dev_obj->constant.port_hdl; in usbh_process() local 461 …p_usbh_obj->constant.hub_req_cb(port_hdl, USBH_HUB_REQ_PORT_RECOVER, p_usbh_obj->constant.hub_req_… in usbh_process() 466 …p_usbh_obj->constant.hub_req_cb(dev_obj->constant.port_hdl, USBH_HUB_REQ_PORT_DISABLE, p_usbh_obj-… in usbh_process() 763 ret = hcd_pipe_alloc(dev_obj->constant.port_hdl, &pipe_config, &pipe_hdl); in usbh_ep_alloc() 902 esp_err_t usbh_hub_add_dev(hcd_port_handle_t port_hdl, usb_speed_t dev_speed, usb_device_handle_t *… in usbh_hub_add_dev() argument 908 ret = device_alloc(port_hdl, dev_speed, &dev_obj); in usbh_hub_add_dev()
|
D | hcd.c | 1303 …t hcd_port_init(int port_number, const hcd_port_config_t *port_config, hcd_port_handle_t *port_hdl) in hcd_port_init() argument 1305 HCD_CHECK(port_number > 0 && port_config != NULL && port_hdl != NULL, ESP_ERR_INVALID_ARG); in hcd_port_init() 1349 *port_hdl = (hcd_port_handle_t)port_obj; in hcd_port_init() 1356 esp_err_t hcd_port_deinit(hcd_port_handle_t port_hdl) in hcd_port_deinit() argument 1358 port_t *port = (port_t *)port_hdl; in hcd_port_deinit() 1374 esp_err_t hcd_port_command(hcd_port_handle_t port_hdl, hcd_port_cmd_t command) in hcd_port_command() argument 1377 port_t *port = (port_t *)port_hdl; in hcd_port_command() 1415 hcd_port_state_t hcd_port_get_state(hcd_port_handle_t port_hdl) in hcd_port_get_state() argument 1417 port_t *port = (port_t *)port_hdl; in hcd_port_get_state() 1425 esp_err_t hcd_port_get_speed(hcd_port_handle_t port_hdl, usb_speed_t *speed) in hcd_port_get_speed() argument [all …]
|