Hi
In the uTasker project the user's task receives an event E_USB_ACTIVATE_CONFIGURATION when enumeration has completed and an active configuration is to be activated. This is used as confirmation of successful enumeration, and so that a USB Host is present and has completed this communication initialisation.
Your framework routine looks to give you a call back which you enter which will be executed when the USB state changes and so is probably suitable. The documentation probably describes the callback event numbers used, but you may need to be careful that it may be a callback form an interrupt routine and thus will need to be handled quickly to potentially avoid blocking the system.
You can also try it out and see which events are received and when - again be carefully because if you use a debugger to break in the routine it will tend to cause USB enumeration failure since this has quite strict timing requirements; it is better to "record" the events received and look at them later.
Regards
Mark