59 TUSB_INTERFACE_STATUS_READY = 0,
60 TUSB_INTERFACE_STATUS_BUSY,
61 TUSB_INTERFACE_STATUS_COMPLETE,
62 TUSB_INTERFACE_STATUS_ERROR,
63 TUSB_INTERFACE_STATUS_INVALID_PARA
67 void (*
const init) (void);
70 void (*
const close) (uint8_t);
82 static inline bool tusbh_device_is_configured(uint8_t dev_addr)
84 return tusbh_device_get_state(dev_addr) == TUSB_DEVICE_STATE_CONFIGURED;
86 uint32_t tusbh_device_get_mounted_class_flag(uint8_t dev_addr);
92 ATTR_WEAK void tusbh_device_mount_succeed_cb (uint8_t dev_addr);
98 #ifdef _TINY_USB_SOURCE_FILE_
101 OSAL_TASK_FUNCTION (usbh_enumeration_task, p_task_para);
104 tusb_error_t usbh_control_xfer_subtask(uint8_t dev_addr, uint8_t bmRequestType, uint8_t bRequest,
105 uint16_t wValue, uint16_t wIndex, uint16_t wLength, uint8_t* data);
USB Standard Interface Descriptor (section 9.6.1 table 9-12)
Definition: std_descriptors.h:90
#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
#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
tusb_device_state_t
Device State.
Definition: tusb_types.h:163
tusb_interface_status_
Definition: usbh.h:58
enum tusb_interface_status_ tusb_interface_status_t
#define ATTR_WEAK
The weak attribute causes the declaration to be emitted as a weak symbol rather than a global...
Definition: compiler_gcc.h:109
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
USB Standard Device Descriptor (section 9.6.1, table 9-8)
Definition: std_descriptors.h:56