device/usb/usb.h header reference
[Devices support library module]

The source code of this header can be browsed online.

Description  

USB spec related definitions

Members  

Types  

Functions  

Members detail  

#define USBDEV_CONFIGURATIONS(...)  

This macro is declared in device/usb/usb.h source file, line 447.

#define USBDEV_DESC_CONFIGURATION(length, ifcount, id, icfg, attr, power)  

This macro is declared in device/usb/usb.h source file, line 407.

#define USBDEV_DESC_DEVICE(version, class, subclass, prot, packetsize, vendor, product, release, imanufacturer, iproduct, iserial, cfgcount)  

This macro is declared in device/usb/usb.h source file, line 419.

#define USBDEV_LANGID(code)  

This macro is declared in device/usb/usb.h source file, line 451.

#define USBDEV_LANGID_TABLE(...)  

This macro is declared in device/usb/usb.h source file, line 455.

#define USBDEV_STRINGS(...)  

This macro is declared in device/usb/usb.h source file, line 443.

#define __USB_H__  

This macro is declared in device/usb/usb.h source file, line 29.

enum dev_usbdev_state_e  

This enum is declared in device/usb/usb.h source file, line 134.

IdentifierDescription
DEV_USBDEV_DETACHEDDetached
DEV_USBDEV_ATTACHEDAttached
DEV_USBDEV_POWEREDAttached and powered
DEV_USBDEV_POWERED_TO_DEFAULTReset is on-going
DEV_USBDEV_WAIT_SERIVCE_READY
DEV_USBDEV_DEFAULTRespond to default address
DEV_USBDEV_ADDRESSUnique address assigned
DEV_USBDEV_ADDRESS_TO_DEFAULT
DEV_USBDEV_ADDRESS_TO_DETACHED
DEV_USBDEV_ADDRESS_TO_POWERED
DEV_USBDEV_CONFIGUREDConfiguration done
DEV_USBDEV_CONFIGURED_TO_DETACHED
DEV_USBDEV_CONFIGURED_TO_POWERED
DEV_USBDEV_CONFIGURED_TO_DEFAULT
DEV_USBDEV_SUSPENDEDNo bus traffic for at least 3 ms

struct usb_class_descriptor_header_s  

This struct is declared in device/usb/usb.h source file, line 167.

struct usb_configuration_descriptor_s  

enum usb_configuration_parameter_e  

This enum is declared in device/usb/usb.h source file, line 35.

IdentifierDescription
USB_SELF_POWERED
USB_REMOTE_WAKEUP

enum usb_control_status_e  

This enum is declared in device/usb/usb.h source file, line 56.

IdentifierDescription
USB_CTRL_STATUS_ACK
USB_CTRL_STATUS_STALL
USB_CTRL_STATUS_NACK

struct usb_ctrl_setup_s  

This struct is declared in device/usb/usb.h source file, line 302.

struct usb_descriptor_header_s  

This struct is declared in device/usb/usb.h source file, line 161.

enum usb_descriptor_type_e  

This enum is declared in device/usb/usb.h source file, line 69.

IdentifierDescription
USB_DESC_DEVICE
USB_DESC_CONFIGURATION
USB_DESC_STRING
USB_DESC_INTERFACE
USB_DESC_ENDPOINT
USB_DESC_DEVICE_QUALIFIER
USB_DESC_OTHER_SPEED_CONFIG
USB_DESC_INTERFACE_POWER
USB_DESC_OTG
USB_DESC_DEBUG
USB_DESC_INTERFACE_ASSOCIATION

enum usb_device_application_subclass_e  

This enum is declared in device/usb/usb.h source file, line 121.

IdentifierDescription
USB_DEV_APP_SUBCLASS_DFU
USB_DEV_APP_SUBCLASS_IRDA
USB_DEV_APP_SUBCLASS_TEST

enum usb_device_class_code_e  

This enum is declared in device/usb/usb.h source file, line 84.

IdentifierDescription
USB_DEV_CLASS_SEE_INTERFACE
USB_DEV_CLASS_AUDIO
USB_DEV_CLASS_COMM
USB_DEV_CLASS_HID
USB_DEV_CLASS_PHYSICAL
USB_DEV_CLASS_IMAGE
USB_DEV_CLASS_PRINTER
USB_DEV_CLASS_MASS_STORAGE
USB_DEV_CLASS_HUB
USB_DEV_CLASS_COMM_DATA
USB_DEV_CLASS_SMART_CARD
USB_DEV_CLASS_CONTENT_SECURITY
USB_DEV_CLASS_VIDEO
USB_DEV_CLASS_PERSONAL_HEALTHCARE
USB_DEV_CLASS_AUDIO_VIDEO
USB_DEV_CLASS_BILLBOARD
USB_DEV_CLASS_TYPEC_BRIDGE
USB_DEV_CLASS_DIAGNOSTIC
USB_DEV_CLASS_WIRELESS
USB_DEV_CLASS_MISCELLANEOUS
USB_DEV_CLASS_APPLICATION_SPECIFIC
USB_DEV_CLASS_VENDOR_SPECIFIC

struct usb_device_descriptor_s  

enum usb_device_misc_multi_protocol_e  

This enum is declared in device/usb/usb.h source file, line 128.

IdentifierDescription
USB_DEV_MISC_MULTI_PROTO_IAD
USB_DEV_MISC_MULTI_PROTO_WAMP

enum usb_device_misc_subclass_e  

This enum is declared in device/usb/usb.h source file, line 110.

IdentifierDescription
USB_DEV_MISC_SUBCLASS_SYNC
USB_DEV_MISC_SUBCLASS_MULTI
USB_DEV_MISC_SUBCLASS_CABLE
USB_DEV_MISC_SUBCLASS_RNDIS
USB_DEV_MISC_SUBCLASS_USB3
USB_DEV_MISC_SUBCLASS_STEP
USB_DEV_MISC_SUBCLASS_CICAM

struct usb_endpoint_descriptor_s  

enum usb_endpoint_dir_e  

This enum is declared in device/usb/usb.h source file, line 63.

IdentifierDescription
USB_EP_OUT
USB_EP_IN

enum usb_endpoint_type_e  

This enum is declared in device/usb/usb.h source file, line 48.

IdentifierDescription
USB_EP_CONTROL
USB_EP_ISOCHRONOUS
USB_EP_BULK
USB_EP_INTERRUPT

uint8_t usb_ep_dir_get(const struct usb_endpoint_descriptor_s *ep)  

This function is declared in device/usb/usb.h source file, line 189.

uint8_t usb_ep_interval_get(const struct usb_endpoint_descriptor_s *ep)  

This function is declared in device/usb/usb.h source file, line 219.

bool_t usb_ep_is_in(const struct usb_endpoint_descriptor_s *desc)  

This function is declared in device/usb/usb.h source file, line 327.

bool_t usb_ep_is_out(const struct usb_endpoint_descriptor_s *desc)  

This function is declared in device/usb/usb.h source file, line 334.

uint16_t usb_ep_mps_get(const struct usb_endpoint_descriptor_s *ep)  

This function is declared in device/usb/usb.h source file, line 207.

uint8_t usb_ep_num_get(const struct usb_endpoint_descriptor_s *ep)  

This function is declared in device/usb/usb.h source file, line 195.

uint16_t usb_ep_size_get(const struct usb_endpoint_descriptor_s *ep)  

This function is declared in device/usb/usb.h source file, line 201.

enum usb_endpoint_type_e usb_ep_type_get(const struct usb_endpoint_descriptor_s *ep)  

This function is declared in device/usb/usb.h source file, line 213.

enum usb_feature_selector_e  

This enum is declared in device/usb/usb.h source file, line 41.

IdentifierDescription
USB_ENDPOINT_HALT
USB_DEVICE_REMOTE_WAKEUP
USB_TEST_MODE

uint8_t usb_interface_alt_get(const struct usb_interface_descriptor_s *intf)  

This function is declared in device/usb/usb.h source file, line 243.

struct usb_interface_association_descriptor_s  

struct usb_interface_descriptor_s  

uint8_t usb_interface_ep_count_get(const struct usb_interface_descriptor_s *intf)  

This function is declared in device/usb/usb.h source file, line 237.

uint8_t usb_interface_number_get(const struct usb_interface_descriptor_s *intf)  

This function is declared in device/usb/usb.h source file, line 249.

enum usb_transfert_direction_e usb_setup_direction_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 380.

uint16_t usb_setup_index_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 398.

uint16_t usb_setup_length_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 404.

enum usb_tranfert_recipient_e usb_setup_recipient_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 374.

uint8_t usb_setup_reqtype_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 362.

uint8_t usb_setup_request_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 386.

enum usb_tranfert_type_e usb_setup_type_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 368.

uint16_t usb_setup_value_get(const struct usb_ctrl_setup_s *s)  

This function is declared in device/usb/usb.h source file, line 392.

enum usb_standard_request_e  

This enum is declared in device/usb/usb.h source file, line 311.

IdentifierDescription
USB_GET_STATUS
USB_CLEAR_FEATURE
USB_SET_FEATURE
USB_SET_ADDRESS
USB_GET_DESCRIPTOR
USB_SET_DESCRIPTOR
USB_GET_CONFIGURATION
USB_SET_CONFIGURATION
USB_GET_INTERFACE
USB_SET_INTERFACE
USB_SYNCH_FRAME

struct usb_string_descriptor_s  

This struct is declared in device/usb/usb.h source file, line 173.

FieldDescription
struct usb_descriptor_header_s head;
uint16_t wData[0];

struct usb_string_descriptor_zero_s  

This struct is declared in device/usb/usb.h source file, line 278.

String descriptor for LANGID

FieldDescription
struct usb_descriptor_header_s head;
uint16_t wlangid[0];

enum usb_tranfert_recipient_e  

This enum is declared in device/usb/usb.h source file, line 353.

IdentifierDescription
USB_DEVICE
USB_INTERFACE
USB_ENDPOINT
USB_OTHER

enum usb_tranfert_type_e  

This enum is declared in device/usb/usb.h source file, line 346.

IdentifierDescription
USB_STANDARD
USB_CLASS
USB_VENDOR

enum usb_transfert_direction_e  

This enum is declared in device/usb/usb.h source file, line 340.

IdentifierDescription
USB_HOST_TO_DEVICE
USB_DEVICE_TO_HOST

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc