Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/usb/test/hcd/
Dtest_hcd_bulk.c72 urb_t *urb_data = test_hcd_alloc_urb(0, TEST_NUM_SECTORS_PER_XFER * MOCK_MSC_SCSI_SECTOR_SIZE); variable
75 urb_data->transfer.num_bytes = TEST_NUM_SECTORS_PER_XFER * MOCK_MSC_SCSI_SECTOR_SIZE;
86 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(bulk_in_pipe, urb_data));
88 TEST_ASSERT_EQUAL(urb_data, hcd_urb_dequeue(bulk_in_pipe));
89 TEST_ASSERT_EQUAL(USB_TRANSFER_STATUS_COMPLETED, urb_data->transfer.status);
94 TEST_ASSERT_EQUAL(USB_TRANSFER_STATUS_COMPLETED, urb_data->transfer.status);
99 for (int i = 0; i < urb_data->transfer.actual_num_bytes; i++) {
100 printf("0x%02x,", ((char *)urb_data->transfer.data_buffer)[i]);
106 test_hcd_free_urb(urb_data);