summaryrefslogtreecommitdiff
path: root/tinyusb/host/hcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-06 22:41:14 +0700
committerhathach <[email protected]>2013-03-06 22:41:14 +0700
commitef08654e736f751bf07dd2f062c6916ffdbe1801 (patch)
treeb97ccef4267d8021058ea8b87ff7b936d75c9234 /tinyusb/host/hcd.h
parent5c3bd1f8dc6811034d22d739fe05aea144aaa0b0 (diff)
add prototype for hcd_pipe(control)_close
- update test code for enum task respectively
Diffstat (limited to 'tinyusb/host/hcd.h')
-rw-r--r--tinyusb/host/hcd.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index d180d1c58..f918ca33a 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -77,15 +77,13 @@ void hcd_isr(uint8_t hostid);
//--------------------------------------------------------------------+
tusb_error_t hcd_pipe_control_open(uint8_t dev_addr, uint8_t max_packet_size) ATTR_WARN_UNUSED_RESULT;
tusb_error_t hcd_pipe_control_xfer(uint8_t dev_addr, tusb_std_request_t const * p_request, uint8_t data[]) ATTR_WARN_UNUSED_RESULT;
+tusb_error_t hcd_pipe_control_close(uint8_t dev_addr) ATTR_WARN_UNUSED_RESULT;
+
pipe_handle_t hcd_pipe_open(uint8_t dev_addr, tusb_descriptor_endpoint_t const * endpoint_desc) ATTR_WARN_UNUSED_RESULT;
+tusb_error_t hcd_pipe_xfer(pipe_handle_t pipe_hdl, uint8_t buffer[]) ATTR_WARN_UNUSED_RESULT;
+tusb_error_t hcd_pipe_close(pipe_handle_t pipe_hdl) ATTR_WARN_UNUSED_RESULT;
#if 0
-//tusb_error_t hcd_pipe_open(
-// uint8_t hostid, uint8_t device_address,
-//
-// )ATTR_WARN_UNUSED_RESULT;
-tusb_error_t hcd_pipe_close()ATTR_WARN_UNUSED_RESULT;
-tusb_error_t hcd_pipe_transfer()ATTR_WARN_UNUSED_RESULT;
tusb_error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT;
#endif