00001 #ifndef _SetMask_CC_
00002 #define _SetMask_CC_
00003
00004 #include "../includes/Header.hh"
00005 using namespace std;
00006
00007 int SetMask(int *nDev,int *nCH,int *fRet,
00008 int *Emask,int *Tmask){
00009
00010
00011
00012
00013
00014
00015
00016 (*fRet)=PcntSetEventMask((*nDev),(*nCH),(*Emask),(*Tmask));
00017 if((*fRet)!=PCNT_ERROR_SUCCESS){
00018 cout << "Setting Mask failed." << endl;
00019 PcntClose(1);
00020 return -1;
00021 }
00022
00023
00024
00025
00026
00027 return 0;
00028 }
00029 #endif