/* * simple test program simplified from * mi40xx.cpp example program (c) Spectrum GmbH * */ #include #include #include #include #include #include "include/dlltyp.h" #include "include/regs.h" #include "include/spcerr.h" #include "include/spcioctl.inc" // ----- main task ----- int main(int argc, char **argv) { int hDrv; //int16 nCount, nPCIBusVersion int16 nChannels; int32 lChEnable, lStatus, lMemsize; int32 lErrorCode, lErrorReg, lErrorValue; ptr16 pnData[4]; ptr16 pnTmp; int32 i, k; int16 j, nErr; hDrv = open ("/dev/spc0", O_RDWR); if (hDrv <= 0) { printf ("device not found\n"); return -1; } nChannels = 2; lChEnable = CHANNEL0 | CHANNEL1; // ----- set memsize for recording ---- lMemsize = 2*1024; // ----- setup board for recording ----- for (j=0; j