![]() |
USB Component
Version 5.1
MDK-Professional Middleware for USB Device and Host
|
The Custom Class has two use cases:
The Custom Class gives full control of the USB handling. It is designed to react on any kind of event on any of the assigned endpoints and to handle any control message that may reach the system. The application has the full capability of dealing with control messages for whatever USB Device class. Message handling control can be taken over from the USB Core. The user code template file USBD_User_CustomClass_n.c contains all the functions that should be adapted to the application's needs.
To create the Custom Class the configuration file providing up to four interfaces that can be configured to use IN/OUT endpoints for bulk, interrupt, and isochronous transfers has been provided.
Every USB Device requires certain descriptors. The following list is not complete but gives an impression about the various descriptors that may be required:
The necessary descriptors are automatically generated by the USB Middleware Component from the Class, Subclass, and Protocol Codes and the Interface String specified in the USBD_Config_Class_0.h file. The page Device Descriptor provides more information on the topic.