diff options
| author | HiFiPhile <[email protected]> | 2025-04-11 23:07:22 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-04-11 23:07:22 +0200 |
| commit | 459e2cd39ece797eb35f74ccace0db0a588b795a (patch) | |
| tree | 68e0f398392eb001ab64857575a2b76934519021 /src/host/hcd.h | |
| parent | 8d2310247c47160bf8de6e5f754284360ad7e937 (diff) | |
| parent | 865e3488f99209c57b73953428dccf2bc666f0be (diff) | |
Merge remote-tracking branch 'upstream/master' into async_io
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/host/hcd.h')
| -rw-r--r-- | src/host/hcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index 56b6fdb5d..b20d96d54 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -163,8 +163,12 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr); //--------------------------------------------------------------------+ // Open an endpoint +// return true if successfully opened or endpoint is currently opened bool hcd_edpt_open(uint8_t rhport, uint8_t daddr, tusb_desc_endpoint_t const * ep_desc); +// Close an endpoint +bool hcd_edpt_close(uint8_t rhport, uint8_t daddr, uint8_t ep_addr); + // Submit a transfer, when complete hcd_event_xfer_complete() must be invoked bool hcd_edpt_xfer(uint8_t rhport, uint8_t daddr, uint8_t ep_addr, uint8_t * buffer, uint16_t buflen); |
