求助:关于MAC下的用UVC协议通过USB接口从外接设备接收数据问题
我用IOUSBDevRequest 从设备端接收数据
- (IBAction)getDataButtonClicked:(id)sender
{
// Byte array[5] = {0x20,0xab,0x00,0xa7};
Byte receviceData[256];
IOUSBDevRequest controlRequest;
controlRequest.bmRequestType = USBmakebmRequestType( kUSBOut, kUSBClass, kUSBInterface );
controlRequest.bRequest = 0x01;
controlRequest.wValue = (0x0f << 8) | 0x00;//发送的指令
controlRequest.wIndex = 512;
controlRequest.wLength = 0x02;
controlRequest.wLenDone = 0;
controlRequest.pData = &receviceData;
[cameraControl sendControlRequest:controlRequest];
}
目前发送指令只能发送一个,但是指令我想发送的是array[5]数组中的所有东西,需要怎么做。