SAM3S8/SD8 Software Package: USB Device Attributes

SAM3S8/SD8 Software Package 1.2
Defines

# 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_POWER(power) (power / 2)

## Detailed Description

This section lists the codes of the usb attributes.

- USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP
- USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP
- USBConfigurationDescriptor_BUSPOWERED_RWAKEUP
- USBConfigurationDescriptor_SELFPOWERED_RWAKEUP
- USBConfigurationDescriptor_POWER

## Define Documentation

#define USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP 0x80

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

Definition at line 128 of file USBDescriptors.h.

#define USBConfigurationDescriptor_BUSPOWERED_RWAKEUP 0xA0

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

Definition at line 132 of file USBDescriptors.h.

#define USBConfigurationDescriptor_POWER | ( |  | power ) | (power / 2)

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 139 of file USBDescriptors.h.

#define USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP 0xC0

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

Definition at line 130 of file USBDescriptors.h.

#define USBConfigurationDescriptor_SELFPOWERED_RWAKEUP 0xE0

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

Definition at line 134 of file USBDescriptors.h.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines