Manual

PNI Sensor Corporation DOC#1014688 r06
TCM User Manual July 2013 Page 68
7.4.4 TCM.h File
#pr agma once
#i ncl ude " Pr ocesses. h"
#i ncl ude " CommPr ot ocol . h"
//
/ / Thi s f i l e cont ai ns t he obj ect pr ovi di ng communi cat i on t o t he TCM
// I t wi l l set up t he modul e and par se packet s r ecei ved.
/ / Pr ocess i s a base cl ass t hat pr ovi des TCM wi t h cooper at i ve
// par al l el pr ocessi ng. The Cont r ol met hod wi l l be
/ / cal l ed by a pr ocess manager on a cont i nuous basi s.
//
cl ass TCM : publ i c Pr ocess, publ i c CommHandl er
{
publ i c:
TCM( Ser Por t * ser Por t ) ;
~TCM( ) ;
pr ot ect ed:
CommPr ot ocol * mComm;
UI nt 32 mSt ep, mTi me, mResponseTi me;
voi d Handl eComm( UI nt 8 f r ameType, voi d * dat aPt r = NULL,
UI nt 16 dat aLen = 0) ;
voi d SendComm( UI nt 8 f r ameType, voi d * dat aPt r = NULL,
UI nt 16 dat aLen = 0) ;
voi d Cont r ol ( ) ;
};