Renumeration in firmware for FX1/FX2LP

Version 1
    Question: How can I do renumeration in firmware?

     

    Answer:

    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,

    EZUSB_Discon(TRUE);