Macros
USB Device Attributes
Collaboration diagram for USB Device Attributes:

Macros

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

Detailed Description

This section lists the codes of the usb attributes.

Macro Definition Documentation

◆ USB_HOST_POWER_MAX

#define USB_HOST_POWER_MAX   500

Definition at line 255 of file USBDescriptors.h.

◆ USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP

#define USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP   0x80

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

Definition at line 239 of file USBDescriptors.h.

◆ USBConfigurationDescriptor_BUSPOWERED_RWAKEUP

#define USBConfigurationDescriptor_BUSPOWERED_RWAKEUP   0xA0

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

Definition at line 243 of file USBDescriptors.h.

◆ USBConfigurationDescriptor_POWER

#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
powerThe 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.

◆ USBConfigurationDescriptor_REMOTE_WAKEUP

#define USBConfigurationDescriptor_REMOTE_WAKEUP   0x20

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

Definition at line 247 of file USBDescriptors.h.

◆ USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP

#define USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP   0xC0

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

Definition at line 241 of file USBDescriptors.h.

◆ USBConfigurationDescriptor_SELFPOWERED_RWAKEUP

#define USBConfigurationDescriptor_SELFPOWERED_RWAKEUP   0xE0

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

Definition at line 245 of file USBDescriptors.h.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:09