The API for implementing the Generic USB Device is contained the USB Device Library. Please refer to the Library Interface section in the USB Device Layer Library for more details.