63 static inline bool pipehandle_is_valid(
pipe_handle_t pipe_hdl)
65 return pipe_hdl.dev_addr > 0;
71 return (x.dev_addr == y.dev_addr) && (x.xfer_type == y.xfer_type) && (x.index == y.index);
78 void hcd_isr(uint8_t hostid);
84 tusb_error_t hcd_pipe_control_open(uint8_t dev_addr, uint8_t max_packet_size) ATTR_WARN_UNUSED_RESULT;
86 tusb_error_t hcd_pipe_control_close(uint8_t dev_addr) ATTR_WARN_UNUSED_RESULT;
90 tusb_error_t hcd_pipe_xfer(
pipe_handle_t pipe_hdl, uint8_t buffer[], uint16_t total_bytes,
bool int_on_complete) ATTR_WARN_UNUSED_RESULT;
97 uint8_t hcd_pipe_get_endpoint_addr(
pipe_handle_t pipe_hdl) ATTR_PURE;
109 void hcd_port_reset(uint8_t hostid);
111 void hcd_port_unplug(uint8_t hostid);
tusb_speed_t
defined base on EHCI specs value for Endpoint Speed
Definition: tusb_types.h:51
#define ATTR_WARN_UNUSED_RESULT
The warn_unused_result attribute causes a warning to be emitted if a caller of the function with this...
Definition: compiler_gcc.h:118
Definition: std_request.h:49
bool hcd_port_connect_status(uint8_t hostid) ATTR_PURE ATTR_WARN_UNUSED_RESULT
return the current connect status of roothub port
#define ATTR_PURE
Many functions have no effects except the return value and their return value depends only on the par...
Definition: compiler_gcc.h:96
USB Standard Endpoint Descriptor (section 9.6.1 table 9-13)
Definition: std_descriptors.h:104
tusb_error_t
Error Code returned.
Definition: tusb_errors.h:100
#define ATTR_ALWAYS_INLINE
Generally, functions are not inlined unless optimization is specified. For functions declared inline...
Definition: compiler_gcc.h:89
#define ATTR_CONST
Many functions do not examine any values except their arguments, and have no effects except the retur...
Definition: compiler_gcc.h:100