1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
// XIGCtrl.cpp: Body of the XIGCtrl class.
//
//////////////////////////////////////////////////////////////////////
#include "XIGCtrl.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
XIGCtrl::XIGCtrl()
{
}
XIGCtrl::~XIGCtrl()
{
}
void XIGCtrl::OnPacketReceived(CigiBasePacket *Packet)
{
CigiIGCtrlV3_3 *InPckt = (CigiIGCtrlV3_3 *)Packet;
bool ok = true;
printf("===> IGCtrl <===\n");
printf("Version ==> %d\n",InPckt->GetVersion());
printf("DatabaseID ==> %d\n",InPckt->GetDatabaseID());
printf("IGMode ==> %d\n",InPckt->GetIGMode());
printf("TimestampValid ==> %d\n",InPckt->GetTimeStampValid());
if(InPckt->GetSmoothingEn())
printf("Smoothing Enabled\n");
else
printf("Smoothing Disabled\n");
printf("MinorVersion ==> %d\n",InPckt->GetMinorVersion());
printf("FrameCntr ==> %d\n",InPckt->GetFrameCntr());
printf("TimeStampV3 ==> %d\n",InPckt->GetTimeStamp());
printf("IGFrameCntr ==> %d\n",InPckt->GetLastRcvdIGFrame());
}
|