summaryrefslogtreecommitdiff
path: root/tinyusb/class/cdc_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/class/cdc_host.h')
-rw-r--r--tinyusb/class/cdc_host.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tinyusb/class/cdc_host.h b/tinyusb/class/cdc_host.h
index c9ad067ae..12132ca68 100644
--- a/tinyusb/class/cdc_host.h
+++ b/tinyusb/class/cdc_host.h
@@ -63,6 +63,15 @@
//--------------------------------------------------------------------+
#ifdef _TINY_USB_SOURCE_FILE_
+typedef struct {
+ uint8_t interface_number;
+ uint8_t interface_protocol;
+ pipe_handle_t pipe_notification, pipe_out, pipe_in;
+
+} cdch_data_t;
+
+extern cdch_data_t cdch_data[TUSB_CFG_HOST_DEVICE_MAX]; // TODO consider to move to cdch internal header file
+
void cdch_init(void);
tusb_error_t cdch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t const *p_interface_desc, uint16_t *p_length) ATTR_WARN_UNUSED_RESULT;
void cdch_isr(pipe_handle_t pipe_hdl, tusb_event_t event);