Ov7620 (Progressive Scan @ 8Bit Data) + Cypress 68013A
If 1frame = 480*Href (640*2*Pixel) , then
we should be be set Transfer Size 480*640*2 = 614400
(!!!!!!!!!! The default transfer size is 4096 !!!!!!!!!!!)
--------------- CyAPI -------------------
DWORD BytesXfered; // Define Transfer Size
SET_TRANSFER_SIZE_INFO SetTransferInfo;
SetTransferInfo.EndpointAddress = 0x82; // Pipe address
SetTransferInfo.TransferSize = 614400;
DeviceIoControl(hDevice, IOCTL_ADAPT_SET_TRANSFER_SIZE,
&SetTransferInfo, sizeof(SET_TRANSFER_SIZE_INFO),
&SetTransferInfo, sizeof(SET_TRANSFER_SIZE_INFO),
&BytesXfered, NULL);
------------------------------------------------------------------------
댓글 없음:
댓글 쓰기