2.7.3 Configuring the Library

The application designer must specify the following configuration parameters while implementing the Generic USB Device. The configuration macros that implement these parameters must be located in the system_config.h file in the application project and a compiler include path (to point to the folder that contains this file) should be specified.

Configuration Macro Name Description Comments
USB_DEVICE_ENDPOINT_QUEUE_DEPTH_COMBINEDSize of buffer object pool for Endpoint Read and Endpoint Write functions. This macro defines the total number of transfers that can be queued across all Generic USB Device endpoints. The number of read transfers that can be queued is specified by the endpointQueueSizeRead member of the USB_DEVICE_INIT data structure. The number of write transfers that can be queued is specified by the endpointQueueSizeWrite member of the USB_DEVICE_INIT data structure.
Configuration on MCCThis section describes the symbols available in the MCC that can be configured.