/hal_espressif-3.6.0/components/usb/test/hcd/ |
D | test_hcd_ctrl.c | 52 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… 65 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb_list[i])); 69 test_hcd_expect_pipe_event(default_pipe, HCD_PIPE_EVENT_URB_DONE); 73 urb_t *urb = hcd_urb_dequeue(default_pipe); 87 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb_list[i])); 97 urb_t *urb = hcd_urb_dequeue(default_pipe); 115 test_hcd_pipe_free(default_pipe); 147 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… 162 if (hcd_urb_enqueue(default_pipe, urb_list[i]) != ESP_OK) { 170 test_hcd_expect_pipe_event(default_pipe, HCD_PIPE_EVENT_ERROR_STALL); [all …]
|
D | test_hcd_port.c | 52 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… 65 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb_list[i])); 77 TEST_ASSERT_EQUAL(HCD_PIPE_STATE_ACTIVE, hcd_pipe_get_state(default_pipe)); 78 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_command(default_pipe, HCD_PIPE_CMD_HALT)); 80 TEST_ASSERT_EQUAL(HCD_PIPE_STATE_HALTED, hcd_pipe_get_state(default_pipe)); 81 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_command(default_pipe, HCD_PIPE_CMD_FLUSH)); 82 test_hcd_expect_pipe_event(default_pipe, HCD_PIPE_EVENT_URB_DONE); 87 urb_t *urb = hcd_urb_dequeue(default_pipe); 104 test_hcd_pipe_free(default_pipe); 143 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, TEST_DEV_ADDR, port_speed); /… [all …]
|
D | test_hcd_isoc.c | 52 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… variable 53 uint8_t dev_addr = test_hcd_enum_device(default_pipe); 95 test_hcd_pipe_free(default_pipe); 134 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… variable 135 uint8_t dev_addr = test_hcd_enum_device(default_pipe); 166 TEST_ASSERT_EQUAL(HCD_PIPE_STATE_ACTIVE, hcd_pipe_get_state(default_pipe)); 169 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_command(default_pipe, HCD_PIPE_CMD_HALT)); 171 TEST_ASSERT_EQUAL(HCD_PIPE_STATE_HALTED, hcd_pipe_get_state(default_pipe)); 174 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_command(default_pipe, HCD_PIPE_CMD_FLUSH)); 191 test_hcd_pipe_free(default_pipe);
|
D | test_hcd_bulk.c | 18 static void mock_msc_reset_req(hcd_pipe_handle_t default_pipe) in mock_msc_reset_req() argument 26 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in mock_msc_reset_req() 27 test_hcd_expect_pipe_event(default_pipe, HCD_PIPE_EVENT_URB_DONE); in mock_msc_reset_req() 28 TEST_ASSERT_EQUAL(urb, hcd_urb_dequeue(default_pipe)); in mock_msc_reset_req() 63 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… variable 64 uint8_t dev_addr = test_hcd_enum_device(default_pipe); 65 mock_msc_reset_req(default_pipe); 110 test_hcd_pipe_free(default_pipe);
|
D | test_hcd_common.c | 277 uint8_t test_hcd_enum_device(hcd_pipe_handle_t default_pipe) in test_hcd_enum_device() argument 286 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in test_hcd_enum_device() 287 test_hcd_expect_pipe_event(default_pipe, HCD_PIPE_EVENT_URB_DONE); in test_hcd_enum_device() 288 TEST_ASSERT_EQUAL(urb, hcd_urb_dequeue(default_pipe)); in test_hcd_enum_device() 293 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_update_mps(default_pipe, device_desc->bMaxPacketSize0)); in test_hcd_enum_device() 298 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in test_hcd_enum_device() 299 test_hcd_expect_pipe_event(default_pipe, HCD_PIPE_EVENT_URB_DONE); in test_hcd_enum_device() 300 TEST_ASSERT_EQUAL(urb, hcd_urb_dequeue(default_pipe)); in test_hcd_enum_device() 304 TEST_ASSERT_EQUAL(ESP_OK, hcd_pipe_update_dev_addr(default_pipe, ENUM_ADDR)); in test_hcd_enum_device() 309 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in test_hcd_enum_device() [all …]
|
D | test_hcd_intr.c | 49 …hcd_pipe_handle_t default_pipe = test_hcd_pipe_alloc(port_hdl, NULL, 0, port_speed); //Create a de… variable 50 uint8_t dev_addr = test_hcd_enum_device(default_pipe); 85 test_hcd_pipe_free(default_pipe);
|
D | test_hcd_common.h | 136 uint8_t test_hcd_enum_device(hcd_pipe_handle_t default_pipe);
|
/hal_espressif-3.6.0/components/usb/ |
D | usbh.c | 66 hcd_pipe_handle_t default_pipe; member 154 dev_obj->constant.default_pipe = default_pipe_hdl; in device_alloc() 189 ESP_ERROR_CHECK(hcd_pipe_free(dev_obj->constant.default_pipe)); in device_free() 418 ESP_ERROR_CHECK(hcd_pipe_command(dev_obj->constant.default_pipe, HCD_PIPE_CMD_HALT)); in usbh_process() 419 ESP_ERROR_CHECK(hcd_pipe_command(dev_obj->constant.default_pipe, HCD_PIPE_CMD_FLUSH)); in usbh_process() 425 urb_t *urb = hcd_urb_dequeue(dev_obj->constant.default_pipe); in usbh_process() 429 urb = hcd_urb_dequeue(dev_obj->constant.default_pipe); in usbh_process() 437 hcd_pipe_command(dev_obj->constant.default_pipe, HCD_PIPE_CMD_CLEAR); in usbh_process() 727 if (hcd_pipe_get_state(dev_obj->constant.default_pipe) != HCD_PIPE_STATE_ACTIVE) { in usbh_dev_submit_ctrl_urb() 731 ret = hcd_urb_enqueue(dev_obj->constant.default_pipe, urb); in usbh_dev_submit_ctrl_urb() [all …]
|