diff options
| author | hathach <[email protected]> | 2013-07-01 10:35:37 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-01 10:35:37 +0700 |
| commit | a4f7dc1105f2a2f9aa27fdef810024eebbb7f2ba (patch) | |
| tree | 33eb906a997038d36ac32d68e9a3dcac1103c05d /tinyusb/class/cdc_host.h | |
| parent | a943cce99110eabeaea98a390a41842a15de715f (diff) | |
add & pass a first few test for cdc host
implement cdch_open_subtask
Diffstat (limited to 'tinyusb/class/cdc_host.h')
| -rw-r--r-- | tinyusb/class/cdc_host.h | 9 |
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); |
