Classes | Macros | Functions | Variables
xsdatapacket.cpp File Reference
#include "xsdatapacket.h"
#include "datapacket_p.h"
#include "xsmatrix3x3.h"
#include "xsvector.h"
#include "xsrssi.h"
#include "xsmath.h"
#include <string.h>
Include dependency graph for xsdatapacket.cpp:

Go to the source code of this file.

Classes

struct  GenericSimple< T, V >
 

Macros

#define MAP   (*thisPtr->d)
 

Functions

static XsVectorconvertedVector (const XsDataPacket *thisPtr, XsVector *returnVal, XsDataIdentifier id, XsUShortVector XsScrData::*field)
 
static void convertRawVector (XsUShortVector const &input, XsDataIdentifier id, XsVector &returnVal)
 Converts input vector input with data identifier id to output XsVector returnVal. More...
 
Variant * createVariant (XsDataIdentifier id)
 
static void detach (XsDataPacket *thisPtr)
 
bool genericContains (const XsDataPacket *thisPtr, XsDataIdentifier id)
 
template<typename T , typename V >
T * genericGet (const XsDataPacket *thisPtr, T *returnVal, XsDataIdentifier id, T const &failValue=T())
 
template<typename T , typename V >
void genericSet (XsDataPacket *thisPtr, T const *val, XsDataIdentifier id)
 
XsUShortVectorrawVector (const XsDataPacket *thisPtr, XsUShortVector *returnVal, XsDataIdentifier id, XsUShortVector XsScrData::*field)
 
static void removeAllOrientations (XsDataPacket *thisPtr)
 Removes all orientations from the datapacket. More...
 
void setRawVector (XsDataPacket *thisPtr, const XsUShortVector *vec, XsDataIdentifier id, XsUShortVector XsScrData::*field)
 
static XsReal signed_cast (uint16_t v)
 helper for XsDataPacket_convertRawVector More...
 
static XsReal unsigned_cast (uint16_t v)
 helper for XsDataPacket_convertRawVector More...
 
XsVectorXsDataPacket_accelerationHR (const XsDataPacket *thisPtr, XsVector *returnVal)
 Returns AccelerationHR. More...
 
double XsDataPacket_altitude (const XsDataPacket *thisPtr)
 The position altitude component of a data item. More...
 
double XsDataPacket_altitudeMsl (const XsDataPacket *thisPtr)
 The position altitude above MSL component of a data item. More...
 
XsAnalogInDataXsDataPacket_analogIn1Data (const XsDataPacket *thisPtr, XsAnalogInData *returnVal)
 The analog in 1 component of a data item. More...
 
XsAnalogInDataXsDataPacket_analogIn2Data (const XsDataPacket *thisPtr, XsAnalogInData *returnVal)
 The analog in 2 component of a data item. More...
 
XsSnapshotXsDataPacket_awindaSnapshot (const XsDataPacket *thisPtr, XsSnapshot *returnVal)
 Returns the Awinda Snapshot part of the XsDataPacket. More...
 
XsVectorXsDataPacket_calibratedAcceleration (const XsDataPacket *thisPtr, XsVector *returnVal)
 The calibrated accelerometer component of a data item. More...
 
XsCalibratedDataXsDataPacket_calibratedData (const XsDataPacket *thisPtr, XsCalibratedData *returnVal)
 Return the calibrated Data component of a data item. More...
 
XsVectorXsDataPacket_calibratedGyroscopeData (const XsDataPacket *thisPtr, XsVector *returnVal)
 The calibrated gyroscope component of a data item. More...
 
XsVectorXsDataPacket_calibratedMagneticField (const XsDataPacket *thisPtr, XsVector *returnVal)
 The calibrated magnetometer component of a data item. More...
 
void XsDataPacket_clear (XsDataPacket *thisPtr, XsDataIdentifier id)
 Clears all data in an XsDataPacket. More...
 
void XsDataPacket_construct (XsDataPacket *thisPtr)
 Inits a data packet, the packet will be empty after construction. More...
 
int XsDataPacket_containsAccelerationHR (const XsDataPacket *thisPtr)
 Check if data item contains AccelerationHR. More...
 
int XsDataPacket_containsAltitude (const XsDataPacket *thisPtr)
 Check if data item contains position altitude data. More...
 
int XsDataPacket_containsAltitudeMsl (const XsDataPacket *thisPtr)
 Check if data item contains position altitude above MSL data. More...
 
int XsDataPacket_containsAnalogIn1Data (const XsDataPacket *thisPtr)
 Check if data item contains analog in 1 data. More...
 
int XsDataPacket_containsAnalogIn2Data (const XsDataPacket *thisPtr)
 Check if data item contains analog in 2 data. More...
 
int XsDataPacket_containsAwindaSnapshot (const XsDataPacket *thisPtr)
 Returns true if the XsDataPacket contains Awinda Snapshot data. More...
 
int XsDataPacket_containsCalibratedAcceleration (const XsDataPacket *thisPtr)
 Check if data item contains calibrated accelerometer data. More...
 
int XsDataPacket_containsCalibratedData (const XsDataPacket *thisPtr)
 Check if data item contains calibrated Data. More...
 
int XsDataPacket_containsCalibratedGyroscopeData (const XsDataPacket *thisPtr)
 Check if data item contains calibrated gyroscope data. More...
 
int XsDataPacket_containsCalibratedMagneticField (const XsDataPacket *thisPtr)
 Check if data item contains calibrated magnetometer data. More...
 
int XsDataPacket_containsCorrectedMagneticField (const XsDataPacket *thisPtr)
 Check if data item contains corrected magnetometer data (ICC result). More...
 
int XsDataPacket_containsDetailedStatus (const XsDataPacket *thisPtr)
 Check if data item contains detailed status data. More...
 
int XsDataPacket_containsFrameRange (const XsDataPacket *thisPtr)
 Returns whether the datapacket contains a framerange. More...
 
int XsDataPacket_containsFreeAcceleration (const XsDataPacket *thisPtr)
 Check if data item contains free acceleration. More...
 
int XsDataPacket_containsFullSnapshot (const XsDataPacket *thisPtr)
 Returns true if the XsDataPacket contains Full Snapshot data. More...
 
int XsDataPacket_containsGloveData (const XsDataPacket *thisPtr, XsHandId hand)
 Check if data item contains glove data. More...
 
int XsDataPacket_containsGloveSnapshot (const XsDataPacket *thisPtr, XsHandId hand)
 Returns true if the XsDataPacket contains Glove Snapshot data. More...
 
int XsDataPacket_containsGnssAge (const XsDataPacket *thisPtr)
 Returns 1 if data item contains GnssAge, 0 otherwise. More...
 
int XsDataPacket_containsGnssPvtPulse (const XsDataPacket *thisPtr)
 Check if data item XsDataPacket_contains a pvt pulse. More...
 
int XsDataPacket_containsLatitudeLongitude (const XsDataPacket *thisPtr)
 Check if data item contains position latitude longitude data. More...
 
int XsDataPacket_containsOrientation (const XsDataPacket *thisPtr)
 Check if data item contains orientation Data of any kind. More...
 
int XsDataPacket_containsOrientationIncrement (const XsDataPacket *thisPtr)
 Check if data item contains delta quaternion data. More...
 
int XsDataPacket_containsPacketCounter (const XsDataPacket *thisPtr)
 Check if data item contains a packet counter. More...
 
int XsDataPacket_containsPacketCounter8 (const XsDataPacket *thisPtr)
 Check if data item contains an 8 bit packet counter. More...
 
int XsDataPacket_containsPositionLLA (const XsDataPacket *thisPtr)
 Check if data item contains position lat lon alt data. More...
 
int XsDataPacket_containsPressure (const XsDataPacket *thisPtr)
 Check if data item contains pressure data. More...
 
int XsDataPacket_containsPressureAge (const XsDataPacket *thisPtr)
 Check if data item contains pressure age data. More...
 
int XsDataPacket_containsRateOfTurnHR (const XsDataPacket *thisPtr)
 Check if data item contains RateOfTurnHR. More...
 
int XsDataPacket_containsRawAcceleration (const XsDataPacket *thisPtr)
 Check if data item contains Raw Accelerometer data. More...
 
int XsDataPacket_containsRawBlob (const XsDataPacket *thisPtr)
 Returns true if the XsDataPacket contains raw blob data. More...
 
int XsDataPacket_containsRawData (const XsDataPacket *thisPtr)
 Check if data item contains raw data. More...
 
int XsDataPacket_containsRawGnssPvtData (const XsDataPacket *thisPtr)
 Returns 1 if data item contains RawGnssPvtData, 0 otherwise. More...
 
int XsDataPacket_containsRawGnssSatInfo (const XsDataPacket *thisPtr)
 Returns 1 if data item contains RawGnssPvtData, 0 otherwise. More...
 
int XsDataPacket_containsRawGyroscopeData (const XsDataPacket *thisPtr)
 Check if data item contains raw gyroscope data. More...
 
int XsDataPacket_containsRawGyroscopeTemperatureData (const XsDataPacket *thisPtr)
 Check if data item contains raw gyroscope temperature data. More...
 
int XsDataPacket_containsRawMagneticField (const XsDataPacket *thisPtr)
 Check if data item contains raw magnetometer data. More...
 
int XsDataPacket_containsRawTemperature (const XsDataPacket *thisPtr)
 Check if data item contains raw temperature data. More...
 
int XsDataPacket_containsRssi (const XsDataPacket *thisPtr)
 Returns whether the datapacket contains an rssi value. More...
 
int XsDataPacket_containsSampleTime64 (const XsDataPacket *thisPtr)
 Check if data item XsDataPacket contains a full 64-bit sample time. More...
 
int XsDataPacket_containsSampleTimeCoarse (const XsDataPacket *thisPtr)
 Check if data item XsDataPacket_contains a sample time coarse. More...
 
int XsDataPacket_containsSampleTimeFine (const XsDataPacket *thisPtr)
 Check if data item XsDataPacket_contains a sample time fine. More...
 
int XsDataPacket_containsSdiData (const XsDataPacket *thisPtr)
 Check if data item contains strapdown integration data. More...
 
int XsDataPacket_containsStatus (const XsDataPacket *thisPtr)
 Check if data item contains legacy status data. More...
 
int XsDataPacket_containsStoredDeviceId (const XsDataPacket *thisPtr)
 Return non-zero if this data packet stores a device ID. More...
 
int XsDataPacket_containsStoredLocationId (const XsDataPacket *thisPtr)
 Return non-zero if this data packet stores a location ID. More...
 
int XsDataPacket_containsTemperature (const XsDataPacket *thisPtr)
 Check if data item contains temperature data. More...
 
int XsDataPacket_containsTriggerIndication (const XsDataPacket *thisPtr, XsDataIdentifier triggerId)
 Check if data item contains trigger indication data. More...
 
int XsDataPacket_containsUtcTime (const XsDataPacket *thisPtr)
 Check if data item contains utc time data. More...
 
int XsDataPacket_containsVelocity (const XsDataPacket *thisPtr)
 Check if data item contains velocity NED data. More...
 
int XsDataPacket_containsVelocityIncrement (const XsDataPacket *thisPtr)
 Check if data item contains delta velocity data. More...
 
XsDataIdentifier XsDataPacket_coordinateSystemOrientation (const XsDataPacket *thisPtr)
 Returns the coordinate system of the first orientation data of any kind in the packet. More...
 
XsDataIdentifier XsDataPacket_coordinateSystemVelocity (const XsDataPacket *thisPtr)
 Returns the coordinate system of the first velocity data of any kind in the packet. More...
 
void XsDataPacket_copy (XsDataPacket *copy, XsDataPacket const *src)
 Copy the XsDataPacket to copy. More...
 
void XsDataPacket_copyConstruct (XsDataPacket *thisPtr, XsDataPacket const *src)
 Initializes a data packet as a (referenced) copy of src. More...
 
XsVectorXsDataPacket_correctedMagneticField (const XsDataPacket *thisPtr, XsVector *returnVal)
 The corrected magnetometer component of a data item (ICC result). More...
 
XsDataIdentifier XsDataPacket_dataFormat (const XsDataPacket *thisPtr, XsDataIdentifier id)
 Returns the dataformat of a specific data identifier in the packet. More...
 
void XsDataPacket_destruct (XsDataPacket *thisPtr)
 Clears and frees data in an XsDataPacket. More...
 
int XsDataPacket_empty (const XsDataPacket *thisPtr)
 Returns whether the datapacket is empty. More...
 
XsRangeXsDataPacket_frameRange (const XsDataPacket *thisPtr, XsRange *returnVal)
 Returns the frame range contained in the datapacket. More...
 
XsVectorXsDataPacket_freeAcceleration (const XsDataPacket *thisPtr, XsVector *returnVal)
 The free acceleration component of a data item. More...
 
XsSnapshotXsDataPacket_fullSnapshot (const XsDataPacket *thisPtr, XsSnapshot *returnVal)
 Returns the Full Snapshot part of the XsDataPacket. More...
 
XsGloveDataXsDataPacket_gloveData (const XsDataPacket *thisPtr, XsGloveData *returnVal, XsHandId hand)
 Return the glove data component of a data item. More...
 
XsGloveSnapshotXsDataPacket_gloveSnapshot (const XsDataPacket *thisPtr, XsGloveSnapshot *returnVal, XsHandId hand)
 Returns the Glove Snapshot part of the XsDataPacket. More...
 
uint8_t XsDataPacket_gnssAge (const XsDataPacket *thisPtr)
 Returns the age of the GNSS data (in samples) More...
 
uint32_t XsDataPacket_gnssPvtPulse (const XsDataPacket *thisPtr)
 Returns the timestamp of a PVT Pulse. More...
 
int XsDataPacket_isAwindaSnapshotARetransmission (const XsDataPacket *thisPtr)
 Returns true if the contained Awinda Snapshot is marked as a retransmission. More...
 
int XsDataPacket_itemCount (const XsDataPacket *thisPtr)
 Returns the number of individual items in the XsDataPacket. More...
 
XsVectorXsDataPacket_latitudeLongitude (const XsDataPacket *thisPtr, XsVector *returnVal)
 The position latitude longitude component of a data item. More...
 
XsDataPacketXsDataPacket_merge (XsDataPacket *thisPtr, const XsDataPacket *other, int overwrite)
 Merge the data items from other into the packet. More...
 
XsEulerXsDataPacket_orientationEuler (const XsDataPacket *thisPtr, XsEuler *returnVal, XsDataIdentifier coordinateSystem)
 Return the orientation component of a data item as a euler angles. More...
 
XsDataIdentifier XsDataPacket_orientationIdentifier (const XsDataPacket *thisPtr)
 Returns the data identifier of the first orientation data of any kind in the packet. More...
 
XsQuaternionXsDataPacket_orientationIncrement (const XsDataPacket *thisPtr, XsQuaternion *returnVal)
 The delta quaternion (deltaQ) component of a data item. More...
 
XsMatrixXsDataPacket_orientationMatrix (const XsDataPacket *thisPtr, XsMatrix *returnVal, XsDataIdentifier coordinateSystem)
 Return the orientation component of a data item as a orientation matrix. More...
 
XsQuaternionXsDataPacket_orientationQuaternion (const XsDataPacket *thisPtr, XsQuaternion *returnVal, XsDataIdentifier coordinateSystem)
 Return the orientation component of a data item as a quaternion. More...
 
uint16_t XsDataPacket_packetCounter (const XsDataPacket *thisPtr)
 Return the packet/frame counter of a packet. More...
 
uint8_t XsDataPacket_packetCounter8 (const XsDataPacket *thisPtr)
 Return the 8 bit packet counter of a packet. More...
 
XsVectorXsDataPacket_positionLLA (const XsDataPacket *thisPtr, XsVector *returnVal)
 The position lat lon alt component of a data item. More...
 
XsPressureXsDataPacket_pressure (const XsDataPacket *thisPtr, XsPressure *returnVal)
 The air pressure component of a data item. More...
 
int XsDataPacket_privateCount ()
 Returns the number of private data items for all XsDataPacket combined currently in memory. More...
 
XsVectorXsDataPacket_rateOfTurnHR (const XsDataPacket *thisPtr, XsVector *returnVal)
 Returns RateOfTurnHR. More...
 
XsUShortVectorXsDataPacket_rawAcceleration (const XsDataPacket *thisPtr, XsUShortVector *returnVal)
 The raw accelerometer component of a data item. More...
 
XsVectorXsDataPacket_rawAccelerationConverted (const XsDataPacket *thisPtr, XsVector *returnVal)
 The raw accelerometer component of a data item, converted to floating point values. More...
 
XsByteArrayXsDataPacket_rawBlob (const XsDataPacket *thisPtr, XsByteArray *returnVal)
 Returns the raw blob part of the XsDataPacket. More...
 
XsScrDataXsDataPacket_rawData (const XsDataPacket *thisPtr, XsScrData *returnVal)
 Return the raw data component of a data item. More...
 
XsRawGnssPvtDataXsDataPacket_rawGnssPvtData (const XsDataPacket *thisPtr, XsRawGnssPvtData *returnVal)
 Returns a struct with RawGnssPvtData. More...
 
XsRawGnssSatInfoXsDataPacket_rawGnssSatInfo (const XsDataPacket *thisPtr, XsRawGnssSatInfo *returnVal)
 Returns a struct with RawGnssSatInfo. More...
 
XsUShortVectorXsDataPacket_rawGyroscopeData (const XsDataPacket *thisPtr, XsUShortVector *returnVal)
 The raw gyroscope component of a data item. More...
 
XsVectorXsDataPacket_rawGyroscopeDataConverted (const XsDataPacket *thisPtr, XsVector *returnVal)
 The raw gyroscope component of a data item, converted to floating point values. More...
 
XsUShortVectorXsDataPacket_rawGyroscopeTemperatureData (const XsDataPacket *thisPtr, XsUShortVector *returnVal)
 The raw gyroscope temperature component of a data item. More...
 
XsVectorXsDataPacket_rawGyroscopeTemperatureDataConverted (const XsDataPacket *thisPtr, XsVector *returnVal)
 The raw gyroscope temperature component of a data item, converted to floating point values. More...
 
XsUShortVectorXsDataPacket_rawMagneticField (const XsDataPacket *thisPtr, XsUShortVector *returnVal)
 The raw magnetometer component of a data item. More...
 
XsVectorXsDataPacket_rawMagneticFieldConverted (const XsDataPacket *thisPtr, XsVector *returnVal)
 The raw magnetometer component of a data item, converted to floating point values. More...
 
uint16_t XsDataPacket_rawTemperature (const XsDataPacket *thisPtr)
 The raw temperature component of a data item. More...
 
int XsDataPacket_rssi (const XsDataPacket *thisPtr)
 Returns the rssi value contained in the datapacket. More...
 
uint64_t XsDataPacket_sampleTime64 (const XsDataPacket *thisPtr)
 Return the full 64-bit sample time of a packet, combined from the fine and coarse sample times or received directly from the device. The 64-bit sample time runs at 10kHz. More...
 
uint32_t XsDataPacket_sampleTimeCoarse (const XsDataPacket *thisPtr)
 
uint32_t XsDataPacket_sampleTimeFine (const XsDataPacket *thisPtr)
 Return the fine sample time of a packet. More...
 
XsSdiDataXsDataPacket_sdiData (const XsDataPacket *thisPtr, XsSdiData *returnVal)
 Return the strapdown integration data component of a data item. More...
 
void XsDataPacket_setAccelerationHR (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update the AccelerationHR for the item. More...
 
void XsDataPacket_setAltitude (XsDataPacket *thisPtr, double data)
 Add/update altitude data for the item. More...
 
void XsDataPacket_setAltitudeMsl (XsDataPacket *thisPtr, double data)
 Add/update altitude above MSL data for the item. More...
 
void XsDataPacket_setAnalogIn1Data (XsDataPacket *thisPtr, const XsAnalogInData *data)
 Add/update analog in 1 data for the item. More...
 
void XsDataPacket_setAnalogIn2Data (XsDataPacket *thisPtr, const XsAnalogInData *data)
 Add/update analog in 2 data for the item. More...
 
void XsDataPacket_setAwindaSnapshot (XsDataPacket *thisPtr, XsSnapshot const *data, int retransmission)
 Sets the Awinda Snapshot part of the XsDataPacket. More...
 
void XsDataPacket_setCalibratedAcceleration (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update calibrated accelerometer data for the item. More...
 
void XsDataPacket_setCalibratedData (XsDataPacket *thisPtr, const XsCalibratedData *data)
 Add/update calibrated Data for the item. More...
 
void XsDataPacket_setCalibratedGyroscopeData (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update calibrated gyroscope data for the item. More...
 
void XsDataPacket_setCalibratedMagneticField (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update calibrated magnetometer data for the item. More...
 
void XsDataPacket_setCorrectedMagneticField (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update corrected magnetometer data for the item (ICC result). More...
 
void XsDataPacket_setFrameRange (XsDataPacket *thisPtr, const XsRange *r)
 Sets or updates the frame range in the datapacket. More...
 
void XsDataPacket_setFreeAcceleration (XsDataPacket *thisPtr, const XsVector *g)
 Add/update free acceleration data for the item. More...
 
void XsDataPacket_setFullSnapshot (XsDataPacket *thisPtr, XsSnapshot const *data, int retransmission)
 Sets the Awinda Snapshot part of the XsDataPacket. More...
 
void XsDataPacket_setGloveData (XsDataPacket *thisPtr, const XsGloveData *data, XsHandId hand)
 Add/update strapdown integration data for the item. More...
 
void XsDataPacket_setGloveSnapshot (XsDataPacket *thisPtr, XsGloveSnapshot const *data, int retransmission, XsHandId hand)
 Sets the Glove Snapshot part of the XsDataPacket. More...
 
void XsDataPacket_setGnssAge (XsDataPacket *thisPtr, uint8_t age)
 Sets or updates the GnssAge value in the datapacket. More...
 
void XsDataPacket_setGnssPvtPulse (XsDataPacket *thisPtr, uint32_t counter)
 Add/update pvt pulse timestamp data for the item. More...
 
void XsDataPacket_setLatitudeLongitude (XsDataPacket *thisPtr, const XsVector *data)
 Add/update position latitude longitude data for the item. More...
 
void XsDataPacket_setMessage (XsDataPacket *thisPtr, const XsMessage *msg)
 Overwrite the contents of the XsDataPacket with the contents of the supplied XsMessage. More...
 
void XsDataPacket_setOrientationEuler (XsDataPacket *thisPtr, const XsEuler *data, XsDataIdentifier coordinateSystem)
 Add/update quaternion orientation Data for the item. More...
 
void XsDataPacket_setOrientationIncrement (XsDataPacket *thisPtr, const XsQuaternion *quat)
 Add/update delta quaternion data for the item. More...
 
void XsDataPacket_setOrientationMatrix (XsDataPacket *thisPtr, const XsMatrix *data, XsDataIdentifier coordinateSystem)
 Add/update quaternion orientation Data for the item. More...
 
void XsDataPacket_setOrientationQuaternion (XsDataPacket *thisPtr, const XsQuaternion *data, XsDataIdentifier coordinateSystem)
 Add/update quaternion orientation Data for the item. More...
 
void XsDataPacket_setPacketCounter (XsDataPacket *thisPtr, uint16_t counter)
 Add/update packet counter data for the item. More...
 
void XsDataPacket_setPacketCounter8 (XsDataPacket *thisPtr, uint8_t counter)
 Add/update 8 bit packet counter data for the item. More...
 
void XsDataPacket_setPositionLLA (XsDataPacket *thisPtr, const XsVector *data)
 Add/update position lat lon alt data for the item. More...
 
void XsDataPacket_setPressure (XsDataPacket *thisPtr, const XsPressure *data)
 Add/update pressure data for the item. More...
 
void XsDataPacket_setRateOfTurnHR (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update the RateOfTurnHR for the item. More...
 
void XsDataPacket_setRawAcceleration (XsDataPacket *thisPtr, const XsUShortVector *vec)
 Add/update raw accelerometer data for the item. More...
 
void XsDataPacket_setRawBlob (XsDataPacket *thisPtr, const XsByteArray *data)
 Sets the raw blob part of the XsDataPacket. More...
 
void XsDataPacket_setRawData (XsDataPacket *thisPtr, const XsScrData *data)
 Add/update raw data for the item. More...
 
void XsDataPacket_setRawGnssPvtData (XsDataPacket *thisPtr, const XsRawGnssPvtData *r)
 Sets or updates the RawGnssPvtData value in the datapacket. More...
 
void XsDataPacket_setRawGnssSatInfo (XsDataPacket *thisPtr, const XsRawGnssSatInfo *data)
 Sets or updates the RawGnssSatInfo value in the datapacket. More...
 
void XsDataPacket_setRawGyroscopeData (XsDataPacket *thisPtr, const XsUShortVector *vec)
 Add/update raw gyroscope data for the item. More...
 
void XsDataPacket_setRawGyroscopeTemperatureData (XsDataPacket *thisPtr, const XsUShortVector *vec)
 Add/update raw gyroscope temperature data for the item. More...
 
void XsDataPacket_setRawMagneticField (XsDataPacket *thisPtr, const XsUShortVector *vec)
 Add/update raw magnetometer data for the item. More...
 
void XsDataPacket_setRawTemperature (XsDataPacket *thisPtr, uint16_t temp)
 Add/update raw temperature data for the item. More...
 
void XsDataPacket_setRssi (XsDataPacket *thisPtr, int r)
 Sets or updates the rssi value in the datapacket. More...
 
void XsDataPacket_setSampleTime64 (XsDataPacket *thisPtr, uint64_t counter)
 Add/update sample tine coarse data for the item. More...
 
void XsDataPacket_setSampleTimeCoarse (XsDataPacket *thisPtr, uint32_t counter)
 Add/update sample tine coarse data for the item. More...
 
void XsDataPacket_setSampleTimeFine (XsDataPacket *thisPtr, uint32_t counter)
 Add/update sample tine fine data for the item. More...
 
void XsDataPacket_setSdiData (XsDataPacket *thisPtr, const XsSdiData *data)
 Add/update strapdown integration data for the item. More...
 
void XsDataPacket_setStatus (XsDataPacket *thisPtr, uint32_t data)
 Add/update status data for the item. More...
 
void XsDataPacket_setStatusByte (XsDataPacket *thisPtr, uint8_t data)
 Add/update status data for the item. More...
 
void XsDataPacket_setStoredDeviceId (XsDataPacket *thisPtr, const XsDeviceId *data)
 Add or update device id for the item. More...
 
void XsDataPacket_setStoredLocationId (XsDataPacket *thisPtr, uint16_t data)
 Add or update location ID for the item. More...
 
void XsDataPacket_setTemperature (XsDataPacket *thisPtr, double temperature)
 Adds or updates the temperature data in the datapacket. More...
 
void XsDataPacket_setTriggerIndication (XsDataPacket *thisPtr, XsDataIdentifier triggerId, const XsTriggerIndicationData *triggerIndicationData)
 Add/update trigger indication data for the item. More...
 
void XsDataPacket_setUtcTime (XsDataPacket *thisPtr, const XsTimeInfo *data)
 Add/update utc time data for the item. More...
 
void XsDataPacket_setVelocity (XsDataPacket *thisPtr, const XsVector *data, XsDataIdentifier coordinateSystem)
 Add/update velocity NED data for the item. More...
 
void XsDataPacket_setVelocityIncrement (XsDataPacket *thisPtr, const XsVector *vec)
 Add/update delta velocity data for the item. More...
 
uint32_t XsDataPacket_status (const XsDataPacket *thisPtr)
 The status component of a data item. More...
 
XsDeviceIdXsDataPacket_storedDeviceId (const XsDataPacket *thisPtr, XsDeviceId *returnVal)
 The device id of a data item. More...
 
uint16_t XsDataPacket_storedLocationId (const XsDataPacket *thisPtr)
 The location ID of a data item. More...
 
void XsDataPacket_swap (XsDataPacket *thisPtr, XsDataPacket *other)
 Swaps the XsDataPackets in thisPtr and other. More...
 
double XsDataPacket_temperature (const XsDataPacket *thisPtr)
 The temperature component of a data item. More...
 
void XsDataPacket_toMessage (const XsDataPacket *thisPtr, XsMessage *msg)
 Write the contents of the XsDataPacket to an XsMessage in MtData2 format. More...
 
XsTriggerIndicationDataXsDataPacket_triggerIndication (const XsDataPacket *thisPtr, XsDataIdentifier triggerId, XsTriggerIndicationData *returnVal)
 Returns the trigger indication data of a packet If the packet does not contain the requested data, the return val struct will be set to all zeroes. More...
 
XsTimeInfoXsDataPacket_utcTime (const XsDataPacket *thisPtr, XsTimeInfo *returnVal)
 The utc time component of a data item. More...
 
XsVectorXsDataPacket_velocity (const XsDataPacket *thisPtr, XsVector *returnVal, XsDataIdentifier coordinateSystem)
 The velocity NWU component of a data item. More...
 
XsDataIdentifier XsDataPacket_velocityIdentifier (const XsDataPacket *thisPtr)
 Returns the data identifier of the first velocity data of any kind in the packet. More...
 
XsVectorXsDataPacket_velocityIncrement (const XsDataPacket *thisPtr, XsVector *returnVal)
 The delta velocity (deltaV) component of a data item. More...
 

Variables

static const uint64_t coarseFactor = 10000ULL
 

Macro Definition Documentation

◆ MAP

#define MAP   (*thisPtr->d)

Definition at line 73 of file xsdatapacket.cpp.

Function Documentation

◆ createVariant()

Variant* createVariant ( XsDataIdentifier  id)

Definition at line 89 of file xsdatapacket.cpp.

◆ detach()

static void detach ( XsDataPacket thisPtr)
static

Definition at line 79 of file xsdatapacket.cpp.

◆ genericContains()

bool genericContains ( const XsDataPacket thisPtr,
XsDataIdentifier  id 
)
inline

Definition at line 314 of file xsdatapacket.cpp.

◆ genericGet()

template<typename T , typename V >
T* genericGet ( const XsDataPacket thisPtr,
T *  returnVal,
XsDataIdentifier  id,
T const &  failValue = T() 
)

Definition at line 266 of file xsdatapacket.cpp.

◆ genericSet()

template<typename T , typename V >
void genericSet ( XsDataPacket thisPtr,
T const *  val,
XsDataIdentifier  id 
)

Definition at line 278 of file xsdatapacket.cpp.

◆ rawVector()

XsUShortVector* rawVector ( const XsDataPacket thisPtr,
XsUShortVector returnVal,
XsDataIdentifier  id,
XsUShortVector XsScrData::*  field 
)

Definition at line 234 of file xsdatapacket.cpp.

◆ setRawVector()

void setRawVector ( XsDataPacket thisPtr,
const XsUShortVector vec,
XsDataIdentifier  id,
XsUShortVector XsScrData::*  field 
)

Definition at line 249 of file xsdatapacket.cpp.

Variable Documentation

◆ coarseFactor

const uint64_t coarseFactor = 10000ULL
static

Definition at line 75 of file xsdatapacket.cpp.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21