Hanna
Sourcecode Kontrollplatine
Datenfelder
ATTR_PACKED Strukturreferenz

#include <Descriptors.h>

Datenfelder

uint8_t AlternateSetting
 
uint8_t Attributes
 
uint8_t bAlternateSetting
 
uint32_t BaudRateBPS
 
uint16_t bcdCDC
 
uint16_t bcdDevice
 
uint16_t bcdUSB
 
uint8_t bConfigurationValue
 
uint8_t bDescriptorSubType
 
uint8_t bDescriptorType
 
uint8_t bDeviceClass
 
uint8_t bDeviceProtocol
 
uint8_t bDeviceSubClass
 
uint8_t bEndpointAddress
 
uint8_t bFirstInterface
 
uint8_t bFunctionClass
 
uint8_t bFunctionLength
 
uint8_t bFunctionProtocol
 
uint8_t bFunctionSubClass
 
uint8_t bInterfaceClass
 
uint8_t bInterfaceCount
 
uint8_t bInterfaceNumber
 
uint8_t bInterfaceProtocol
 
uint8_t bInterfaceSubClass
 
uint8_t bInterval
 
uint8_t bLength
 
uint8_t bMasterInterface
 
uint8_t bmAttributes
 
uint8_t bMaxPacketSize0
 
uint8_t bMaxPower
 
uint8_t bmCapabilities
 
uint8_t bNumConfigurations
 
uint8_t bNumEndpoints
 
uint8_t bNumInterfaces
 
uint8_t bReserved
 
uint8_t bSlaveInterface0
 
uint16_t bString []
 
uint8_t Capabilities
 
uint16_t CDCSpecification
 
uint8_t CharFormat
 
uint8_t Class
 
uint8_t ConfigAttributes
 
uint8_t ConfigurationNumber
 
uint8_t ConfigurationStrIndex
 
uint8_t DataBits
 
uint8_t Endpoint0Size
 
uint8_t EndpointAddress
 
uint16_t EndpointSize
 
uint8_t FirstInterfaceIndex
 
USB_Descriptor_Header_t Header
 
uint8_t IADStrIndex
 
uint8_t iConfiguration
 
uint16_t idProduct
 
uint16_t idVendor
 
uint8_t iFunction
 
uint8_t iInterface
 
uint8_t iManufacturer
 
uint8_t InterfaceNumber
 
uint8_t InterfaceStrIndex
 
uint8_t iProduct
 
uint8_t iSerialNumber
 
uint8_t ManufacturerStrIndex
 
uint8_t MasterInterfaceNumber
 
uint8_t MaxPowerConsumption
 
uint8_t NumberOfConfigurations
 
uint8_t ParityType
 
uint8_t PollingIntervalMS
 
uint16_t ProductID
 
uint8_t ProductStrIndex
 
uint8_t Protocol
 
uint16_t ReleaseNumber
 
uint8_t Reserved
 
uint8_t SerialNumStrIndex
 
uint8_t Size
 
uint8_t SlaveInterfaceNumber
 
uint8_t SubClass
 
uint8_t Subtype
 
uint16_t TotalConfigurationSize
 
uint8_t TotalEndpoints
 
uint8_t TotalInterfaces
 
uint8_t Type
 
wchar_t UnicodeString []
 
uint16_t USBSpecification
 
uint16_t VendorID
 
uint16_t wMaxPacketSize
 
uint16_t wTotalLength
 

Ausführliche Beschreibung

CDC class-specific Functional Header Descriptor (LUFA naming conventions).

Type define for a CDC class-specific functional header descriptor. This indicates to the host that the device contains one or more CDC functional data descriptors, which give the CDC interface's capabilities and configuration. See the CDC class specification for more details.

Siehe auch
USB_CDC_StdDescriptor_FunctionalHeader_t for the version of this type with standard element names.
Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

CDC class-specific Functional Header Descriptor (USB-IF naming conventions).

Type define for a CDC class-specific functional header descriptor. This indicates to the host that the device contains one or more CDC functional data descriptors, which give the CDC interface's capabilities and configuration. See the CDC class specification for more details.

Siehe auch
USB_CDC_Descriptor_FunctionalHeader_t for the version of this type with non-standard LUFA specific element names.
Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

CDC class-specific Functional ACM Descriptor (LUFA naming conventions).

Type define for a CDC class-specific functional ACM descriptor. This indicates to the host that the CDC interface supports the CDC ACM subclass of the CDC specification. See the CDC class specification for more details.

Siehe auch
USB_CDC_StdDescriptor_FunctionalACM_t for the version of this type with standard element names.
Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

CDC class-specific Functional ACM Descriptor (USB-IF naming conventions).

Type define for a CDC class-specific functional ACM descriptor. This indicates to the host that the CDC interface supports the CDC ACM subclass of the CDC specification. See the CDC class specification for more details.

Siehe auch
USB_CDC_Descriptor_FunctionalACM_t for the version of this type with non-standard LUFA specific element names.
Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

CDC class-specific Functional Union Descriptor (LUFA naming conventions).

Type define for a CDC class-specific functional Union descriptor. This indicates to the host that specific CDC control and data interfaces are related. See the CDC class specification for more details.

Siehe auch
USB_CDC_StdDescriptor_FunctionalUnion_t for the version of this type with standard element names.
Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

CDC class-specific Functional Union Descriptor (USB-IF naming conventions).

Type define for a CDC class-specific functional Union descriptor. This indicates to the host that specific CDC control and data interfaces are related. See the CDC class specification for more details.

Siehe auch
USB_CDC_Descriptor_FunctionalUnion_t for the version of this type with non-standard LUFA specific element names.
Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

CDC Virtual Serial Port Line Encoding Settings Structure.

Type define for a CDC Line Encoding structure, used to hold the various encoding parameters for a virtual serial port.

Zu beachten
Regardless of CPU architecture, these values should be stored as little endian.

Definiert in Zeile 246 der Datei Descriptors.h.

Dokumentation der Datenelemente

uint8_t ATTR_PACKED::AlternateSetting

Alternate setting for the interface number. The same interface number can have multiple alternate settings with different endpoint configurations, which can be selected by the host.

Definiert in Zeile 464 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Attributes

Endpoint attributes, comprised of a mask of the endpoint type (EP_TYPE_*) and attributes (ENDPOINT_ATTR_*) masks.

Definiert in Zeile 538 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bAlternateSetting

Alternate setting for the interface number. The same interface number can have multiple alternate settings with different endpoint configurations, which can be selected by the host.

Definiert in Zeile 485 der Datei usb_defaults.h.

uint32_t ATTR_PACKED::BaudRateBPS

Baud rate of the virtual serial port, in bits per second.

Definiert in Zeile 377 der Datei Descriptors.h.

uint16_t ATTR_PACKED::bcdCDC

Version number of the CDC specification implemented by the device, encoded in BCD format.

Definiert in Zeile 277 der Datei Descriptors.h.

uint16_t ATTR_PACKED::bcdDevice

Product release (version) number.

Definiert in Zeile 355 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::bcdUSB

BCD of the supported USB specification.

Definiert in Zeile 348 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bConfigurationValue

Configuration index of the current configuration.

Definiert in Zeile 448 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bDescriptorSubType

Sub type value used to distinguish between CDC class-specific descriptors, must be CDC_DSUBTYPE_CSInterface_Header.

Sub type value used to distinguish between CDC class-specific descriptors, must be CDC_DSUBTYPE_CSInterface_ACM.

Sub type value used to distinguish between CDC class-specific descriptors, must be CDC_DSUBTYPE_CSInterface_Union.

Definiert in Zeile 274 der Datei Descriptors.h.

uint8_t ATTR_PACKED::bDescriptorType

Type of the descriptor, either a value in USB_DescriptorTypes_t or a value given by the specific class.

Definiert in Zeile 271 der Datei Descriptors.h.

uint8_t ATTR_PACKED::bDeviceClass

USB device class.

Definiert in Zeile 349 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bDeviceProtocol

USB device protocol.

Definiert in Zeile 351 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bDeviceSubClass

USB device subclass.

Definiert in Zeile 350 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bEndpointAddress

Logical address of the endpoint within the device for the current configuration, including direction mask.

Definiert in Zeile 555 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bFirstInterface

Index of the first associated interface.

Definiert in Zeile 521 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bFunctionClass

Interface class ID.

Definiert in Zeile 523 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bFunctionLength

Size of the descriptor, in bytes.

Definiert in Zeile 270 der Datei Descriptors.h.

uint8_t ATTR_PACKED::bFunctionProtocol

Interface protocol ID.

Definiert in Zeile 525 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bFunctionSubClass

Interface subclass ID.

Definiert in Zeile 524 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bInterfaceClass

Interface class ID.

Definiert in Zeile 491 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bInterfaceCount

Total number of associated interfaces.

Definiert in Zeile 522 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bInterfaceNumber

Index of the interface in the current configuration.

Definiert in Zeile 484 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bInterfaceProtocol

Interface protocol ID.

Definiert in Zeile 493 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bInterfaceSubClass

Interface subclass ID.

Definiert in Zeile 492 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bInterval

Polling interval in milliseconds for the endpoint if it is an INTERRUPT or ISOCHRONOUS type.

Definiert in Zeile 564 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bLength

Size of the descriptor, in bytes.

Definiert in Zeile 294 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bMasterInterface

Interface number of the CDC Control interface.

Definiert in Zeile 364 der Datei Descriptors.h.

uint8_t ATTR_PACKED::bmAttributes

Configuration attributes, comprised of a mask of zero or more USB_CONFIG_ATTR_* masks.

Endpoint attributes, comprised of a mask of the endpoint type (EP_TYPE_*) and attributes (ENDPOINT_ATTR_*) masks.

Definiert in Zeile 450 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bMaxPacketSize0

Size of the control (address 0) endpoint's bank in bytes.

Definiert in Zeile 352 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bMaxPower

Maximum power consumption of the device while in the current configuration, calculated by the USB_CONFIG_POWER_MA() macro.

Definiert in Zeile 453 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bmCapabilities

Capabilities of the ACM interface, given as a bit mask. For most devices, this should be set to a fixed value of 0x06 - for other capabilities, refer to the CDC ACM specification.

Definiert in Zeile 320 der Datei Descriptors.h.

uint8_t ATTR_PACKED::bNumConfigurations

Total number of configurations supported by the device.

Definiert in Zeile 378 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bNumEndpoints

Total number of endpoints in the interface.

Definiert in Zeile 490 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bNumInterfaces

Total number of interfaces in the configuration.

Definiert in Zeile 447 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bReserved

Reserved for future use, must be 0.

Definiert in Zeile 413 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::bSlaveInterface0

Interface number of the CDC Data interface.

Definiert in Zeile 365 der Datei Descriptors.h.

uint16_t ATTR_PACKED::bString[]

String data, as unicode characters (alternatively, string language IDs). If normal ASCII characters are to be used, they must be added as an array of characters rather than a normal C string so that they are widened to Unicode size.

Under GCC, strings prefixed with the "L" character (before the opening string quotation mark) are considered to be Unicode strings, and may be used instead of an explicit array of ASCII characters.

Definiert in Zeile 582 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Capabilities

Capabilities of the ACM interface, given as a bit mask. For most devices, this should be set to a fixed value of 0x06 - for other capabilities, refer to the CDC ACM specification.

Definiert in Zeile 295 der Datei Descriptors.h.

uint16_t ATTR_PACKED::CDCSpecification

Version number of the CDC specification implemented by the device, encoded in BCD format.

Definiert in Zeile 252 der Datei Descriptors.h.

uint8_t ATTR_PACKED::CharFormat

Character format of the virtual serial port, a value from the CDC_LineEncodingFormats_t enum.

Definiert in Zeile 378 der Datei Descriptors.h.

uint8_t ATTR_PACKED::Class

USB device class.

Interface class ID.

Definiert in Zeile 305 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::ConfigAttributes

Configuration attributes, comprised of a mask of zero or more USB_CONFIG_ATTR_* masks.

Definiert in Zeile 428 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::ConfigurationNumber

Configuration index of the current configuration.

Definiert in Zeile 425 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::ConfigurationStrIndex

Index of a string descriptor describing the configuration.

Definiert in Zeile 426 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::DataBits

Bits of data per character of the virtual serial port.

Definiert in Zeile 384 der Datei Descriptors.h.

uint8_t ATTR_PACKED::Endpoint0Size

Size of the control (address 0) endpoint's bank in bytes.

Definiert in Zeile 309 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::EndpointAddress

Logical address of the endpoint within the device for the current configuration, including direction mask.

Definiert in Zeile 535 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::EndpointSize

Size of the endpoint bank, in bytes. This indicates the maximum packet size that the endpoint can receive at a time.

Definiert in Zeile 541 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::FirstInterfaceIndex

Index of the first associated interface.

Definiert in Zeile 503 der Datei usb_defaults.h.

USB_Descriptor_Header_t ATTR_PACKED::Header

Regular descriptor header containing the descriptor's type and length.

Descriptor header, including type and size.

Definiert in Zeile 248 der Datei Descriptors.h.

uint8_t ATTR_PACKED::IADStrIndex

Index of the string descriptor describing the interface association.

Definiert in Zeile 510 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::iConfiguration

Index of a string descriptor describing the configuration.

Definiert in Zeile 449 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::idProduct

Unique product ID for the USB product.

Definiert in Zeile 354 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::idVendor

Vendor ID for the USB product.

Definiert in Zeile 353 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::iFunction

Index of the string descriptor describing the interface association.

Definiert in Zeile 526 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::iInterface

Index of the string descriptor describing the interface.

Definiert in Zeile 494 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::iManufacturer

String index for the manufacturer's name. The host will request this string via a separate control request for the string descriptor.

Zu beachten
If no string supplied, use NO_DESCRIPTOR.

Definiert in Zeile 356 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::InterfaceNumber

Index of the interface in the current configuration.

Definiert in Zeile 463 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::InterfaceStrIndex

Index of the string descriptor describing the interface.

Definiert in Zeile 475 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::iProduct

String index for the product name/details.

Siehe auch
ManufacturerStrIndex structure entry.

Definiert in Zeile 362 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::iSerialNumber

String index for the product's globally unique hexadecimal serial number, in uppercase Unicode ASCII.

Zu beachten
On some microcontroller models, there is an embedded serial number in the chip which can be used for the device serial number. To use this serial number, set this to USE_INTERNAL_SERIAL. On unsupported devices, this will evaluate to 0 and will cause the host to generate a pseudo-unique value for the device upon insertion.
Siehe auch
ManufacturerStrIndex structure entry.

Definiert in Zeile 366 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::ManufacturerStrIndex

String index for the manufacturer's name. The host will request this string via a separate control request for the string descriptor.

Zu beachten
If no string supplied, use NO_DESCRIPTOR.

Definiert in Zeile 315 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::MasterInterfaceNumber

Interface number of the CDC Control interface.

Definiert in Zeile 341 der Datei Descriptors.h.

uint8_t ATTR_PACKED::MaxPowerConsumption

Maximum power consumption of the device while in the current configuration, calculated by the USB_CONFIG_POWER_MA() macro.

Definiert in Zeile 432 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::NumberOfConfigurations

Total number of configurations supported by the device.

Definiert in Zeile 337 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::ParityType

Parity setting of the virtual serial port, a value from the CDC_LineEncodingParity_t enum.

Definiert in Zeile 381 der Datei Descriptors.h.

uint8_t ATTR_PACKED::PollingIntervalMS

Polling interval in milliseconds for the endpoint if it is an INTERRUPT or ISOCHRONOUS type.

Definiert in Zeile 544 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::ProductID

Unique product ID for the USB product.

Definiert in Zeile 312 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::ProductStrIndex

String index for the product name/details.

Siehe auch
ManufacturerStrIndex structure entry.

Definiert in Zeile 321 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Protocol

USB device protocol.

Interface protocol ID.

Definiert in Zeile 307 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::ReleaseNumber

Product release (version) number.

Definiert in Zeile 313 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Reserved

Reserved for future use, must be 0.

Definiert in Zeile 396 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::SerialNumStrIndex

String index for the product's globally unique hexadecimal serial number, in uppercase Unicode ASCII.

Zu beachten
On some microcontroller models, there is an embedded serial number in the chip which can be used for the device serial number. To use this serial number, set this to USE_INTERNAL_SERIAL. On unsupported devices, this will evaluate to 0 and will cause the host to generate a pseudo-unique value for the device upon insertion.
Siehe auch
ManufacturerStrIndex structure entry.

Definiert in Zeile 325 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Size

Size of the descriptor, in bytes.

Definiert in Zeile 286 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::SlaveInterfaceNumber

Interface number of the CDC Data interface.

Definiert in Zeile 342 der Datei Descriptors.h.

uint8_t ATTR_PACKED::SubClass

USB device subclass.

Interface subclass ID.

Definiert in Zeile 306 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Subtype

Sub type value used to distinguish between CDC class-specific descriptors, must be CDC_DSUBTYPE_CSInterface_Header.

Sub type value used to distinguish between CDC class-specific descriptors, must be CDC_DSUBTYPE_CSInterface_ACM.

Sub type value used to distinguish between CDC class-specific descriptors, must be CDC_DSUBTYPE_CSInterface_Union.

Definiert in Zeile 249 der Datei Descriptors.h.

uint16_t ATTR_PACKED::TotalConfigurationSize

Size of the configuration descriptor header, and all sub descriptors inside the configuration.

Definiert in Zeile 420 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::TotalEndpoints

Total number of endpoints in the interface.

Definiert in Zeile 469 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::TotalInterfaces

Total number of interfaces in the configuration.

Total number of associated interfaces.

Definiert in Zeile 423 der Datei usb_defaults.h.

uint8_t ATTR_PACKED::Type

Type of the descriptor, either a value in USB_DescriptorTypes_t or a value given by the specific class.

Definiert in Zeile 287 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::USBSpecification

BCD of the supported USB specification.

Definiert in Zeile 304 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::VendorID

Vendor ID for the USB product.

Definiert in Zeile 311 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::wMaxPacketSize

Size of the endpoint bank, in bytes. This indicates the maximum packet size that the endpoint can receive at a time.

Definiert in Zeile 561 der Datei usb_defaults.h.

uint16_t ATTR_PACKED::wTotalLength

Size of the configuration descriptor header, and all sub descriptors inside the configuration.

Definiert in Zeile 444 der Datei usb_defaults.h.