Main MRPT website > C++ reference for MRPT 1.9.9
packetstamper.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef PACKETSTAMPER_H
10 #define PACKETSTAMPER_H
11 
12 #include <xsens/pstdint.h>
13 
14 struct XsDataPacket;
15 
17 {
18  public:
19  static const int64_t MTSCBOUNDARY;
22  static const int64_t MTSCBOUNDARY_HALF;
23 
24  static const int64_t SC8BOUNDARY;
27  static const int64_t SC8BOUNDARY_HALF;
28 
30  int64_t frameCounter, int64_t lastCounter);
32  int64_t frameCounter, int64_t lastCounter);
34  int64_t frameTime, int64_t lastTime);
35  static int64_t stampPacket(XsDataPacket& pack, XsDataPacket& highest);
36 };
37 
38 #endif // file guard
PacketStamper::SC8BOUNDARY_HIGHMASK
static const int64_t SC8BOUNDARY_HIGHMASK
8 bit Sample Counter boundary exclusive mask
Definition: packetstamper.h:26
int64_t
__int64 int64_t
Definition: rptypes.h:49
PacketStamper::MTSCBOUNDARY_HIGHMASK
static const int64_t MTSCBOUNDARY_HIGHMASK
16 bit MT Sample Counter boundary exclusive mask
Definition: packetstamper.h:21
PacketStamper::MTSCBOUNDARY
static const int64_t MTSCBOUNDARY
16 bit MT Sample Counter boundary
Definition: packetstamper.h:19
PacketStamper::calculateLargePacketCounter8
static int64_t calculateLargePacketCounter8(int64_t frameCounter, int64_t lastCounter)
Calculate the new large packet counter value based on frameCounter and the lastCounter.
Definition: packetstamper.cpp:102
PacketStamper::SC8BOUNDARY_HALF
static const int64_t SC8BOUNDARY_HALF
8 bit Sample Counter boundary/2, used for determining SC wrapping
Definition: packetstamper.h:27
XsDataPacket
Contains data received from a device or read from a file.
Definition: xsdatapacket.h:302
PacketStamper::SC8BOUNDARY
static const int64_t SC8BOUNDARY
8 bit Sample Counter boundary
Definition: packetstamper.h:24
PacketStamper::SC8BOUNDARY_LOWMASK
static const int64_t SC8BOUNDARY_LOWMASK
8 bit Sample Counter boundary inclusive mask
Definition: packetstamper.h:25
PacketStamper::calculateLargePacketCounter
static int64_t calculateLargePacketCounter(int64_t frameCounter, int64_t lastCounter)
Calculate the new large sample counter value based on frameCounter and the lastCounter.
Definition: packetstamper.cpp:127
PacketStamper
Supplies functionality for timestamping data packets.
Definition: packetstamper.h:16
pstdint.h
PacketStamper::calculateLargeSampleTime
static int64_t calculateLargeSampleTime(int64_t frameTime, int64_t lastTime)
Calculate the new large sample time value based on frameTime and the lastTime.
Definition: packetstamper.cpp:152
PacketStamper::MTSCBOUNDARY_LOWMASK
static const int64_t MTSCBOUNDARY_LOWMASK
16 bit MT Sample Counter boundary inclusive mask
Definition: packetstamper.h:20
PacketStamper::MTSCBOUNDARY_HALF
static const int64_t MTSCBOUNDARY_HALF
16 bit MT Sample Counter boundary/2, used for determining SC wrapping
Definition: packetstamper.h:22
PacketStamper::stampPacket
static int64_t stampPacket(XsDataPacket &pack, XsDataPacket &highest)
Create 64 bit counter for a packet.
Definition: packetstamper.cpp:47



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST