Tcm.h file, 4 tcm.h file – PNI TCM User Manual
Page 73

PNI Sensor Corporation
DOC#1014688 r06
TCM User Manual
– July 2013
Page 68
7.4.4
TCM.h File
#pr agma once
#i nc l ude " Pr oc es ses. h"
#i nc l ude " CommPr ot oc ol . h"
/ /
/ / Thi s f i l e cont ai ns t he obj ect pr ovi di ng communi c at i on t o t he TCM
/ / I t wi l l set up t he modul e and par se pack et s r ecei v ed.
/ / Pr oc es s i s a bas e c l ass t hat pr ov i des TCM wi t h c ooper at i v e
/ / par al l el pr ocess i ng. The Cont r ol met hod wi l l be
/ / cal l ed by a pr oc ess manager on a cont i nuous basi s.
/ /
c l as s TCM : publ i c Pr oc es s, publ i c CommHandl er
{
publ i c :
TCM( Ser Por t * ser Por t ) ;
~TCM( ) ;
pr ot ec t ed:
CommPr ot oc ol * mComm;
UI nt 32 mSt ep, mTi me, mRes pons eTi me;
v oi d Handl eComm( UI nt 8 f r ameTy pe, voi d * dat aPt r = NULL,
UI nt 16 dat aLen = 0) ;
v oi d SendComm( UI nt 8 f r ameTy pe, voi d * dat aPt r = NULL,
UI nt 16 dat aLen = 0) ;
v oi d Cont r ol ( ) ;
} ;