2.2.3.11 Configuration On MCC
Number of Endpoints
Symbol name:-CONFIG_USB_DEVICE_ENDPOINTS_NUMBER
This symbol signifies the total number of endpoints utilized by this instance of the device layer.
USB Controller instance
Symbol name:- USB_DEVICE_INDEX
This symbol signifies which specific instance of the Controller is connected to the current instance of the device layer.
Vendor ID
Symbol name: CONFIG_USB_DEVICE_VENDOR_ID_IDX0
Here we specify the Vendor ID (VID) to be specified in the Device Descriptor. This should be a value assigned by the USB IF. The value 0x04D8 is assigned to Microchip Technology Inc.
Product ID Selection
Symbol name: CONFIG_USB_DEVICE_PRODUCT_ID_SELECTION_IDX0
Here we Choose from a list of available demo applications with pre-assigned Product IDs or choose the 'Enter Product ID' option to enter a custom Product ID. This value is then assigned as the PID in the Device Descriptor.
Product ID
Symbol name: CONFIG_USB_DEVICE_PRODUCT_ID_IDX0
If the Product ID selection is set to a available demo application, then this field is automatically populated with the Product ID of that demo application. If the Product ID selection is set to 'Enter Product ID' option, then enter the 16-bit Product ID in this field.
Manufacturer String
Symbol name: CONFIG_USB_DEVICE_MANUFACTURER_STRING
Here we specify the Manufacturer String.
Product String Selection
Symbol Name: CONFIG_USB_DEVICE_PRODUCT_STRING_DESCRIPTOR
If the Product ID selection is set to a available demo application, then this field is automatically populated with the Product String that describes the demo application. If the Product ID selection is set to 'Enter Product ID' option, then enter the Product String in this field.
Add Device Serial Number
Symbol Name: CONFIG_USB_DEVICE_PRODUCT_STRING_DESCRIPTORThis option is enabled to add Device Serial Number.
Serial Number
Symbol Name: CONFIG_USB_DEVICE_SERIAL_NUMBER_STRING_DESCRIPTOR
Enter Device Serial Number here. The Serial Number will be added as a String descriptor table.
Self Powered
Symbol Name: CONFIG_USB_DEVICE_ATTRIBUTE_SELF_POWERED
Enable this option if the USB Device is Self Powered. If not it implies that the Device is Bus Powered.
Remote Wakeup Feature
Symbol Name: CONFIG_USB_DEVICE_ATTRIBUTE_REMOTE_WAKEUP
Enable this option if the USB Device supports remote wakeup feature. This informs the Host that the device is capable of generating wakeup signal when the bus is suspended.
Maximum Power (mA)
Symbol Name: CONFIG_USB_DEVICE_MAX_POWER
Maximum power consumption in mA of the USB device from the bus in this specific configuration when the device is fully operational.
Number of Endpoints
Symbol Name:-CONFIG_USB_DEVICE_ENDPOINTS_NUMBER
This symbol is used to specify the total number of endpoints used for this instance of the Device layer. Refer to Device Datasheet for details on available endpoints and limitations
Configuration Descriptor Size
Symbol Name:- CONFIG_USB_DEVICE_CONFIG_DESCRPTR_SIZE
This symbol specifies the size of the configuration descriptor. The default value of this symbol is 9 by default. The USB configuration descriptor is used to describe information such as the power requirements of the device, the number of interfaces it has, and the number of configurations available.
Enable Interface Association Descriptor(IAD)
Symbol Name:- CONFIG_USB_DEVICE_DESCRIPTOR_IAD_ENABLE
This option is enabled to generate a Interface Association Descriptor (IAD). This option should be enabled in case multiple interfaces are included in the Device. Enabling the option will update the Class, Subclass fields in the Device Descriptor to indicate that the device uses IAD.