summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-08-20 19:08:38 +0700
committerhathach <[email protected]>2021-08-20 19:08:38 +0700
commit97703587d9f306f01a9435c1515a585f1b8d0975 (patch)
treebc1c6d092c55e31510879c5133aaa11d510ce050 /src/common
parent62f2efbe8cf1e61f70660abac28f4226bca93daf (diff)
improve host configuration parsing
- remove driver class code binding - fully support IAD - auto calculate total length for interface descriptor for driver
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index 302e75277..c2356ffee 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -83,6 +83,9 @@ bool tu_edpt_validate(tusb_desc_endpoint_t const * desc_ep, tusb_speed_t speed);
// Bind all endpoint of a interface descriptor to class driver
void tu_edpt_bind_driver(uint8_t ep2drv[][2], tusb_desc_interface_t const* p_desc, uint16_t desc_len, uint8_t driver_id);
+// Calculate total length of n interfaces (depending on IAD)
+uint16_t tu_desc_get_interface_total_len(tusb_desc_interface_t const* desc_itf, uint8_t itf_count, uint16_t max_len);
+
//--------------------------------------------------------------------+
// Internal Inline Functions
//--------------------------------------------------------------------+