|
inlinestatic |
Checks if the USB device is connected and ready This function checks the UsbFlags register. It assumes the device is connected if the reserved bits (those not in AllFlags) are all zero. This is a common way to detect hardware presence on embedded systems.