EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
em_usbxpress_descriptors.h File Reference

Detailed Description

Header file for USB and VCP Initial Descriptors.

Version
5.1.2

License

Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com

This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file em_usbxpress_descriptors.h.

Go to the source code of this file.

Data Structures

struct  USB_CompatFunctionDesc_t
 Compatible ID Function Descriptor Typedef. More...
 
struct  USB_ExtendedCompatIdOsFeatureDesc_t
 Compatible ID Feature Descriptor Typedef. More...
 
struct  USB_ExtendedPropertiesDescriptor_t
 Extended Properties Descriptor Typedef. More...
 

Macros

#define EXT_COMP_DESC_SIZE   sizeof(USB_ExtendedCompatIdOsFeatureDesc_t)
 Size of Extended Compatibility Descriptor.
 
#define EXT_COMP_VENDOR_CODE   1
 Vendor-defined Extended Compatibility Code.
 
#define EXTENDED_PROPERTY_TYPE_MULTI_SZ   7
 Multiple NUL-terminated Unicode Strings.
 
#define EXTENDED_PROPERTY_TYPE_REG_BINARY   3
 Free-form Binary Data.
 
#define EXTENDED_PROPERTY_TYPE_REG_DWORD_BIG_ENDIAN   5
 DWORD Value, Big Endian.
 
#define EXTENDED_PROPERTY_TYPE_REG_DWORD_LITTLE_ENDIAN   4
 DWORD Value, Little Endian.
 
#define EXTENDED_PROPERTY_TYPE_REG_EXPAND_SZ   2
 that may include environment variables More...
 
#define EXTENDED_PROPERTY_TYPE_REG_LINK   6
 that may include a symbolic link More...
 
#define EXTENDED_PROPERTY_TYPE_REG_SZ   1
 NUL-terminated UNICODE String.
 
#define FEATURE_EXTENDED_COMPATIBILITY_ID   4
 Extended Compatibility ID Descriptor.
 
#define FEATURE_EXTENDED_PROPERTIES_ID   5
 Extended Properties ID Descriptor.
 
#define FEATURE_GENRE   1
 Genre Descriptor.
 
#define GUID_PROPERTY
 GUID Property (USBXpress Device Interface GUID - {3C5E1462-5695-4e18-876B-F3F3D08AAF18})
 
#define GUID_PROPERTY_DESCRIPTOR_SIZE   (14 + GUID_PROPERTY_NAME_LEN + GUID_PROPERTY_LEN)
 Size of Property Descriptor for the GUID Property.
 
#define GUID_PROPERTY_LEN   (sizeof("{3C5E1462-5695-4e18-876B-F3F3D08AAF18}\0") * 2)
 Length of GUID Property.
 
#define GUID_PROPERTY_NAME
 GUID Property Name (DeviceInterfaceGUIDs) More...
 
#define GUID_PROPERTY_NAME_LEN   sizeof ("DeviceInterfaceGUIDs") * 2
 Length of GUID Property Name.
 
#define NUM_IFCS_WITH_EXT_COMPAT   1
 Number of interfaces with extended compatibility descriptors.
 
#define PROPERTIES_DESCRIPTOR_SIZE   (10 + GUID_PROPERTY_DESCRIPTOR_SIZE)
 Total Size of Extended Properties Descriptor.
 
#define USB_PRODUCT_ID   0x0000
 
#define USB_VENDOR_ID   USB_VENDOR_ID_SILICON_LABS
 
#define USBXPRESS_IFC_NUMBER   0
 
#define USBXPRESS_IN_EP_ADDR   0x81
 
#define USBXPRESS_OUT_EP_ADDR   0x01
 
#define USBXPRESS_SETUP_EP_ADDR   0x00
 

Variables

const uint8_t USBXCORE_buffMult []
 USB Buffer Multiplier. More...
 
const uint8_t USBXCORE_configDescInit []
 USB Configuration Descriptor.
 
const USB_DeviceDescriptor_TypeDef USBXCORE_deviceDescInit
 
const USB_ExtendedCompatIdOsFeatureDesc_t USBXCORE_extendedCompatIdOsFeatureDesc
 
const USB_ExtendedPropertiesDescriptor_t USBXCORE_extendedPropertiesDesc
 
const uint8_t USBXCORE_microsoftOsDesc []
 
const uint8_t USBXCORE_stringLangDesc []
 USB Language String Descriptor. More...
 

Macro Definition Documentation

#define EXTENDED_PROPERTY_TYPE_REG_EXPAND_SZ   2

that may include environment variables

NUL-terminated Unicode String,

Definition at line 61 of file em_usbxpress_descriptors.h.

#define EXTENDED_PROPERTY_TYPE_REG_LINK   6

that may include a symbolic link

NUL-terminated Unicode String,

Definition at line 66 of file em_usbxpress_descriptors.h.

#define GUID_PROPERTY_NAME
Value:
{ \
'D', 0, \
'e', 0, \
'v', 0, \
'i', 0, \
'c', 0, \
'e', 0, \
'I', 0, \
'n', 0, \
't', 0, \
'e', 0, \
'r', 0, \
'f', 0, \
'a', 0, \
'c', 0, \
'e', 0, \
'G', 0, \
'U', 0, \
'I', 0, \
'D', 0, \
's', 0, \
'\0',0, \
}

GUID Property Name (DeviceInterfaceGUIDs)

Definition at line 74 of file em_usbxpress_descriptors.h.

Variable Documentation

const uint8_t USBXCORE_buffMult ( )
Initial value:
=
{ 1, 2, 2 }

USB Buffer Multiplier.

Referenced by USBX_init().

const uint8_t USBXCORE_microsoftOsDesc ( )
Initial value:
=
{
'M', 0,
'S', 0,
'F', 0,
'T', 0,
'1', 0,
'0', 0,
'0', 0,
}
#define MSOS_DESC_LEN
Microsoft OS Descriptor.
#define EXT_COMP_VENDOR_CODE
Vendor-defined Extended Compatibility Code.
const uint8_t USBXCORE_stringLangDesc ( )
Initial value:
=
{
0x04, 0x03, 0x09, 0x04
}

USB Language String Descriptor.

Referenced by USBX_init().