/* Returns the number of USB endpoint pairs on the device. */
uint32_t USBNumEndpointsGet(uint32_t ui32Base)
/* Returns the number of USB endpoint pairs on the device. */
uint32_t USBNumEndpointsGet(uint32_t ui32Base)
{
    return (HWREGB(ui32Base + USB_O_EPINFO) & USB_EPINFO_TXEP_M);
}