Jump to main content

##

# 2.2.5.2 usb_device_config_template.h

## File Name

usb_device_config_template.h

## Description

USB Device Layer Compile Time Options

This file contains USB device layer compile time options (macros) that are to be configured by the user. This file is a template file and must be used as an example only. This file must not be directly included in the project.

## Macros

Name | Description
_USB_DEVICE_CONFIG_TEMPLATE_H_ | This is macro _USB_DEVICE_CONFIG_TEMPLATE_H_.
USB_DEVICE_BOS_DESCRIPTOR_SUPPORT_ENABLE | Specifies if the Device Layer should process a Host request for a BOS descriptor.
USB_DEVICE_DRIVER_INITIALIZE_EXPLICIT | Specifies if the USB Controller Driver must be initialized explicitly as opposed to being initialized by the Device Layer.
USB_DEVICE_ENDPOINT_QUEUE_DEPTH_COMBINED | Specifies the combined endpoint queue depth in case of a vendor USB device implementation.
USB_DEVICE_EP0_BUFFER_SIZE | Buffer Size in Bytes for Endpoint 0.
USB_DEVICE_INSTANCES_NUMBER | Number of Device Layer instances to provisioned in the application.
USB_DEVICE_MICROSOFT_OS_DESCRIPTOR_SUPPORT_ENABLE | Specifies if the USB Device stack should support Microsoft OS Descriptor.
USB_DEVICE_SET_DESCRIPTOR_EVENT_ENABLE | Enables the Device Layer Set Descriptor Event.
USB_DEVICE_SOF_EVENT_ENABLE | Enables the Device Layer SOF event.
USB_DEVICE_STRING_DESCRIPTOR_TABLE_ADVANCED_ENABLE | Specifying this macro enables the Advanced String Descriptor Table Entry Format.
USB_DEVICE_SYNCH_FRAME_EVENT_ENABLE | Enables the Device Layer Synch Frame Event.