Silicon Laboratories SiM3U1xx Manual do Utilizador Página 17

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 30
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 16
AN758
Rev. 0.1 17
5.3.10. USB CDC Descriptors
Device descriptor structure, this descriptor, located in flash memory, describes the overall device characteristics,
including the supported USB version, control endpoint size and the number of device configurations. The
descriptor is read out by the USB host when the enumeration process begins.
const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
{
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type =
DTYPE_Device},
.USBSpecification = VERSION_BCD(01.10),
.Class = CDC_CSCP_CDCClass,
.SubClass = CDC_CSCP_NoSpecificSubclass,
.Protocol = CDC_CSCP_NoSpecificProtocol,
.Endpoint0Size = ENDPOINT_CONTROLEP_DEFAULT_SIZE,
.VendorID = 0x10C4,
.ProductID = 0xA003,
.ReleaseNumber = VERSION_BCD(00.01),
.ManufacturerStrIndex = 0x01,
.ProductStrIndex = 0x02,
.SerialNumStrIndex = USE_INTERNAL_SERIAL,
.NumberOfConfigurations = 1
};
Type defines for the device configuration descriptor structure. As the configuration descriptor contains several sub-
descriptors which vary between devices, and which describe the device's usage to the host. Detail definition can be
found in Descriptors.c.
typedef struct
{
USB_Descriptor_Configuration_Header_t Config;
// CDC Control Interface
USB_Descriptor_Interface_t CDC_CCI_Interface;
USB_CDC_Descriptor_FunctionalHeader_t CDC_Functional_Header;
USB_CDC_Descriptor_FunctionalACM_t CDC_Functional_ACM;
USB_CDC_Descriptor_FunctionalUnion_t CDC_Functional_Union;
USB_Descriptor_Endpoint_t CDC_NotificationEndpoint;
// CDC Data Interface
USB_Descriptor_Interface_t CDC_DCI_Interface;
USB_Descriptor_Endpoint_t CDC_DataOutEndpoint;
USB_Descriptor_Endpoint_t CDC_DataInEndpoint;
} USB_Descriptor_Configuration_t;
Vista de página 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 29 30

Comentários a estes Manuais

Sem comentários