USBD ROM API with custom class

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by JAlvarez on Wed Jul 17 17:08:00 MST 2013
The documentation for the USB ROM APIs does not go in much detail on the implementation of custom classes. There in an FAQ How to implement custom class device? but it is empty. Other parts of the documentation make brief mention of the general steps without much detail. The usb_csc.c example does override the data endpoint handlers with USBD_API->core->RegisterEpHandler() but doesn't override the control ep0 endpoint handler with USBD_API->core->RegisterClassHandler(). Is there a working example of a custom class with the USBD ROM API that overrides the ep0 handler?