/* Check if stall has been sent from the endpoint.  */
static bool _usbd_ep_is_stall_sent(uint8_t epn, uint8_t bank_n)
/* Check if stall has been sent from the endpoint.  */
static bool _usbd_ep_is_stall_sent(uint8_t epn, uint8_t bank_n)
{
	Usb *hw = USB;
	return (hri_usbendpoint_read_EPINTFLAG_reg(hw, epn) & (USB_DEVICE_EPINTFLAG_STALL0 << bank_n));
}