Configuration of the USB Device CDC Class in µVision.
More...
Configuration of the USB Device CDC Class in µVision.
This configuration file defines:
- The assignment of the CDC class to the USB Device instance.
- USB Endpoint assignments for the CDC class with parameters for Full/Low-speed and High-speed communication.
- Class Settings for the Interface Descriptor.
These settings are used to create the Interface Descriptor and Endpoint Descriptor of the related USB Device Class. It is important that the settings match the application specific behavior in the related C source file USBD_User_CDC_n.c.
CDC Class Configuration File
The USB Device CDC Class configuration file USBH_Config_CDC_n.h contains the following settings:
- Assign Device Class to USB Device # selects USB Device that is used for this Device Class instance.
- Communication Class Subclass specifies the model used by the CDC class. Currently, only Abstract Control Model is supported.
- Interrupt Endpoint Settings
- Interrupt IN Endpoint Number sets the number of the endpoint to be used. Conflicting settings are flagged by compile-time error messages.
- Endpoint Settings
- Maximum Endpoint Packet Size (in bytes) specifies the physical packet size used for information exchange. This setting is available for low-/full- and high-speed devices.
- Endpoint polling Interval (in ms) specifies the frequency of requests initiated by USB Host for getting a notification. This setting is available for low-/full- and high-speed devices.
- Additional transactions per microframe improve communication performance. This setting is available only for high-speed devices.
- Bulk Endpoint Settings
- Bulk IN Endpoint Number sets the number of the endpoint to be used. Conflicting settings are flagged by compile-time error messages.
- Bulk OUT Endpoint Number sets the number of the endpoint to be used. Conflicting settings are flagged by compile-time error messages.
- Endpoint Settings
- Maximum Endpoint Packet Size (in bytes) specifies the physical packet size used for information exchange. This setting is available for low-/full- and high-speed devices.
- Maximum NAK Rate specifies the interval in which Bulk Endpoint can NAK. This setting is available only for high-speed devices.
- Communication Class Settings
- Communication Class Interface String is used to create USB Descriptors.
- Data Class Interface String is used to create USB Descriptors.
- Maximum Communication Device Send Buffer Size is used for memory allocation in the USB component.
- Maximum Communication Device Receive Buffer Size is used for memory allocation in the USB component.
- OS Resources Settings .
- Communication Device Class Interrupt Endpoint Thread Stack Size is used for memory allocation in the USB component.
- Communication Device Class Bulk Endpoints Thread Stack Size is used for memory allocation in the USB component.