Skip to main content


Disables the imp005’s USB


Device (from impOS™ 34)
Only available on the imp005




This method disables the USB. This will also close all the endpoints, so any subsequent attempt to use them for transfers will result in an error. Unplugging the device will have the same effect. To re-use the device, you must re-open the endpoint(s) using usb.openendpoint() when the device returns.

Certain classes of USB error, such as unending bulk transfers and halted control transfers, require that the bus be reset. This is done by disabling and re-enabling (re-configuring) the bus by calling usb.disable() and then calling usb.configure() to reconfigure the connected device.