Data Structures | Defines

hal/nrf24lu1p/hal_usb_desc.h File Reference

This file contain structures and constants defined in Chapter 9 of the USB 2.0 standard. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  hal_usb_dev_desc_t
struct  hal_usb_conf_desc_t
struct  hal_usb_if_desc_t
struct  hal_usb_ep_desc_t
struct  hal_usb_hid_desc_t
struct  hal_usb_string_desc_t
struct  hal_usb_common_desc_t

Defines

#define USB_REQ_GET_STATUS   0x00
#define USB_REQ_CLEAR_FEATURE   0x01
#define USB_REQ_RESERVED_1   0x02
#define USB_REQ_SET_FEATURE   0x03
#define USB_REQ_RESERVED_2   0x04
#define USB_REQ_SET_ADDRESS   0x05
#define USB_REQ_GET_DESCRIPTOR   0x06
#define USB_REQ_SET_DESCRIPTOR   0x07
#define USB_REQ_GET_CONFIGURATION   0x08
#define USB_REQ_SET_CONFIGURATION   0x09
#define USB_REQ_GET_INTERFACE   0x0a
#define USB_REQ_SET_INTERFACE   0x0b
#define USB_REQ_SYNCH_FRAME   0x0c
#define USB_DESC_DEVICE   0x01
#define USB_DESC_CONFIGURATION   0x02
#define USB_DESC_STRING   0x03
#define USB_DESC_INTERFACE   0x04
#define USB_DESC_ENDPOINT   0x05
#define USB_DESC_DEVICE_QUAL   0x06
#define USB_DESC_OTHER_SPEED_CONF   0x07
#define USB_DESC_INTERFACE_POWER   0x08
#define USB_DESC_OTG   0x09
#define USB_DESC_DEBUG   0x0A
#define USB_DESC_INTERFACE_ASSOC   0x0B
#define USB_ENDPOINT_TYPE_CONTROL   0x00
#define USB_ENDPOINT_TYPE_ISOCHRONOUS   0x01
#define USB_ENDPOINT_TYPE_BULK   0x02
#define USB_ENDPOINT_TYPE_INTERRUPT   0x03
#define USB_DEVICE_CLASS_RESERVED   0x00
#define USB_DEVICE_CLASS_AUDIO   0x01
#define USB_DEVICE_CLASS_COMMUNICATIONS   0x02
#define USB_DEVICE_CLASS_HUMAN_INTERFACE   0x03
#define USB_DEVICE_CLASS_MONITOR   0x04
#define USB_DEVICE_CLASS_PHYSICAL_INTERFACE   0x05
#define USB_DEVICE_CLASS_POWER   0x06
#define USB_DEVICE_CLASS_PRINTER   0x07
#define USB_DEVICE_CLASS_STORAGE   0x08
#define USB_DEVICE_CLASS_HUB   0x09
#define USB_DEVICE_CLASS_APPLICATION_SPECIFIC   0xFE
#define USB_DEVICE_CLASS_VENDOR_SPECIFIC   0xFF
#define USB_CLASS_DESCRIPTOR_HID   0x21
#define USB_CLASS_DESCRIPTOR_REPORT   0x22
#define USB_CLASS_DESCRIPTOR_PHYSICAL_DESCRIPTOR   0x23
#define USB_DEVICE_REMOTE_WAKEUP   0x01
#define USB_ENDPOINT_HALT   0x00
#define USB_TEST_MODE   0x02

Detailed Description

This file contain structures and constants defined in Chapter 9 of the USB 2.0 standard.

Definition in file hal_usb_desc.h.


Define Documentation

#define USB_REQ_GET_STATUS   0x00

Definition at line 24 of file hal_usb_desc.h.

#define USB_REQ_CLEAR_FEATURE   0x01

Definition at line 25 of file hal_usb_desc.h.

#define USB_REQ_RESERVED_1   0x02

Definition at line 26 of file hal_usb_desc.h.

#define USB_REQ_SET_FEATURE   0x03

Definition at line 27 of file hal_usb_desc.h.

#define USB_REQ_RESERVED_2   0x04

Definition at line 28 of file hal_usb_desc.h.

#define USB_REQ_SET_ADDRESS   0x05

Definition at line 29 of file hal_usb_desc.h.

#define USB_REQ_GET_DESCRIPTOR   0x06

Definition at line 30 of file hal_usb_desc.h.

#define USB_REQ_SET_DESCRIPTOR   0x07

Definition at line 31 of file hal_usb_desc.h.

#define USB_REQ_GET_CONFIGURATION   0x08

Definition at line 32 of file hal_usb_desc.h.

#define USB_REQ_SET_CONFIGURATION   0x09

Definition at line 33 of file hal_usb_desc.h.

#define USB_REQ_GET_INTERFACE   0x0a

Definition at line 34 of file hal_usb_desc.h.

#define USB_REQ_SET_INTERFACE   0x0b

Definition at line 35 of file hal_usb_desc.h.

#define USB_REQ_SYNCH_FRAME   0x0c

Definition at line 36 of file hal_usb_desc.h.

#define USB_DESC_DEVICE   0x01

Definition at line 39 of file hal_usb_desc.h.

#define USB_DESC_CONFIGURATION   0x02

Definition at line 40 of file hal_usb_desc.h.

#define USB_DESC_STRING   0x03

Definition at line 41 of file hal_usb_desc.h.

#define USB_DESC_INTERFACE   0x04

Definition at line 42 of file hal_usb_desc.h.

#define USB_DESC_ENDPOINT   0x05

Definition at line 43 of file hal_usb_desc.h.

#define USB_DESC_DEVICE_QUAL   0x06

Definition at line 44 of file hal_usb_desc.h.

#define USB_DESC_OTHER_SPEED_CONF   0x07

Definition at line 45 of file hal_usb_desc.h.

#define USB_DESC_INTERFACE_POWER   0x08

Definition at line 46 of file hal_usb_desc.h.

#define USB_DESC_OTG   0x09

Definition at line 47 of file hal_usb_desc.h.

#define USB_DESC_DEBUG   0x0A

Definition at line 48 of file hal_usb_desc.h.

#define USB_DESC_INTERFACE_ASSOC   0x0B

Definition at line 49 of file hal_usb_desc.h.

#define USB_ENDPOINT_TYPE_CONTROL   0x00

Definition at line 51 of file hal_usb_desc.h.

#define USB_ENDPOINT_TYPE_ISOCHRONOUS   0x01

Definition at line 52 of file hal_usb_desc.h.

#define USB_ENDPOINT_TYPE_BULK   0x02

Definition at line 53 of file hal_usb_desc.h.

#define USB_ENDPOINT_TYPE_INTERRUPT   0x03

Definition at line 54 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_RESERVED   0x00

Definition at line 57 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_AUDIO   0x01

Definition at line 58 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_COMMUNICATIONS   0x02

Definition at line 59 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_HUMAN_INTERFACE   0x03

Definition at line 60 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_MONITOR   0x04

Definition at line 61 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_PHYSICAL_INTERFACE   0x05

Definition at line 62 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_POWER   0x06

Definition at line 63 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_PRINTER   0x07

Definition at line 64 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_STORAGE   0x08

Definition at line 65 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_HUB   0x09

Definition at line 66 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_APPLICATION_SPECIFIC   0xFE

Definition at line 67 of file hal_usb_desc.h.

#define USB_DEVICE_CLASS_VENDOR_SPECIFIC   0xFF

Definition at line 68 of file hal_usb_desc.h.

#define USB_CLASS_DESCRIPTOR_HID   0x21

Definition at line 71 of file hal_usb_desc.h.

#define USB_CLASS_DESCRIPTOR_REPORT   0x22

Definition at line 72 of file hal_usb_desc.h.

#define USB_CLASS_DESCRIPTOR_PHYSICAL_DESCRIPTOR   0x23

Definition at line 73 of file hal_usb_desc.h.

#define USB_DEVICE_REMOTE_WAKEUP   0x01

Definition at line 75 of file hal_usb_desc.h.

#define USB_ENDPOINT_HALT   0x00

Definition at line 76 of file hal_usb_desc.h.

#define USB_TEST_MODE   0x02

Definition at line 77 of file hal_usb_desc.h.