PNI TCM 5 User Manual

Page 55

Advertising
background image

PNI Sensor Corporation

Doc #1007537 r12

TCM3 & TCM5 User Manual

– Sept 2012

Page 55

4.4.2.3 TCM5.h File (For TCM3, TCM5 and TCM5L Modules):

#pragma once

#include "Processes.h"

#include "CommProtocol.h"

//

// This file contains the object providing communication to the TCM. It will set up the unit

and parse packets received

// Process is a base class that provides TCM with cooperative parallel processing. The Control

method will be

// called by a process manager on a continuous basis.

//

class

TCM :

public

Process,

public

CommHandler

{

public

:

TCM(SerPort * serPort);

~TCM();

protected

:

CommProtocol * mComm;

UInt32 mStep, mTime, mResponseTime;

void

HandleComm(UInt8 frameType,

void

* dataPtr =

NULL

, UInt16 dataLen =

0

);

void

SendComm(UInt8 frameType,

void

* dataPtr =

NULL

, UInt16 dataLen =

0

);

void

Control();

};

Advertising
This manual is related to the following products: