Home
last modified time | relevance | path

Searched refs:cdc_dev (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/
Dcdc_acm_host.c195 static esp_err_t send_cdc_request(cdc_dev_t *cdc_dev, bool in_transfer, cdc_request_code_t request,…
256 static esp_err_t cdc_acm_start(cdc_dev_t *cdc_dev, cdc_acm_host_dev_callback_t event_cb, cdc_acm_da… in cdc_acm_start() argument
259 assert(cdc_dev); in cdc_acm_start()
262 cdc_dev->notif.cb = event_cb; in cdc_acm_start()
263 cdc_dev->data.in_cb = in_cb; in cdc_acm_start()
264 cdc_dev->cb_arg = user_arg; in cdc_acm_start()
268 …ROR(usb_host_interface_claim(p_cdc_acm_obj->cdc_acm_client_hdl, cdc_dev->dev_hdl, cdc_dev->data.in… in cdc_acm_start()
270 ESP_ERROR_CHECK(usb_host_transfer_submit(cdc_dev->data.in_xfer)); in cdc_acm_start()
273 if (cdc_dev->notif.intf_desc != NULL) { in cdc_acm_start()
274 if (cdc_dev->notif.intf_desc != cdc_dev->data.intf_desc) { in cdc_acm_start()
[all …]
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/test/
Dtest_cdc_acm_host.c139 cdc_acm_dev_hdl_t cdc_dev = NULL; variable
152 …TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_open(0x303A, 0x4002, 0, &dev_config, &cdc_dev)); // 0x303A:…
153 TEST_ASSERT_NOT_NULL(cdc_dev);
154 cdc_acm_host_desc_print(cdc_dev);
157 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, sizeof(tx_buf), 1000));
158 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_data_tx_blocking(cdc_dev, tx_buf, sizeof(tx_buf), 1000));
171 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_line_coding_set(cdc_dev, &line_coding_set));
172 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_line_coding_get(cdc_dev, &line_coding_get));
174 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_set_control_line_state(cdc_dev, true, false));
176 TEST_ASSERT_EQUAL(ESP_OK, cdc_acm_host_close(cdc_dev));
[all …]
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/cdc_acm_host/main/
Dusb-cdc.c68 cdc_acm_dev_hdl_t cdc_dev; in app_main() local
76 …CHECK(cdc_acm_host_open(EXAMPLE_USB_DEVICE_VID, EXAMPLE_USB_DEVICE_PID, 0, &dev_config, &cdc_dev)); in app_main()
77 assert(cdc_dev); in app_main()
78 cdc_acm_host_desc_print(cdc_dev); in app_main()
83 ESP_ERROR_CHECK(cdc_acm_host_data_tx_blocking(cdc_dev, (uint8_t *)text1, strlen(text1), 1000)); in app_main()
87 ESP_ERROR_CHECK(cdc_acm_host_data_tx_blocking(cdc_dev, (uint8_t *)text2, strlen(text2), 1000)); in app_main()
94 ESP_ERROR_CHECK(cdc_acm_host_line_coding_get(cdc_dev, &line_coding)); in app_main()
102 ESP_ERROR_CHECK(cdc_acm_host_line_coding_set(cdc_dev, &line_coding)); in app_main()
106 ESP_ERROR_CHECK(cdc_acm_host_line_coding_get(cdc_dev, &line_coding)); in app_main()
110 ESP_ERROR_CHECK(cdc_acm_host_set_control_line_state(cdc_dev, true, false)); in app_main()