Home
last modified time | relevance | path

Searched refs:addressIndex (Results 1 – 1 of 1) sorted by relevance

/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/host/
Dusb_host_devices.c644 uint8_t addressIndex; in USB_HostAllocateDeviceAddress() local
646 …for (addressIndex = 0U; addressIndex < 8U; ++addressIndex) /* find the idle address position byte … in USB_HostAllocateDeviceAddress()
648 if (hostInstance->addressBitMap[addressIndex] != 0xFFU) in USB_HostAllocateDeviceAddress()
653 if (addressIndex < 8U) in USB_HostAllocateDeviceAddress()
657 if (0U == (hostInstance->addressBitMap[addressIndex] & (0x01U << addressBitIndex))) in USB_HostAllocateDeviceAddress()
659 …hostInstance->addressBitMap[addressIndex] |= (0x01U << addressBitIndex); /* set the allocated bit … in USB_HostAllocateDeviceAddress()
660 …address = addressIndex * 8U + addressBitIndex + 1U; /* the address minimum is… in USB_HostAllocateDeviceAddress()