/* Main interrupt routine for control endpoint. 
This switches control endpoint events to correct sub function. */
static bool udd_ctrl_interrupt(void)
/* Main interrupt routine for control endpoint. 
This switches control endpoint events to correct sub function. */
static bool udd_ctrl_interrupt(void)
{
	if (!Is_udd_endpoint_interrupt(0))
		return false;
	if (Is_udd_setup_received(0)) {
		udd_ctrl_setup_received();
		return true;
	}
	if (Is_udd_in_sent(0)) {
		udd_ctrl_in_sent();
		return true;
	}
	if (Is_udd_bank0_received(0)) {
		udd_ctrl_out_received();
		return true;
	}
	if (Is_udd_stall(0)) {
		udd_ack_stall(0);
		return true;
	}
	return false;
}