This MDK-Middleware example project implements a USB Device that exchanges data with a USB Host using Human Interface Device (HID) class.
For detailed description see USB Device HID Example section in MDK-Middleware documentation.
For successful build and operation the project needs to be extended with a board layer that implements required connections to the target hardware interfaces. For details see example documentation referenced above.
A graphical HID Client program is available for the USB Host Computer (Windows only) to interface with the LEDs and buttons on the target USB Device.