Configuration of the USB Device CDC (ACM) Class in µVision.
More...
Configuration of the USB Device CDC (ACM) 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_ACM_n.c.
CDC Class Configuration File
The USB Device CDC Class configuration file USBD_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. Select the
Abstract
Control
Model
.
- 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
- Full/Low-speed (High-speed disabled): These parameters apply when High-speed is disabled in USBD_Config_n.c:
- Maximum Endpoint Packet Size (in bytes) specifies the physical packet size used for information exchange.
- Endpoint polling Interval (in ms) specifies the frequency of requests initiated by USB Host for getting a notification.
- High-speed: These parameters apply when High-speed is enabled in USBD_Config_n.c:
- Maximum Endpoint Packet Size (in bytes) specifies the physical packet size used for information exchange.
- Endpoint polling Interval (in ms) specifies the frequency of requests initiated by USB Host for getting a notification.
- Additional transactions per microframe improve communication performance.
- 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
- Full/Low-speed (High-speed disabled): These parameters apply when High-speed is disabled in USBD_Config_n.c:
- Maximum Endpoint Packet Size (in bytes) specifies the physical packet size used for information exchange.
- Maximum NAK Rate specifies the interval in which Bulk Endpoint can NAK.
- High-speed: These parameters apply when High-speed is enabled in USBD_Config_n.c:
- Maximum Endpoint Packet Size (in bytes) specifies the physical packet size used for information exchange.
- Maximum NAK Rate specifies the interval in which Bulk Endpoint can NAK.
- Communication Class Settings
- Communication Class Interface String is used to create USB Descriptors.
- Data Class Interface String is used to create USB Descriptors.
- Abstract Control Model Settings
- 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.
- Network Control Model Settings are only valid for the Network Control Model sub-class.
- 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.