Seatrax.h file, 4 seatrax.h file – PNI SeaTRAX User Manual
Page 72
![background image](/manuals/373156/72/background.png)
PNI Sensor Corporation
DOC#1018154 r02
SeaTRAX User Manual
Page 67
7.4.4
SeaTRAX.h File
#pragma once
#include "Processes.h"
#include "CommProtocol.h"
//
// This file contains the object providing communication to the
SeaTRAX
// It will set up the module and parse packets received.
// Process is a base class that provides SeaTRAX with cooperative
// parallel processing. The Control method will be
// called by a process manager on a continuous basis.
//
class SeaTRAX: public Process, public CommHandler
{
public:
SeaTRAX(SerPort * serPort);
~ SeaTRAX();
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();
};