SAMV71 Xplained Ultra Software Package 1.4

USB Device Attributes
[USB Descriptors]

Collaboration diagram for USB Device Attributes:

Defines

#define USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP   0x80
#define USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP   0xC0
#define USBConfigurationDescriptor_BUSPOWERED_RWAKEUP   0xA0
#define USBConfigurationDescriptor_SELFPOWERED_RWAKEUP   0xE0
#define USBConfigurationDescriptor_REMOTE_WAKEUP   0x20
#define USBConfigurationDescriptor_POWER(power)   (power / 2)
#define USB_HOST_POWER_MAX   500

Detailed Description

This section lists the codes of the usb attributes.


Define Documentation

#define USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP   0x80

Device is bus-powered and not support remote wake-up.

Definition at line 239 of file USBDescriptors.h.

#define USBConfigurationDescriptor_BUSPOWERED_RWAKEUP   0xA0

Device is bus-powered and supports remote wake-up.

Definition at line 243 of file USBDescriptors.h.

#define USBConfigurationDescriptor_POWER (   power  )     (power / 2)

Device is bus-powered and supports remote wake-up. Calculates the value of the power consumption field given the value in mA.

Parameters:
power The power consumption value in mA
Returns:
The value that should be set to the field in descriptor

Definition at line 253 of file USBDescriptors.h.

#define USBConfigurationDescriptor_REMOTE_WAKEUP   0x20

Device is self-powered and supports remote wake-up.

Definition at line 247 of file USBDescriptors.h.

#define USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP   0xC0

Device is self-powered and not support remote wake-up.

Definition at line 241 of file USBDescriptors.h.

#define USBConfigurationDescriptor_SELFPOWERED_RWAKEUP   0xE0

Device is self-powered and supports remote wake-up.

Definition at line 245 of file USBDescriptors.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines