Detecting ports that have been shut off

Sometimes, a USB port is shut off due to electrical conditions. Is there
any way to detect which ports have been shut off? Is it possible to reopen
those ports?

Right now, the only way to do that is to terminate the stack and restart
it.

Rex

Rex Lam <Rex.Lam@igt.com> wrote:

Sometimes, a USB port is shut off due to electrical conditions. Is there
any way to detect which ports have been shut off?

There isn’t an API to retrieve the port over current status.

Is it possible to reopen those ports?

If you have attached to the device the port can be reset with the
usbd_reset_device func.

Right now, the only way to do that is to terminate the stack and restart
it.

Rex