正在加载图片...
州周立功单片机发展有限公司Te:(020)3873097638730977Fax:38730925htpr/w rEquest. bAddressH=0 ioRequest. uSize= transfer_ size ioBlock. uoffset =0 ioBlock. lEngth= sizeof(IO REQUEST pby Data=(PUCHAR)&ioRequest; Index = 0x47 bResult= Devicelo Control(dEvice OCTL WRITE REGISTERS (PVOID )&ioBlock, NULL) if (rEsult I= TRUE)i testDlg->Message Box("Setup DMA request failed! ","Test Error); rEsult= writeFile(hFi &nBytes NULL);广州周立功单片机发展有限公司 Tel: (020)38730976 38730977 Fax: 38730925 http://www.zlgmcu.com 4 ioRequest.bAddressH = 0; ioRequest.uSize = transfer_size; ioRequest.bCommand = 0x80; //start, write ioBlock.uOffset = 0; ioBlock.uLength = sizeof(IO_REQUEST); ioBlock.pbyData = (PUCHAR)&ioRequest; ioBlock.uIndex = 0x471; bResult = DeviceIoControl(hDevice, IOCTL_WRITE_REGISTERS, (PVOID)&ioBlock, sizeof(IO_BLOCK), NULL, 0, &nBytes, NULL); if (bResult != TRUE) { testDlg->MessageBox("Setup DMA request failed!", "Test Error"); return; } bResult = WriteFile(hFile, pcIoBuffer, transfer_size, &nBytes, NULL);
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有