Home
last modified time | relevance | path

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

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