10 #define XSDATAPACKET_H 43 #define XSDATAPACKET_INITIALIZER \ 45 XSMESSAGE_INITIALIZER, XSMESSAGE_INITIALIZER, XSDEVICEID_INITIALIZER, \ 46 XDI_None, -1, 0, 0, XSTIMESTAMP_INITIALIZER, \ 47 XSTIMESTAMP_INITIALIZER \ 401 inline void setMessage(
const XsMessage& msg)
409 inline const XsMessage& XSNOCOMEXPORT message()
const {
return m_msg; }
414 inline XsMessage& XSNOCOMEXPORT message()
432 inline XsMessage XSNOCOMEXPORT originalMessage(
void)
const 458 inline bool containsRawAcceleration(
void)
const 477 inline bool containsRawGyroscopeData(
void)
const 496 inline bool containsRawGyroscopeTemperatureData(
void)
const 502 inline void setRawGyroscopeTemperatureData(
const XsUShortVector& vec)
515 inline bool containsRawMagneticField(
void)
const 527 inline uint16_t rawTemperature(
void)
const 533 inline bool containsRawTemperature(
void)
const 539 inline void setRawTemperature(
uint16_t temp)
552 inline bool containsRawData(
void)
const 564 inline XsVector calibratedAcceleration(
void)
const 571 inline bool containsCalibratedAcceleration(
void)
const 577 inline void setCalibratedAcceleration(
const XsVector& vec)
583 inline XsVector calibratedGyroscopeData(
void)
const 590 inline bool containsCalibratedGyroscopeData(
void)
const 596 inline void setCalibratedGyroscopeData(
const XsVector& vec)
602 inline XsVector calibratedMagneticField(
void)
const 609 inline bool containsCalibratedMagneticField(
void)
const 615 inline void setCalibratedMagneticField(
const XsVector& vec)
628 inline bool containsCalibratedData(
void)
const 645 this, &returnVal, coordinateSystem);
654 this, &returnVal, coordinateSystemOrientation());
658 inline void setOrientationQuaternion(
669 this, &returnVal, coordinateSystem);
674 inline XsEuler orientationEuler()
const 678 this, &returnVal, coordinateSystemOrientation());
682 inline void setOrientationEuler(
693 this, &returnVal, coordinateSystem);
698 inline XsMatrix orientationMatrix()
const 702 this, &returnVal, coordinateSystemOrientation());
706 inline void setOrientationMatrix(
713 inline bool containsOrientation(
void)
const 738 inline bool containsSdiData(
void)
const 752 inline bool containsStatus(
void)
const 758 inline bool containsStatusByte(
void)
const 764 inline bool containsDetailedStatus(
void)
const 782 inline uint8_t packetCounter8(
void)
const 788 inline bool containsPacketCounter8(
void)
const 800 inline uint16_t packetCounter(
void)
const 806 inline bool containsPacketCounter(
void)
const 818 inline uint32_t sampleTimeFine(
void)
const 824 inline bool containsSampleTimeFine(
void)
const 836 inline uint32_t sampleTimeCoarse(
void)
const 842 inline bool containsSampleTimeCoarse(
void)
const 854 inline uint64_t sampleTime64(
void)
const 860 inline bool containsSampleTime64(
void)
const 872 inline XsVector freeAcceleration(
void)
const 879 inline bool containsFreeAcceleration(
void)
const 885 inline void setFreeAcceleration(
const XsVector&
g)
891 inline double temperature(
void)
const 897 inline bool containsTemperature(
void)
const 903 inline void setTemperature(
double temp)
916 inline bool containsGpsPvtData(
void)
const 935 inline bool containsPressure(
void)
const 941 inline bool containsPressureAge(
void)
const 960 inline bool containsAnalogIn1Data(
void)
const 979 inline bool containsAnalogIn2Data(
void)
const 991 inline XsVector positionLLA(
void)
const 998 inline bool containsPositionLLA(
void)
const 1010 inline XsVector latitudeLongitude(
void)
const 1017 inline bool containsLatitudeLongitude(
void)
const 1031 inline bool containsAltitude(
void)
const 1037 inline void setAltitude(
double data)
1050 inline XsVector velocity(
void)
const 1054 this, &returnVal, coordinateSystemVelocity());
1058 inline bool containsVelocity(
void)
const 1064 inline void setVelocity(
1090 inline bool containsUtcTime(
void)
const 1102 inline XsRange frameRange()
const 1109 inline bool containsFrameRange()
const 1115 inline void setFrameRange(
const XsRange&
r)
1123 inline bool containsRssi()
const 1138 inline bool containsRawGpsDop(
void)
const 1151 inline bool containsRawGpsSol(
void)
const 1164 inline bool containsRawGpsTimeUtc(
void)
const 1177 inline bool containsRawGpsSvInfo(
void)
const 1203 void setTriggerIndication(
1208 this, triggerId, &triggerIndicationData);
1233 #endif // __cplusplus 1257 #endif // file guard
XSTYPES_DLL_API int XsDataPacket_containsPressureAge(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsAnalogInData * XsDataPacket_analogIn2Data(const XsDataPacket *thisPtr, XsAnalogInData *returnVal)
struct XsRawGpsSol XsRawGpsSol
XSTYPES_DLL_API void XsMessage_setMessageId(XsMessage *thisPtr, XsXbusMessageId msgId)
XSTYPES_DLL_API void XsDataPacket_setPositionLLA(XsDataPacket *thisPtr, const XsVector *data)
XSTYPES_DLL_API void XsDataPacket_setFrameRange(XsDataPacket *thisPtr, const XsRange *r)
XSTYPES_DLL_API void XsDataPacket_setAnalogIn2Data(XsDataPacket *thisPtr, const XsAnalogInData *data)
unsigned __int16 uint16_t
XSTYPES_DLL_API int XsDataPacket_itemOffsetLoose(const XsDataPacket *thisPtr, XsDataIdentifier id)
XSTYPES_DLL_API XsVector * XsDataPacket_calibratedGyroscopeData(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API void XsDataPacket_construct(XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setStatusByte(XsDataPacket *thisPtr, uint8_t data)
XSTYPES_DLL_API void XsDataPacket_setOrientationMatrix(XsDataPacket *thisPtr, const XsMatrix *data, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API XsVector * XsDataPacket_calibratedAcceleration(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API uint8_t XsDataPacket_getFPValueSize(XsDataIdentifier id)
XSTYPES_DLL_API double XsDataPacket_altitude(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_coordinateSystemVelocity(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setCalibratedMagneticField(XsDataPacket *thisPtr, const XsVector *vec)
XSTYPES_DLL_API int XsDataPacket_containsSdiData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsVector * XsDataPacket_positionLLA(const XsDataPacket *thisPtr, XsVector *returnVal)
A vector containing 3 short values.
XSTYPES_DLL_API int XsDataPacket_containsCalibratedAcceleration(const XsDataPacket *thisPtr)
struct XsDataPacket XsDataPacket
XSTYPES_DLL_API void XsDataPacket_setRawTemperature(XsDataPacket *thisPtr, uint16_t temp)
XSTYPES_DLL_API int XsDataPacket_containsAnalogIn2Data(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsDataPacket * XsDataPacket_append(XsDataPacket *thisPtr, const XsDataPacket *other)
XSTYPES_DLL_API XsPressure * XsDataPacket_pressure(const XsDataPacket *thisPtr, XsPressure *returnVal)
uint16_t m_originalMessageLength
Length of the original message payload.
Data for a trigger indication message.
XSTYPES_DLL_API int XsDataPacket_containsPositionLLA(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setPacketCounter(XsDataPacket *thisPtr, uint16_t counter)
XSTYPES_DLL_API int XsDataPacket_containsSampleTime64(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGyroscopeData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsVector * XsDataPacket_velocity(const XsDataPacket *thisPtr, XsVector *returnVal, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API void XsDataPacket_setRawGyroscopeData(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API int XsDataPacket_containsVelocity(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setSampleTimeCoarse(XsDataPacket *thisPtr, uint32_t counter)
XSTYPES_DLL_API double XsDataPacket_temperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedMagneticField(const XsDataPacket *thisPtr)
A container for NAV-TIMEUTC data.
XSTYPES_DLL_API void XsDataPacket_setRawGyroscopeTemperatureData(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API XsAnalogInData * XsDataPacket_analogIn1Data(const XsDataPacket *thisPtr, XsAnalogInData *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsLatitudeLongitude(const XsDataPacket *thisPtr)
XsDataIdentifier
Defines the data identifiers.
XSTYPES_DLL_API XsVector * XsDataPacket_latitudeLongitude(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API uint32_t XsDataPacket_sampleTimeFine(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setLatitudeLongitude(XsDataPacket *thisPtr, const XsVector *data)
XsTimeStamp m_toa
Time of arrival (live packets only)
XSTYPES_DLL_API void XsDataPacket_setPacketCounter8(XsDataPacket *thisPtr, uint8_t counter)
XSTYPES_DLL_API void XsDataPacket_setSampleTimeFine(XsDataPacket *thisPtr, uint32_t counter)
XSTYPES_DLL_API XsTriggerIndicationData * XsDataPacket_triggerIndication(XsDataPacket const *thisPtr, XsDataIdentifier triggerId, XsTriggerIndicationData *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsSol(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setAltitude(XsDataPacket *thisPtr, double data)
XSTYPES_DLL_API void XsDataPacket_setSdiData(XsDataPacket *thisPtr, const XsSdiData *data)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawGyroscopeTemperatureData(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsDetailedStatus(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGyroscopeTemperatureData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsScrData * XsDataPacket_rawData(const XsDataPacket *thisPtr, XsScrData *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsTimeUtc(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_itemOffsetMasked(const XsDataPacket *thisPtr, XsDataIdentifier id, XsDataIdentifier mask)
XSTYPES_DLL_API int XsDataPacket_containsFrameRange(const XsDataPacket *thisPtr)
Structure for storing a single message.
uint16_t m_itemCount
The number of data items in the message.
XSTYPES_DLL_API int XsDataPacket_containsRssi(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setStatus(XsDataPacket *thisPtr, uint32_t data)
XSTYPES_DLL_API int XsDataPacket_containsTemperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsOrientation(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsRawGpsDop * XsDataPacket_rawGpsDop(const XsDataPacket *thisPtr, XsRawGpsDop *returnVal)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawMagneticField(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XsDataIdentifier m_lastFoundId
Last found data identifer, speeds up searches.
XSTYPES_DLL_API void XsDataPacket_setRawAcceleration(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API void XsDataPacket_setFreeAcceleration(XsDataPacket *thisPtr, const XsVector *g)
XSTYPES_DLL_API XsRange * XsDataPacket_frameRange(const XsDataPacket *thisPtr, XsRange *returnVal)
Class for managing timestamps in a unified way.
XSTYPES_DLL_API void XsDataPacket_setRawData(XsDataPacket *thisPtr, const XsScrData *data)
XSTYPES_DLL_API uint16_t XsDataPacket_packetCounter(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsSdiData * XsDataPacket_sdiData(const XsDataPacket *thisPtr, XsSdiData *returnVal)
int m_lastFoundOffset
Offset of last found data identifier, speeds up searches.
XSTYPES_DLL_API void XsDataPacket_setMessage(XsDataPacket *thisPtr, const XsMessage *msg)
XsDeviceId m_deviceId
The device Id to which the message belongs.
XSTYPES_DLL_API uint64_t XsDataPacket_sampleTime64(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsSvInfo(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedData(const XsDataPacket *thisPtr)
Data from analog inputs from sensors.
XSTYPES_DLL_API int XsDataPacket_containsPressure(const XsDataPacket *thisPtr)
unsigned __int64 uint64_t
XSTYPES_DLL_API XsGpsPvtData * XsDataPacket_gpsPvtData(const XsDataPacket *thisPtr, XsGpsPvtData *returnVal)
XSTYPES_DLL_API void XsDataPacket_setPressure(XsDataPacket *thisPtr, const XsPressure *data)
XSTYPES_DLL_API XsMessage * XsDataPacket_originalMessage(const XsDataPacket *thisPtr, XsMessage *returnVal)
XSTYPES_DLL_API void XsDataPacket_setCalibratedGyroscopeData(XsDataPacket *thisPtr, const XsVector *vec)
XSTYPES_DLL_API XsRawGpsSol * XsDataPacket_rawGpsSol(const XsDataPacket *thisPtr, XsRawGpsSol *returnVal)
XSTYPES_DLL_API XsRawGpsTimeUtc * XsDataPacket_rawGpsTimeUtc(const XsDataPacket *thisPtr, XsRawGpsTimeUtc *returnVal)
XSTYPES_DLL_API XsCalibratedData * XsDataPacket_calibratedData(const XsDataPacket *thisPtr, XsCalibratedData *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsStatusByte(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsPacketCounter8(const XsDataPacket *thisPtr)
GLdouble GLdouble GLdouble r
XSTYPES_DLL_API XsEuler * XsDataPacket_orientationEuler(const XsDataPacket *thisPtr, XsEuler *returnVal, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API void XsDataPacket_setOrientationQuaternion(XsDataPacket *thisPtr, const XsQuaternion *data, XsDataIdentifier coordinateSystem)
A structure for storing UTC Time values.
XSTYPES_DLL_API int XsDataPacket_containsUtcTime(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_dataFormat(const XsDataPacket *thisPtr, XsDataIdentifier id)
XSTYPES_DLL_API XsUtcTime * XsDataPacket_utcTime(const XsDataPacket *thisPtr, XsUtcTime *returnVal)
A container for NAV-SVINFO data.
XSTYPES_DLL_API int XsDataPacket_containsSampleTimeFine(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsTriggerIndication(XsDataPacket const *thisPtr, XsDataIdentifier triggerId)
XsMessage m_msg
The message that contains the data.
XSTYPES_DLL_API XsVector * XsDataPacket_freeAcceleration(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedGyroscopeData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawAcceleration(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsPacketCounter(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setCalibratedData(XsDataPacket *thisPtr, const XsCalibratedData *data)
Contains data received from a device or read from a file.
XSTYPES_DLL_API int XsDataPacket_rssi(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsAnalogIn1Data(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsMatrix * XsDataPacket_orientationMatrix(const XsDataPacket *thisPtr, XsMatrix *returnVal, XsDataIdentifier coordinateSystem)
XsMessage m_legacyMsg
Optional legacy MtData message as received (for logging the received data only)
A container for NAV-DOP data.
XSTYPES_DLL_API XsQuaternion * XsDataPacket_orientationQuaternion(const XsDataPacket *thisPtr, XsQuaternion *returnVal, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API int XsDataPacket_containsRawTemperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setTemperature(XsDataPacket *thisPtr, double temp)
XSTYPES_DLL_API int XsDataPacket_containsStatus(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setUtcTime(XsDataPacket *thisPtr, const XsUtcTime *data)
Container for raw sensor measurement data.
XSTYPES_DLL_API void XsDataPacket_setTriggerIndication(XsDataPacket *thisPtr, XsDataIdentifier triggerId, XsTriggerIndicationData const *triggerIndicationData)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_coordinateSystemOrientation(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsFreeAcceleration(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setOrientationEuler(XsDataPacket *thisPtr, const XsEuler *data, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_orientationIdentifier(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setRawMagneticField(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API void XsDataPacket_swap(XsDataPacket *a, XsDataPacket *b)
XSTYPES_DLL_API XsRawGpsSvInfo * XsDataPacket_rawGpsSvInfo(const XsDataPacket *thisPtr, XsRawGpsSvInfo *returnVal)
XSTYPES_DLL_API void XsDataPacket_setRssi(XsDataPacket *thisPtr, int r)
XSTYPES_DLL_API int XsDataPacket_containsSampleTimeCoarse(const XsDataPacket *thisPtr)
XSTYPES_DLL_API uint8_t XsDataPacket_packetCounter8(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawGyroscopeData(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XSTYPES_DLL_API void XsDataPacket_setSampleTime64(XsDataPacket *thisPtr, uint64_t counter)
XSTYPES_DLL_API void XsDataPacket_setVelocity(XsDataPacket *thisPtr, const XsVector *data, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API void XsDataPacket_setAnalogIn1Data(XsDataPacket *thisPtr, const XsAnalogInData *data)
XSTYPES_DLL_API void XsDataPacket_copy(XsDataPacket *copy, XsDataPacket const *src)
XSTYPES_DLL_API int XsDataPacket_containsAltitude(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawAcceleration(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
unsigned __int32 uint32_t
XSTYPES_DLL_API void XsDataPacket_setCalibratedAcceleration(XsDataPacket *thisPtr, const XsVector *vec)
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLubyte GLubyte GLubyte a
XSTYPES_DLL_API XsVector * XsDataPacket_calibratedMagneticField(const XsDataPacket *thisPtr, XsVector *returnVal)
XsTimeStamp m_packetId
64 bit packet id, based on, depending on availability: (1) packet counter (2) sample time (3) arrival...
A container for NAV-SOL data.
XSTYPES_DLL_API uint32_t XsDataPacket_status(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_destruct(XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_empty(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsDop(const XsDataPacket *thisPtr)
XSTYPES_DLL_API uint32_t XsDataPacket_sampleTimeCoarse(const XsDataPacket *thisPtr)
Data from the GPS unit of a legacy MTi-G.
XSTYPES_DLL_API uint16_t XsDataPacket_rawTemperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setGpsPvtData(XsDataPacket *thisPtr, const XsGpsPvtData *data)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_velocityIdentifier(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawMagneticField(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsGpsPvtData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_itemOffsetExact(const XsDataPacket *thisPtr, XsDataIdentifier id)