hi all,
i am trying to send a class request for SET_REPORT but i am not sure how to send to the control endpoint from my client driver…
below is the steps i am following :
UsbBuildVendorRequest(
&urb,
URB_FUNCTION_CLASS_DEVICE,
sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST),
USBD_TRANSFER_DIRECTION_OUT,//transfer flags
0,//Reserved Bits
SET_REPORT,//Class Request code
0x0201,//Report Type: Output: 0x02, Report ID: 0x01
1,//InterfaceIndex
pdata_pkt,
NULL,
sizeof(data_pkt),
NULL,
);
how to send this urb to control endpoint of the device …?
WdfUsbTargetPipeSendUrbSynchronously() needs control pipe handle which i am not able to get … and also may be i cant use this for control endpoint …
so please suggest a way to send the request …
hi all, i am trying to send a class request for SET_REPORT but i am not sure how to send to the control endpoint from my client driver… below is the steps i am following : UsbBuildVendorRequest( &urb, URB_FUNCTION_CLASS_DEVICE, sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST), USBD_TRANSFER_DIRECTION_OUT,//transfer flags 0,//Reserved Bits SET_REPORT,//Class Request code 0x0201,//Report Type: Output: 0x02, Report ID: 0x01 1,//InterfaceIndex pdata_pkt, NULL, sizeof(data_pkt), NULL, );
how to send this urb to control endpoint of the device …? WdfUsbTargetPipeSendUrbSynchronously() needs control pipe handle which i am not able to get … and also may be i cant use this for control endpoint … so please suggest a way to send the request …