diff options
| author | hathach <[email protected]> | 2018-12-11 13:15:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-11 13:15:05 +0700 |
| commit | dbc560658a900525acd11ffcae2e59839d9c6fe5 (patch) | |
| tree | 80fb910f81090ebaf463a80225da26895e360caa /src/host/hcd.h | |
| parent | 0d04e6eb96935723f17969bf43a33532fcebcbf6 (diff) | |
more hcd_pipe to hcd_edpt rename
Diffstat (limited to 'src/host/hcd.h')
| -rw-r--r-- | src/host/hcd.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index 9b7b99321..257a7da59 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -131,8 +131,14 @@ void hcd_event_xfer_complete(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t ev bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet[8]);
bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const * ep_desc);
+bool hcd_edpt_busy(uint8_t dev_addr, uint8_t ep_addr);
+bool hcd_edpt_stalled(uint8_t dev_addr, uint8_t ep_addr);
+bool hcd_edpt_clear_stall(uint8_t dev_addr, uint8_t ep_addr);
+
+// TODO remove
bool hcd_edpt_close(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr);
bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t * buffer, uint16_t buflen);
+
//--------------------------------------------------------------------+
// PIPE API
//--------------------------------------------------------------------+
@@ -141,10 +147,6 @@ bool hcd_pipe_queue_xfer(uint8_t dev_addr, uint8_t ep_addr, uint8_t buffer[], ui bool hcd_pipe_xfer(uint8_t dev_addr, uint8_t ep_addr, uint8_t buffer[], uint16_t total_bytes, bool int_on_complete);
bool hcd_pipe_close(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr); // TODO remove
-bool hcd_pipe_is_busy(uint8_t dev_addr, uint8_t ep_addr);
-bool hcd_pipe_is_stalled(uint8_t dev_addr, uint8_t ep_addr); // stalled also counted as error
-bool hcd_pipe_clear_stall(uint8_t dev_addr, uint8_t ep_addr);
-
#if 0
tusb_error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT;
#endif
|
