/*****************************************************************************/ /* This program is developed by Borland C++ 3.1 */ /******************************************************************************/ /* Demo 16: One PCI-1202 Card demo. */ /* To estimate the performance for P1202_Do(), P1202_Di() and P1202_Da(). */ /******************************************************************************/ #define MYLIB #include #include "P1202.H" clock_t StartTick,EndTick; int main() { int i,j; WORD wBoards,wRetVal; WORD wDIOdata,wOutput; float fSeconds,fMHz; DWORD dwI; WORD wAddrTimer,wAddrCtrl,wAddrDio,wAddrAdda; clrscr(); /* initiaing P1202 card and detect how many P1202 card in PC */ wRetVal=P1202_DriverInit(&wBoards); printf("Threr are %d P1202 Cards in this PC\n",wBoards); if( wBoards==0 ) { putch(0x07); putch(0x07); putch(0x07); printf("There are no P1202 card in this PC !!!\n"); exit(0); } /* dump every P1202 card's configuration address space */ printf("The Configuration Space -> Timer Control DIO AD/DA\n"); for(i=0; i