MDK-Middleware provides a USB Device Reference Example that contains following projects implementing specific USB Device functionality:
See CMSIS-Toolbox - Reference Applications to learn more about the reference application concept in Open CMSIS Pack used by these examples.