/* The function returns one of the following values: */
uint32_t USBModeGet(uint32_t ui32Base)
/* The function returns one of the following values: */
uint32_t USBModeGet(uint32_t ui32Base)
{
    ASSERT(ui32Base == USB0_BASE);
    return (HWREGB(ui32Base + USB_O_DEVCTL) &
            (USB_DEVCTL_DEV | USB_DEVCTL_HOST | USB_DEVCTL_SESSION |
             USB_DEVCTL_VBUS_M));
}