/hal_espressif-3.6.0/components/usb/private_include/ |
D | usbh.h | 72 typedef void (*usbh_ctrl_xfer_cb_t)(usb_device_handle_t dev_hdl, urb_t *urb, void *arg); 80 typedef void (*usbh_event_cb_t)(usb_device_handle_t dev_hdl, usbh_event_t usbh_event, void *arg); 191 esp_err_t usbh_dev_open(uint8_t dev_addr, usb_device_handle_t *dev_hdl); 201 esp_err_t usbh_dev_close(usb_device_handle_t dev_hdl); 225 esp_err_t usbh_dev_get_addr(usb_device_handle_t dev_hdl, uint8_t *dev_addr); 235 esp_err_t usbh_dev_get_info(usb_device_handle_t dev_hdl, usb_device_info_t *dev_info); 246 esp_err_t usbh_dev_get_desc(usb_device_handle_t dev_hdl, const usb_device_desc_t **dev_desc_ret); 258 esp_err_t usbh_dev_get_config_desc(usb_device_handle_t dev_hdl, const usb_config_desc_t **config_de… 267 esp_err_t usbh_dev_submit_ctrl_urb(usb_device_handle_t dev_hdl, urb_t *urb); 286 esp_err_t usbh_ep_alloc(usb_device_handle_t dev_hdl, usbh_ep_config_t *ep_config, hcd_pipe_handle_t… [all …]
|
/hal_espressif-3.6.0/components/usb/ |
D | usb_host.c | 83 usb_device_handle_t dev_hdl; member 281 static void ctrl_xfer_callback(usb_device_handle_t dev_hdl, urb_t *urb, void *arg) in ctrl_xfer_callback() argument 294 static void dev_event_callback(usb_device_handle_t dev_hdl, usbh_event_t usbh_event, void *arg) in dev_event_callback() argument 301 ESP_ERROR_CHECK(usbh_dev_get_addr(dev_hdl, &dev_addr)); in dev_event_callback() 312 ESP_ERROR_CHECK(usbh_dev_get_addr(dev_hdl, &dev_addr)); in dev_event_callback() 315 .dev_gone.dev_hdl = dev_hdl, in dev_event_callback() 800 usb_device_handle_t dev_hdl; in usb_host_device_open() local 801 ret = usbh_dev_open(dev_addr, &dev_hdl); in usb_host_device_open() 817 *dev_hdl_ret = dev_hdl; in usb_host_device_open() 822 ESP_ERROR_CHECK(usbh_dev_close(dev_hdl)); in usb_host_device_open() [all …]
|
D | usbh.c | 524 esp_err_t usbh_dev_open(uint8_t dev_addr, usb_device_handle_t *dev_hdl) in usbh_dev_open() argument 526 USBH_CHECK(dev_hdl != NULL, ESP_ERR_INVALID_ARG); in usbh_dev_open() 552 *dev_hdl = (usb_device_handle_t)found_dev_obj; in usbh_dev_open() 563 esp_err_t usbh_dev_close(usb_device_handle_t dev_hdl) in usbh_dev_close() argument 565 USBH_CHECK(dev_hdl != NULL, ESP_ERR_INVALID_ARG); in usbh_dev_close() 566 device_t *dev_obj = (device_t *)dev_hdl; in usbh_dev_close() 639 esp_err_t usbh_dev_get_addr(usb_device_handle_t dev_hdl, uint8_t *dev_addr) in usbh_dev_get_addr() argument 641 USBH_CHECK(dev_hdl != NULL && dev_addr != NULL, ESP_ERR_INVALID_ARG); in usbh_dev_get_addr() 642 device_t *dev_obj = (device_t *)dev_hdl; in usbh_dev_get_addr() 652 esp_err_t usbh_dev_get_info(usb_device_handle_t dev_hdl, usb_device_info_t *dev_info) in usbh_dev_get_info() argument [all …]
|
D | hub.c | 152 usb_device_handle_t dev_hdl; /**< Handle of device being enumerated */ member 276 enum_ctrl->dev_hdl = enum_dev_hdl; in enum_stage_start() 452 ESP_ERROR_CHECK(usbh_hub_enum_fill_dev_addr(enum_ctrl->dev_hdl, ENUM_DEV_ADDR)); in enum_stage_transfer_check() 459 ESP_ERROR_CHECK(usbh_hub_enum_fill_dev_desc(enum_ctrl->dev_hdl, device_desc)); in enum_stage_transfer_check() 490 ESP_ERROR_CHECK(usbh_hub_enum_fill_config_desc(enum_ctrl->dev_hdl, config_desc)); in enum_stage_transfer_check() 567 ESP_ERROR_CHECK(usbh_hub_enum_fill_str_desc(enum_ctrl->dev_hdl, str_desc, select)); in enum_stage_transfer_check() 586 p_hub_driver_obj->single_thread.root_dev_hdl = enum_ctrl->dev_hdl; in enum_stage_cleanup() 587 usb_device_handle_t dev_hdl = enum_ctrl->dev_hdl; in enum_stage_cleanup() local 589 enum_ctrl->dev_hdl = NULL; in enum_stage_cleanup() 592 ESP_ERROR_CHECK(usbh_hub_enum_done(dev_hdl)); in enum_stage_cleanup() [all …]
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/usb_host_lib/main/ |
D | class_driver.c | 26 usb_device_handle_t dev_hdl; member 44 if (driver_obj->dev_hdl != NULL) { in client_event_cb() 59 …OR_CHECK(usb_host_device_open(driver_obj->client_hdl, driver_obj->dev_addr, &driver_obj->dev_hdl)); in action_open_dev() 67 assert(driver_obj->dev_hdl != NULL); in action_get_info() 70 ESP_ERROR_CHECK(usb_host_device_info(driver_obj->dev_hdl, &dev_info)); in action_get_info() 82 assert(driver_obj->dev_hdl != NULL); in action_get_dev_desc() 85 ESP_ERROR_CHECK(usb_host_get_device_descriptor(driver_obj->dev_hdl, &dev_desc)); in action_get_dev_desc() 94 assert(driver_obj->dev_hdl != NULL); in action_get_config_desc() 97 ESP_ERROR_CHECK(usb_host_get_active_config_descriptor(driver_obj->dev_hdl, &config_desc)); in action_get_config_desc() 106 assert(driver_obj->dev_hdl != NULL); in action_get_str_desc() [all …]
|
/hal_espressif-3.6.0/components/usb/include/usb/ |
D | usb_host.h | 70 usb_device_handle_t dev_hdl; /**< The handle of the device that was gone */ member 264 esp_err_t usb_host_device_close(usb_host_client_handle_t client_hdl, usb_device_handle_t dev_hdl); 312 esp_err_t usb_host_device_info(usb_device_handle_t dev_hdl, usb_device_info_t *dev_info); 330 esp_err_t usb_host_get_device_descriptor(usb_device_handle_t dev_hdl, const usb_device_desc_t **dev… 345 esp_err_t usb_host_get_active_config_descriptor(usb_device_handle_t dev_hdl, const usb_config_desc_… 362 esp_err_t usb_host_interface_claim(usb_host_client_handle_t client_hdl, usb_device_handle_t dev_hdl… 376 …terface_release(usb_host_client_handle_t client_hdl, usb_device_handle_t dev_hdl, uint8_t bInterfa… 390 esp_err_t usb_host_endpoint_halt(usb_device_handle_t dev_hdl, uint8_t bEndpointAddress); 405 esp_err_t usb_host_endpoint_flush(usb_device_handle_t dev_hdl, uint8_t bEndpointAddress); 420 esp_err_t usb_host_endpoint_clear(usb_device_handle_t dev_hdl, uint8_t bEndpointAddress);
|
/hal_espressif-3.6.0/components/usb/test/usb_host/ |
D | msc_client_async_seq.c | 55 usb_device_handle_t dev_hdl; member 127 msc_obj.dev_hdl = NULL; in msc_client_async_seq_task() 173 …QUAL(ESP_OK, usb_host_device_open(msc_obj.client_hdl, msc_obj.dev_addr_to_open, &msc_obj.dev_hdl)); in msc_client_async_seq_task() 175 xfer_out->device_handle = msc_obj.dev_hdl; in msc_client_async_seq_task() 176 xfer_in->device_handle = msc_obj.dev_hdl; in msc_client_async_seq_task() 179 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_device_descriptor(msc_obj.dev_hdl, &device_desc)); in msc_client_async_seq_task() 183 …SSERT_EQUAL(ESP_OK, usb_host_interface_claim(msc_obj.client_hdl, msc_obj.dev_hdl, MOCK_MSC_SCSI_IN… in msc_client_async_seq_task() 225 …ERT_EQUAL(ESP_OK, usb_host_interface_release(msc_obj.client_hdl, msc_obj.dev_hdl, MOCK_MSC_SCSI_IN… in msc_client_async_seq_task() 226 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_device_close(msc_obj.client_hdl, msc_obj.dev_hdl)); in msc_client_async_seq_task()
|
D | msc_client_async_dconn.c | 56 usb_device_handle_t dev_hdl; member 127 msc_obj.dev_hdl = NULL; in msc_client_async_dconn_task() 179 …QUAL(ESP_OK, usb_host_device_open(msc_obj.client_hdl, msc_obj.dev_addr_to_open, &msc_obj.dev_hdl)); in msc_client_async_dconn_task() 181 xfer_out->device_handle = msc_obj.dev_hdl; in msc_client_async_dconn_task() 184 xfer_in[i]->device_handle = msc_obj.dev_hdl; in msc_client_async_dconn_task() 189 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_device_descriptor(msc_obj.dev_hdl, &device_desc)); in msc_client_async_dconn_task() 193 …SSERT_EQUAL(ESP_OK, usb_host_interface_claim(msc_obj.client_hdl, msc_obj.dev_hdl, MOCK_MSC_SCSI_IN… in msc_client_async_dconn_task() 235 …ERT_EQUAL(ESP_OK, usb_host_interface_release(msc_obj.client_hdl, msc_obj.dev_hdl, MOCK_MSC_SCSI_IN… in msc_client_async_dconn_task() 236 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_device_close(msc_obj.client_hdl, msc_obj.dev_hdl)); in msc_client_async_dconn_task()
|
D | msc_client_async_enum.c | 51 usb_device_handle_t dev_hdl; member 77 msc_obj.dev_hdl = NULL; in msc_client_async_enum_task() 115 …QUAL(ESP_OK, usb_host_device_open(msc_obj.client_hdl, msc_obj.dev_addr_to_open, &msc_obj.dev_hdl)); in msc_client_async_enum_task() 124 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_device_descriptor(msc_obj.dev_hdl, &device_desc)); in msc_client_async_enum_task() 136 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_active_config_descriptor(msc_obj.dev_hdl, &config_desc)); in msc_client_async_enum_task() 145 TEST_ASSERT_EQUAL(ESP_OK, usb_host_device_info(msc_obj.dev_hdl, &dev_info)); in msc_client_async_enum_task() 164 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_device_close(msc_obj.client_hdl, msc_obj.dev_hdl)); in msc_client_async_enum_task()
|
D | ctrl_client_async_seq.c | 58 usb_device_handle_t dev_hdl; member 137 …L(ESP_OK, usb_host_device_open(ctrl_obj.client_hdl, ctrl_obj.dev_addr_to_open, &ctrl_obj.dev_hdl)); in ctrl_client_async_seq_task() 140 ctrl_xfer[i]->device_handle = ctrl_obj.dev_hdl; in ctrl_client_async_seq_task() 144 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_device_descriptor(ctrl_obj.dev_hdl, &device_desc)); in ctrl_client_async_seq_task() 148 …TEST_ASSERT_EQUAL(ESP_OK, usb_host_get_active_config_descriptor(ctrl_obj.dev_hdl, &ctrl_obj.config… in ctrl_client_async_seq_task() 172 … TEST_ASSERT_EQUAL(ESP_OK, usb_host_device_close(ctrl_obj.client_hdl, ctrl_obj.dev_hdl)); in ctrl_client_async_seq_task()
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/ |
D | cdc_acm_host.c | 115 usb_device_handle_t dev_hdl; // USB device handle member 234 static esp_err_t cdc_acm_reset_transfer_endpoint(usb_device_handle_t dev_hdl, usb_transfer_t *trans… in cdc_acm_reset_transfer_endpoint() argument 236 assert(dev_hdl); in cdc_acm_reset_transfer_endpoint() 239 ESP_RETURN_ON_ERROR(usb_host_endpoint_halt(dev_hdl, transfer->bEndpointAddress), TAG,); in cdc_acm_reset_transfer_endpoint() 240 ESP_RETURN_ON_ERROR(usb_host_endpoint_flush(dev_hdl, transfer->bEndpointAddress), TAG,); in cdc_acm_reset_transfer_endpoint() 241 usb_host_endpoint_clear(dev_hdl, transfer->bEndpointAddress); in cdc_acm_reset_transfer_endpoint() 268 …ESP_GOTO_ON_ERROR(usb_host_interface_claim(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cd… in cdc_acm_start() 275 … ESP_GOTO_ON_ERROR(usb_host_interface_claim(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, in cdc_acm_start() 289 …usb_host_interface_release(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cdc_dev->data.intf… in cdc_acm_start() 291 …usb_host_interface_release(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cdc_dev->notif.int… in cdc_acm_start() [all …]
|
/hal_espressif-3.6.0/examples/peripherals/rmt/ir_protocols/components/infrared_tools/include/ |
D | ir_tools.h | 199 ir_dev_t dev_hdl; /*!< IR device handle */ member 208 ir_dev_t dev_hdl; /*!< IR device handle */ member 220 .dev_hdl = dev, \ 230 .dev_hdl = dev, \
|
/hal_espressif-3.6.0/examples/peripherals/rmt/musical_buzzer/components/musical_buzzer/include/ |
D | musical_buzzer.h | 88 #define MUSICAL_BUZZER_DEFAULT_CONFIG(dev_hdl) \ argument 90 .dev = dev_hdl, \
|
/hal_espressif-3.6.0/examples/peripherals/pcnt/rotary_encoder/components/rotary_encoder/include/ |
D | rotary_encoder.h | 43 #define ROTARY_ENCODER_DEFAULT_CONFIG(dev_hdl, gpio_a, gpio_b) \ argument 45 .dev = dev_hdl, \
|
/hal_espressif-3.6.0/examples/common_components/led_strip/include/ |
D | led_strip.h | 109 #define LED_STRIP_DEFAULT_CONFIG(number, dev_hdl) \ argument 112 .dev = dev_hdl, \
|
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/ |
D | usb_host.rst | 232 usb_device_handle_t dev_hdl; 287 …ost_device_open(class_driver_obj.client_hdl, class_driver_obj.dev_addr, &class_driver_obj.dev_hdl); 288 … usb_host_interface_claim(class_driver_obj.client_hdl, class_driver_obj.dev_hdl, 1, 0); 294 transfer->device_handle = class_driver_obj.dev_hdl; 302 … usb_host_interface_release(class_driver_obj.client_hdl, class_driver_obj.dev_hdl, 1); 303 usb_host_device_close(class_driver_obj.client_hdl, class_driver_obj.dev_hdl);
|
/hal_espressif-3.6.0/examples/peripherals/rmt/ir_protocols/components/infrared_tools/src/ |
D | ir_parser_rmt_rc5.c | 154 RC5_CHECK(rmt_get_counter_clock((rmt_channel_t)config->dev_hdl, &counter_clk_hz) == ESP_OK, in ir_parser_rmt_new_rc5()
|
D | ir_builder_rmt_rc5.c | 174 RC5_CHECK(rmt_get_counter_clock((rmt_channel_t)config->dev_hdl, &counter_clk_hz) == ESP_OK, in ir_builder_rmt_new_rc5()
|
D | ir_parser_rmt_nec.c | 200 NEC_CHECK(rmt_get_counter_clock((rmt_channel_t)config->dev_hdl, &counter_clk_hz) == ESP_OK, in ir_parser_rmt_new_nec()
|
D | ir_builder_rmt_nec.c | 181 NEC_CHECK(rmt_get_counter_clock((rmt_channel_t)config->dev_hdl, &counter_clk_hz) == ESP_OK, in ir_builder_rmt_new_nec()
|
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/ |
D | msc_host.c | 256 msc_device_t *msc_device = find_msc_device(event->dev_gone.dev_hdl); in client_event_cb()
|