beautypg.com

Prime.h file, 4 prime.h file – PNI CompassPoint Prime User Manual

Page 64

background image

PNI Sensor Corporation

DOC# 1014177 r08

Prime User Manual

– July 2011

Page 58

8.4

Prime.h File


#pragma once

#include "Processes.h"
#include "CommProtocol.h"


//
// This file contains the object providing communication to the
// Prime. It will set up the unit and parse packets received
// Process is a base class that provides Prime with cooperative
// parallel processing. The Control method will be
// called by a process manager on a continuous basis.
//
class Prime : public Process, public CommHandler
{

public:

Prime(SerPort * serPort);

~Prime();

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();

};