/* Control Endpoint translate the data in buffer into Device Request Struct.  */
static void udd_ctrl_fetch_ram(void)
/* Control Endpoint translate the data in buffer into Device Request Struct.  */
static void udd_ctrl_fetch_ram(void)
{
	udd_g_ctrlreq.req.bmRequestType = udd_ctrl_buffer[0];
	udd_g_ctrlreq.req.bRequest = udd_ctrl_buffer[1];
	udd_g_ctrlreq.req.wValue = ((uint16_t)(udd_ctrl_buffer[3]) << 8) + udd_ctrl_buffer[2];
	udd_g_ctrlreq.req.wIndex = ((uint16_t)(udd_ctrl_buffer[5]) << 8) + udd_ctrl_buffer[4];
	udd_g_ctrlreq.req.wLength = ((uint16_t)(udd_ctrl_buffer[7]) << 8) + udd_ctrl_buffer[6];
}