Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

The following structures provide predefined USB interface descriptors.

It must be used to define the final USB descriptors.

Data Structures

struct  udi_phdc_desc_t
 
struct  udi_phdc_fnctext_desc_t
 

Macros

#define UDI_PHDC_BMCAPABILITY   USB_PHDC_CAPABILITY_METADATAMSG_PREAMBLE
 
#define UDI_PHDC_DESC
 
#define UDI_PHDC_EP_INTIN
 
#define UDI_PHDC_FNCTEXT
 
#define UDI_PHDC_METADATA_BULKIN
 
#define UDI_PHDC_METADATA_BULKOUT
 
#define UDI_PHDC_METADATA_INTIN
 
#define UDI_PHDC_NUM_ENDPOINT   3 /* Bulk IN, bulk OUT, Interrupt IN */
 
#define UDI_PHDC_STRING_ID   0
 

Variables

static le16_t tmp_wDevSpecializations [] = UDI_PHDC_SPECIALIZATION
 

#define UDI_PHDC_BMCAPABILITY   USB_PHDC_CAPABILITY_METADATAMSG_PREAMBLE
#define UDI_PHDC_DESC
#define UDI_PHDC_EP_INTIN
Value:
.ep_int_in.bLength = sizeof(usb_ep_desc_t), \
.ep_int_in.bDescriptorType = USB_DT_ENDPOINT, \
.ep_int_in.bEndpointAddress = UDI_PHDC_EP_INTERRUPT_IN, \
.ep_int_in.bmAttributes = USB_EP_TYPE_INTERRUPT, \
.ep_int_in.wMaxPacketSize = LE16(UDI_PHDC_EP_SIZE_INT_IN), \
.ep_int_in.bInterval = 20, \
.qos_int_in.bLength = sizeof(usb_phdc_qos_desc_t), \
.qos_int_in.bDescriptorType = USB_DT_PHDC_QOS, \
.qos_int_in.bQoSEncodingVersion = USB_PHDC_QOS_ENCODING_VERSION_1, \
.qos_int_in.bmLatencyReliability = USB_PHDC_QOS_LOW_GOOD, \
#define UDI_PHDC_EP_INTERRUPT_IN
Definition: udi_phdc_conf.h:51
PHDC QoS Descriptor.
Definition: usb_protocol_phdc.h:158
Definition: usb_protocol.h:194
Standard USB endpoint descriptor structure.
Definition: usb_protocol.h:461
#define USB_PHDC_QOS_LOW_GOOD
Definition: usb_protocol_phdc.h:122
#define LE16(x)
Definition: compiler.h:773
Definition: usb_protocol_phdc.h:86
Definition: usb_protocol.h:252
Definition: usb_protocol_phdc.h:112
#define UDI_PHDC_METADATA_INTIN
Definition: udi_phdc.h:226
#define UDI_PHDC_EP_SIZE_INT_IN
Definition: udi_phdc_conf.h:56
#define UDI_PHDC_FNCTEXT
Value:
.fnctext.header.bLength = sizeof(udi_phdc_fnctext_desc_t), \
.fnctext.header.bDescriptorType = USB_DT_PHDC_11073PHD_FUNCTION, \
.fnctext.header.bReserved = 0, \
.fnctext.header.bNumDevSpecs = sizeof(tmp_wDevSpecializations) / 2, \
.fnctext.wDevSpecializations = UDI_PHDC_SPECIALIZATION,
Definition: udi_phdc.h:93
static le16_t tmp_wDevSpecializations[]
Definition: udi_phdc.h:91
Definition: usb_protocol_phdc.h:88
#define UDI_PHDC_SPECIALIZATION
Definition: common/services/usb/class/phdc/device/example/conf_usb.h:115
#define UDI_PHDC_METADATA_BULKIN
#define UDI_PHDC_METADATA_BULKOUT
#define UDI_PHDC_METADATA_INTIN
#define UDI_PHDC_NUM_ENDPOINT   3 /* Bulk IN, bulk OUT, Interrupt IN */
#define UDI_PHDC_STRING_ID   0

le16_t tmp_wDevSpecializations[] = UDI_PHDC_SPECIALIZATION
static

Array used only to compute the size of wDevSpecializations through sizeof() during compilation. This array is not used and is removed by compiler.