AnsweredAssumed Answered

imx6ul:how to get the data from usb_control_msg?

Question asked by 益 李 on May 23, 2016
Latest reply on May 31, 2016 by CarlosCasillas

hi

on pc:when i use the usb_control_msg,

usb_control_msg(dev, 0x80,0x06, 768, 0, tmp,32,10000);

 

in the isr_setup_packet_handler(kernel-source\drivers\usb\chipidea\udc.c)  i can get the :

__u8 request = 0x80,

__u8 requesttype = 0x06,

__u16 value = 768,

__u16 index = 0,

__u16 size = 32

by struct usb_ctrlrequest req;

but i don't know how to get the data(tmp) i  have send by usb_control_msg.

thanks!

Outcomes