00001 #ifndef _Init_CC_
00002 #define _Init_CC_
00003
00004 #include "../includes/Header.hh"
00005 using namespace std;
00006
00007 int Init(int *nDev,int *nCH,int *fRet){
00008 (*fRet)=PcntOpen((*nDev),PCNT_FLAG_NORMAL);
00009 if((*fRet)!=PCNT_ERROR_SUCCESS){
00010 cout << "Counter (Device #:" << (*nDev)
00011 << ") open failed." << endl;
00012 return -1;
00013 }
00014 cout << "Board initialization successful: " << *fRet << endl;
00015
00016
00017
00018
00019
00020
00021 PcntOutputDO( *nDev, 0x0);
00022 return 0;
00023 }
00024 #endif