00001 #ifndef _SetBaseClock_CC_
00002 #define _SetBaseClock_CC_
00003
00004 #include "../includes/Header.hh"
00005 using namespace std;
00006
00007 int SetBaseClock(int *nDev,int *nCH,int *fRet,
00008 int *BaseClk){
00009 cout << "PcntSetBaseClock: " <<endl
00010 << " Device# = " << *nDev << endl
00011 << " Channel#= " << *nCH << endl
00012 << " BaseClock = " << *BaseClk << endl;
00013
00014 (*fRet)=PcntSetBaseClock((*nDev),(*nCH),(*BaseClk));
00015 if((*fRet)!=PCNT_ERROR_SUCCESS){
00016 cout << "BASE CLOCK setting failed." << endl;
00017 PcntClose(1);
00018 return -1;
00019 }
00020
00021 cout << "PcntSetBaseClock successful: " << *fRet << endl;
00022
00023
00024
00025
00026 return 0;
00027
00028 }
00029 #endif