/* This function converts a zephyr endpoint address into a bit mask that can be used with registers: */
static uint32_t udc_rpi_endpoint_mask(const uint8_t ep)
/* This function converts a zephyr endpoint address into a bit mask that can be used with registers: */
static uint32_t udc_rpi_endpoint_mask(const uint8_t ep)
{
	const int bit_index = (USB_EP_GET_IDX(ep) << 1) | !!USB_EP_DIR_IS_OUT(ep);
	return BIT(bit_index);
}