Before use the library must be initialized, this is achieved simply by calling the usblib_init() function call. Similarly usblib_stop() should be called to free any allocated resources and cleanly shutdown the library.
In addition to these calls module drivers which may be instantiated before the core usb modules have started may use the Service_USB 16 - USB system module started to detect the USB system starting, they should use usblib_core_start() to start the parts of the library associated with the core starting and usblib_core_stop() when receiving the Service_USB 17 - USB system module stopped service call.