Renumeration in firmware for FX1/FX2LP

Question: How can I do renumeration in firmware?



At any point of time, by setting DISCON bit in USBCS register , a USB Bus disconnect can be simulated. Clearing this puts the device back on bus re-enumerating the device again, without physically unplugging and re plugging. RENUM bit in USBCS can be used in Firmware to tell FX2LP to report default descriptors/ customer defined descriptors also.

The below line of code will renumerate the device,