summaryrefslogtreecommitdiff
path: root/src/device/usbd_pvt.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-24 23:07:30 +0700
committerhathach <[email protected]>2019-07-24 23:07:30 +0700
commit2a543c0e79b882b054d87f89ee8cf8e83b44e22e (patch)
treeb3e7e50429b6ed2c1f26b483baf948a4662c64f0 /src/device/usbd_pvt.h
parent56b656c768a5e1b775ed41a5f74bbf75901f9d74 (diff)
update vendor device similar to cdc read/write
maybe refactor later
Diffstat (limited to 'src/device/usbd_pvt.h')
-rw-r--r--src/device/usbd_pvt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h
index 06f7a3afe..fbf030ce3 100644
--- a/src/device/usbd_pvt.h
+++ b/src/device/usbd_pvt.h
@@ -39,11 +39,13 @@ bool usbd_init (void);
// USBD Endpoint API
//--------------------------------------------------------------------+
+//bool usbd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc);
+
// Submit a usb transfer
-bool usbd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes);
+bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes);
// Check if endpoint transferring is complete
-bool usbd_edpt_busy (uint8_t rhport, uint8_t ep_addr);
+bool usbd_edpt_busy(uint8_t rhport, uint8_t ep_addr);
void usbd_edpt_stall(uint8_t rhport, uint8_t ep_addr);
void usbd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr);