Data Fields

hal_usb_device_req Struct Reference
[Universal Serial Bus (hal_usb)]

#include <hal_usb.h>

Data Fields

uint8_t bmRequestType
uint8_t bRequest
uint8_t wValueMsb
uint8_t wValueLsb
uint8_t wIndex
uint8_t wLength

Detailed Description

Structure containing the USB standard request See Chapter 9 USB Device Framework in the USB 2.0 specification.

Definition at line 112 of file hal_usb.h.


Field Documentation

uint8_t bmRequestType

Bitmapped field identifying the characteristics of the request.

  • D7: Data transfer direction
  • 0 = Host-to-device
  • 1 = Device-to-host
  • D6..5: Type
  • 0 = Standard
  • 1 = Class
  • 2 = Vendor
  • 3 = Reserved
  • D4..0: Recipient
  • 0 = Device
  • 1 = Interface
  • 2 = Endpoint
  • 3 = Other
  • 4..31 = Reserved

Definition at line 113 of file hal_usb.h.

uint8_t bRequest

Field specifying request. bmRequestType(Type) modifies the meaning of this field.

Definition at line 131 of file hal_usb.h.

uint8_t wValueMsb

Field used to pass a parameter to the device, specific to the request. MSB

Definition at line 133 of file hal_usb.h.

uint8_t wValueLsb

Field used to pass a parameter to the device, specific to the request. LSB

Definition at line 134 of file hal_usb.h.

uint8_t wIndex

Field used to pass a parameter to the device, specific to the request.

Definition at line 135 of file hal_usb.h.

uint8_t wLength

Field used to specify length of the data transferred during the second phase of the control transfer. Direction of data transfer given by bmRequestType(Direction). If field is zero there is no data transfer phase.

Definition at line 136 of file hal_usb.h.


The documentation for this struct was generated from the following file: