/* Main routine to manage the standard USB SETUP request.  */
static bool udc_reqstd(void)
/* Main routine to manage the standard USB SETUP request.  */
static bool udc_reqstd(void)
{
	if (USB_REQ_RECIP_DEVICE != Udd_setup_recipient()) {
		return false;
	}
	if (Udd_setup_is_in()) {
		switch (udd_g_ctrlreq.req.bRequest) {
		case USB_REQ_GET_STATUS:
			return udc_req_std_dev_get_status();
		case USB_REQ_GET_DESCRIPTOR:
			return udc_req_std_dev_get_descriptor();
		case USB_REQ_GET_CONFIGURATION:
			return udc_req_std_dev_get_configuration();
		}
	} else {
		switch (udd_g_ctrlreq.req.bRequest) {
		case USB_REQ_SET_ADDRESS:
			return udc_req_std_dev_set_address();
		case USB_REQ_SET_CONFIGURATION:
			return udc_req_std_dev_set_configuration();
		}
	}
	return false;
}