Macros | |
#define | XS_BID_BROADCAST 0x00 |
The bus broadcast bus identifier (all devices) More... | |
#define | XS_BID_DYNAMIC 0xFE |
A dynamic bus identifier. More... | |
#define | XS_BID_INVALID 0xFD |
An invalid bus identifier. More... | |
#define | XS_BID_MASTER 0xFF |
The bus identifier of the master device. More... | |
#define | XS_BID_MT 0x01 |
The bus identifier for the first MT on the bus. More... | |
Typedefs | |
typedef union Itypes | Itypes |
typedef FILE | XsFileHandle |
The type that is used for low-level identification of an open file. More... | |
typedef int64_t | XsFilePos |
The type that is used for positioning inside a file. More... | |
typedef int32_t | XsIoHandle |
The type that is used for low-level identification of an open I/O device. More... | |
Functions | |
uint8_t | byteSum (const uint8_t *buffer, XsSize count) |
Calculate the sum of the values in the buffer. More... | |
static XsVector * | convertedVector (const XsDataPacket *thisPtr, XsVector *returnVal, XsDataIdentifier id, XsUShortVector XsScrData::*field) |
static double | convertFromFloat (float f) |
static void | convertRawVector (XsUShortVector const &input, XsDataIdentifier id, XsVector &returnVal) |
Converts input vector input with data identifier id to output XsVector returnVal. More... | |
static float | convertToFloat (double d) |
static int | fuzzyIsEqual (double a, double b, double tolerance) |
Checks whether a and b are equal with tolerance tolerance. More... | |
static FILE * | openFile (const struct XsString *filename, const struct XsString *mode) |
Helper for file opening. More... | |
static void | removeAllOrientations (XsDataPacket *thisPtr) |
Removes all orientations from the datapacket. More... | |
static XsReal | signed_cast (uint16_t v) |
helper for XsDataPacket_convertRawVector More... | |
static void | swapEndian (void *data, const XsSize size) |
Swap the endianness based on the data size. More... | |
static XsReal | unsigned_cast (uint16_t v) |
helper for XsDataPacket_convertRawVector More... | |
void | XsArray_append (void *thisPtr, void const *other) |
Appends the other list to thisArray list. More... | |
void | XsArray_assign (void *thisPtr, XsSize count, void const *src) |
Reinitializes the XsArray with space for count items and copies them from src. More... | |
void const * | XsArray_at (void const *thisPtr, XsSize index) |
Returns a pointer to the item at the supplied index or a null pointer if it is out of bounds. More... | |
void * | XsArray_atIndex (void *thisPtr, XsSize index) |
Returns a pointer to the item at the supplied index or a null pointer if it is out of bounds. More... | |
int | XsArray_compare (void const *a, void const *b) |
Returns non-zero if the lists are different, 0 if they're equal. More... | |
int | XsArray_comparePredicate (void const *a, void const *b, XsArrayItemCompareFunc predicate) |
Returns non-zero if the lists are different, 0 if they're equal. More... | |
int | XsArray_compareSet (void const *a, void const *b) |
Returns -1 if a is smaller in some way than b, 1 if it is larger in some way and 0 if both lists are equal. More... | |
void | XsArray_construct (void *thisPtr, XsArrayDescriptor const *const descriptor, XsSize count, void const *src) |
Initializes the XsArray with space for count items and copies them from src. More... | |
void | XsArray_copy (void *thisPtr, void const *src) |
Copy the contents of src to thisArray. More... | |
void | XsArray_copyConstruct (void *thisPtr, void const *src) |
Initializes the XsArray with a copy of src. More... | |
void | XsArray_destruct (void *thisPtr) |
Clears and frees memory allocated by the XsArray. More... | |
int | XsArray_empty (void const *thisPtr) |
Returns whether the array is empty. More... | |
void | XsArray_erase (void *thisPtr, XsSize index, XsSize count) |
Removes a count items from the list starting at index. More... | |
ptrdiff_t | XsArray_find (void const *thisPtr, void const *needle) |
Returns the index of needle in the list or -1 if it wasn't found. More... | |
ptrdiff_t | XsArray_findPredicate (void const *thisPtr, void const *needle, XsArrayItemCompareFunc predicate) |
Returns the index of needle in the list or -1 if it wasn't found. More... | |
void | XsArray_insert (void *thisPtr, XsSize index, XsSize count, void const *src) |
Insert count items from src at index in the array. More... | |
void | XsArray_rawCopy (void *to, void const *from, XsSize count, XsSize iSize) |
Copies items optimized in a direct way. More... | |
void | XsArray_removeDuplicates (void *thisPtr) |
Removes duplicate entries from the array, keeping only the first instance of each value. More... | |
void | XsArray_removeDuplicatesPredicate (void *thisPtr, XsArrayItemCompareFunc predicate) |
Removes duplicate entries from the array, keeping only the first instance of each value. More... | |
void | XsArray_reserve (void *thisPtr, XsSize count) |
Reserves space for count items. More... | |
void | XsArray_resize (void *thisPtr, XsSize count) |
Resizes the existing list to count items. More... | |
void | XsArray_reverse (void *thisPtr) |
Reverses the contents of the array by repeatedly using the itemSwap func in the XsArrayDescriptor. More... | |
void | XsArray_sort (void *thisPtr) |
Sorts the array using the itemCompare func in the XsArrayDescriptor. More... | |
void | XsArray_swap (void *a, void *b) |
Swap the contents of a with those of b. More... | |
XsBaudRate | XsBaud_codeToRate (XsBaudCode baudcode) |
Convert an Xsens baud code to XsBaudRate. More... | |
XsBaudRate | XsBaud_numericToRate (int numeric) |
Convert a numeric baudrate in bps to XsBaudrate. More... | |
XsBaudCode | XsBaud_rateToCode (XsBaudRate baudrate) |
Convert a XsBaudRate to an Xsens baud code. More... | |
int | XsBaud_rateToNumeric (XsBaudRate baudrate) |
Convert a XsBaudrate to a numeric baudrate in bps. More... | |
void | XsCalibratedData_construct (XsCalibratedData *thisPtr, const XsReal *acc, const XsReal *gyr, const XsReal *mag) |
Construct an XsCalibratedData object. More... | |
void | XsCalibratedData_destruct (XsCalibratedData *thisPtr) |
Destruct an XsCalibratedData object. More... | |
const char * | XsConnectivityState_toString (XsConnectivityState s) |
Convert the device state to a human readable string. More... | |
const char * | XsDataFlags_toString (XsDataFlags f) |
Convert the XsDataFlags to a human readable string. More... | |
XsVector * | XsDataPacket_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... | |
XsAnalogInData * | XsDataPacket_analogIn1Data (const XsDataPacket *thisPtr, XsAnalogInData *returnVal) |
The analog in 1 component of a data item. More... | |
XsAnalogInData * | XsDataPacket_analogIn2Data (const XsDataPacket *thisPtr, XsAnalogInData *returnVal) |
The analog in 2 component of a data item. More... | |
XsSnapshot * | XsDataPacket_awindaSnapshot (const XsDataPacket *thisPtr, XsSnapshot *returnVal) |
Returns the Awinda Snapshot part of the XsDataPacket. More... | |
XsVector * | XsDataPacket_calibratedAcceleration (const XsDataPacket *thisPtr, XsVector *returnVal) |
The calibrated accelerometer component of a data item. More... | |
XsCalibratedData * | XsDataPacket_calibratedData (const XsDataPacket *thisPtr, XsCalibratedData *returnVal) |
Return the calibrated Data component of a data item. More... | |
XsVector * | XsDataPacket_calibratedGyroscopeData (const XsDataPacket *thisPtr, XsVector *returnVal) |
The calibrated gyroscope component of a data item. More... | |
XsVector * | XsDataPacket_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... | |
XsVector * | XsDataPacket_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... | |
XsRange * | XsDataPacket_frameRange (const XsDataPacket *thisPtr, XsRange *returnVal) |
Returns the frame range contained in the datapacket. More... | |
XsVector * | XsDataPacket_freeAcceleration (const XsDataPacket *thisPtr, XsVector *returnVal) |
The free acceleration component of a data item. More... | |
XsSnapshot * | XsDataPacket_fullSnapshot (const XsDataPacket *thisPtr, XsSnapshot *returnVal) |
Returns the Full Snapshot part of the XsDataPacket. More... | |
XsGloveData * | XsDataPacket_gloveData (const XsDataPacket *thisPtr, XsGloveData *returnVal, XsHandId hand) |
Return the glove data component of a data item. More... | |
XsGloveSnapshot * | XsDataPacket_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... | |
XsVector * | XsDataPacket_latitudeLongitude (const XsDataPacket *thisPtr, XsVector *returnVal) |
The position latitude longitude component of a data item. More... | |
XsDataPacket * | XsDataPacket_merge (XsDataPacket *thisPtr, const XsDataPacket *other, int overwrite) |
Merge the data items from other into the packet. More... | |
XsEuler * | XsDataPacket_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... | |
XsQuaternion * | XsDataPacket_orientationIncrement (const XsDataPacket *thisPtr, XsQuaternion *returnVal) |
The delta quaternion (deltaQ) component of a data item. More... | |
XsMatrix * | XsDataPacket_orientationMatrix (const XsDataPacket *thisPtr, XsMatrix *returnVal, XsDataIdentifier coordinateSystem) |
Return the orientation component of a data item as a orientation matrix. More... | |
XsQuaternion * | XsDataPacket_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... | |
XsVector * | XsDataPacket_positionLLA (const XsDataPacket *thisPtr, XsVector *returnVal) |
The position lat lon alt component of a data item. More... | |
XsPressure * | XsDataPacket_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... | |
XsVector * | XsDataPacket_rateOfTurnHR (const XsDataPacket *thisPtr, XsVector *returnVal) |
Returns RateOfTurnHR. More... | |
XsUShortVector * | XsDataPacket_rawAcceleration (const XsDataPacket *thisPtr, XsUShortVector *returnVal) |
The raw accelerometer component of a data item. More... | |
XsVector * | XsDataPacket_rawAccelerationConverted (const XsDataPacket *thisPtr, XsVector *returnVal) |
The raw accelerometer component of a data item, converted to floating point values. More... | |
XsByteArray * | XsDataPacket_rawBlob (const XsDataPacket *thisPtr, XsByteArray *returnVal) |
Returns the raw blob part of the XsDataPacket. More... | |
XsScrData * | XsDataPacket_rawData (const XsDataPacket *thisPtr, XsScrData *returnVal) |
Return the raw data component of a data item. More... | |
XsRawGnssPvtData * | XsDataPacket_rawGnssPvtData (const XsDataPacket *thisPtr, XsRawGnssPvtData *returnVal) |
Returns a struct with RawGnssPvtData. More... | |
XsRawGnssSatInfo * | XsDataPacket_rawGnssSatInfo (const XsDataPacket *thisPtr, XsRawGnssSatInfo *returnVal) |
Returns a struct with RawGnssSatInfo. More... | |
XsUShortVector * | XsDataPacket_rawGyroscopeData (const XsDataPacket *thisPtr, XsUShortVector *returnVal) |
The raw gyroscope component of a data item. More... | |
XsVector * | XsDataPacket_rawGyroscopeDataConverted (const XsDataPacket *thisPtr, XsVector *returnVal) |
The raw gyroscope component of a data item, converted to floating point values. More... | |
XsUShortVector * | XsDataPacket_rawGyroscopeTemperatureData (const XsDataPacket *thisPtr, XsUShortVector *returnVal) |
The raw gyroscope temperature component of a data item. More... | |
XsVector * | XsDataPacket_rawGyroscopeTemperatureDataConverted (const XsDataPacket *thisPtr, XsVector *returnVal) |
The raw gyroscope temperature component of a data item, converted to floating point values. More... | |
XsUShortVector * | XsDataPacket_rawMagneticField (const XsDataPacket *thisPtr, XsUShortVector *returnVal) |
The raw magnetometer component of a data item. More... | |
XsVector * | XsDataPacket_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... | |
XsSdiData * | XsDataPacket_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... | |
XsDeviceId * | XsDataPacket_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... | |
XsTriggerIndicationData * | XsDataPacket_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... | |
XsTimeInfo * | XsDataPacket_utcTime (const XsDataPacket *thisPtr, XsTimeInfo *returnVal) |
The utc time component of a data item. More... | |
XsVector * | XsDataPacket_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... | |
XsVector * | XsDataPacket_velocityIncrement (const XsDataPacket *thisPtr, XsVector *returnVal) |
The delta velocity (deltaV) component of a data item. More... | |
int | XsDeviceCapabilities_hasAccelerometer (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has an operational accelerometer. More... | |
int | XsDeviceCapabilities_hasBarometer (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has an operational barometer. More... | |
int | XsDeviceCapabilities_hasGnss (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has an operational GNSS receiver. More... | |
int | XsDeviceCapabilities_hasGyroscope (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has an operational gyroscope. More... | |
int | XsDeviceCapabilities_hasMagnetometer (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has an operational magnetometer. More... | |
int | XsDeviceCapabilities_isAhrs (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has an AHRS. More... | |
int | XsDeviceCapabilities_isGnssIns (const struct XsDeviceCapabilities *thisPtr) |
Test if the device is a GNSS/INS. More... | |
int | XsDeviceCapabilities_isImu (const struct XsDeviceCapabilities *thisPtr) |
Test if the device is an IMU. More... | |
int | XsDeviceCapabilities_isRtk (const struct XsDeviceCapabilities *thisPtr) |
Test if the device is an RTK device. More... | |
int | XsDeviceCapabilities_isValid (const struct XsDeviceCapabilities *thisPtr) |
Test if the given XsDeviceCapabilities is valid. More... | |
int | XsDeviceCapabilities_isVru (const struct XsDeviceCapabilities *thisPtr) |
Test if the device has a VRU. More... | |
void | XsDeviceConfiguration_assign (XsDeviceConfiguration *thisPtr, XsSize numberOfDevices, const XsDeviceConfiguration *src) |
Reinitializes the XsDeviceConfiguration with space for numberOfDevices devices and copies them from src. More... | |
void | XsDeviceConfiguration_construct (XsDeviceConfiguration *thisPtr) |
Initializes the XsDeviceConfiguration object. More... | |
void | XsDeviceConfiguration_copy (XsDeviceConfiguration *copy, XsDeviceConfiguration const *src) |
Copy the XsDeviceConfiguration to copy. More... | |
void | XsDeviceConfiguration_destruct (XsDeviceConfiguration *thisPtr) |
Clears and frees data in the XsDeviceConfiguration. More... | |
int | XsDeviceConfiguration_empty (const XsDeviceConfiguration *thisPtr) |
Returns true if the XsDeviceConfiguration is empty. More... | |
XsSize | XsDeviceConfiguration_findDevice (const XsDeviceConfiguration *thisPtr, const XsDeviceId *deviceId) |
Returns a (naive) bus ID if deviceId is available in this configuration, 0 otherwise. More... | |
void | XsDeviceConfiguration_readFromMessage (XsDeviceConfiguration *thisPtr, const XsMessage *msg) |
Sets up a XsDeviceConfiguration based upon msg. More... | |
void | XsDeviceConfiguration_writeToMessage (const XsDeviceConfiguration *thisPtr, XsMessage *msg) |
Creates a message msg that represents the XsDeviceConfiguration. More... | |
int | XsDeviceId_contains (XsDeviceId const *thisPtr, XsDeviceId const *other) |
Returns true if this is equal to other or this is a type-specifier that matches other. More... | |
void | XsDeviceId_deviceType (struct XsDeviceId const *thisPtr, int detailed, struct XsDeviceId *type) |
Returns the device type identified by this id (eg 10, 300 and Awinda2 Master) More... | |
void | XsDeviceId_deviceTypeMask (struct XsDeviceId const *thisPtr, int detailed, struct XsDeviceId *type) |
Returns the mask which can be used to get the detailed device type (eg 10, 300 and Awinda2 Master) More... | |
void | XsDeviceId_fromDeviceTypeString (XsDeviceId *thisPtr, const XsString *str) |
Read a device ID from the supplied string. More... | |
void | XsDeviceId_fromString (XsDeviceId *thisPtr, const XsString *str) |
Read a device ID from the supplied string. More... | |
int | XsDeviceId_hasInternalGnss (struct XsDeviceId const *thisPtr) |
Test if this device ID represents a device with internal GNSS receiver. More... | |
int | XsDeviceId_isAhrs (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an AHRS. More... | |
int | XsDeviceId_isAwinda2 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda2 device. More... | |
int | XsDeviceId_isAwinda2Dongle (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda2 Dongle. More... | |
int | XsDeviceId_isAwinda2Oem (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda2 OEM board. More... | |
int | XsDeviceId_isAwinda2Station (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda2 Station. More... | |
int | XsDeviceId_isAwindaX (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda device. More... | |
int | XsDeviceId_isAwindaXDongle (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda Dongle. More... | |
int | XsDeviceId_isAwindaXOem (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda OEM board. More... | |
int | XsDeviceId_isAwindaXStation (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Awinda Station. More... | |
int | XsDeviceId_isBodyPack (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a bodypack (any version) device. More... | |
int | XsDeviceId_isBodyPackV1 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a bodypack V1 device. More... | |
int | XsDeviceId_isBodyPackV2 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a bodypack V2 device. More... | |
int | XsDeviceId_isContainerDevice (const struct XsDeviceId *thisPtr) |
Test if this device ID represents any of the container devices such as Bodypack and Awinda Station. More... | |
int | XsDeviceId_isDot (struct XsDeviceId const *thisPtr) |
Test if the device ID represents a Dot series device. More... | |
int | XsDeviceId_isGlove (const struct XsDeviceId *thisPtr) |
Test if the device ID represents a Glove series device. More... | |
int | XsDeviceId_isGnss (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an GNSS (capable) device. More... | |
int | XsDeviceId_isHilDevice (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a Hardware In the Loop test device. More... | |
int | XsDeviceId_isImu (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an IMU. More... | |
int | XsDeviceId_isLegacyDeviceId (const struct XsDeviceId *thisPtr) |
Test if the device ID represents a legacy device identification. More... | |
int | XsDeviceId_isMt (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MT device (any Mti, Mtig, Mtx or Mtw) More... | |
int | XsDeviceId_isMti (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTi device (1, 10 or 100 series, 1 includes MTi-7) More... | |
int | XsDeviceId_isMti3X0 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an MTi-3X0 device. More... | |
int | XsDeviceId_isMti6X0 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an MTi-600 series device. More... | |
int | XsDeviceId_isMti8X0 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an MTi-800 series device. More... | |
int | XsDeviceId_isMtig (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTig device (700 or 710 series) More... | |
int | XsDeviceId_isMtigX00 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an Mtig 700 device. More... | |
int | XsDeviceId_isMtigX10 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an Mtig 710 device. More... | |
int | XsDeviceId_isMtiX (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an Mti 1-series device. More... | |
int | XsDeviceId_isMtiX0 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an Mti 10-series device. More... | |
int | XsDeviceId_isMtiX00 (const struct XsDeviceId *thisPtr) |
Test if the device ID represents an Mti 100-series device. More... | |
int | XsDeviceId_isMtMark4 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Mk4 generation MT device. More... | |
int | XsDeviceId_isMtMark5 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an Mk5 generation MT device. More... | |
int | XsDeviceId_isMtMk4 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4. More... | |
int | XsDeviceId_isMtMk4_1 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 1. More... | |
int | XsDeviceId_isMtMk4_10 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 10. More... | |
int | XsDeviceId_isMtMk4_100 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 100. More... | |
int | XsDeviceId_isMtMk4_2 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 2. More... | |
int | XsDeviceId_isMtMk4_20 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 20. More... | |
int | XsDeviceId_isMtMk4_200 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 200. More... | |
int | XsDeviceId_isMtMk4_3 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 3. More... | |
int | XsDeviceId_isMtMk4_30 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 30. More... | |
int | XsDeviceId_isMtMk4_300 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 300. More... | |
int | XsDeviceId_isMtMk4_400 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 400. More... | |
int | XsDeviceId_isMtMk4_500 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 500. More... | |
int | XsDeviceId_isMtMk4_600 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 600. More... | |
int | XsDeviceId_isMtMk4_7 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 7. More... | |
int | XsDeviceId_isMtMk4_700 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 700. More... | |
int | XsDeviceId_isMtMk4_710 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents either an MTMk4 710 or Mk5 710. More... | |
int | XsDeviceId_isMtMk4_800 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 800. More... | |
int | XsDeviceId_isMtMk4_900 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 900. More... | |
int | XsDeviceId_isMtMk4_X (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 1 series. More... | |
int | XsDeviceId_isMtMk4_X0 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 10 series. More... | |
int | XsDeviceId_isMtMk4_X00 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk4 100 series (including 700 and 710) More... | |
int | XsDeviceId_isMtMk5 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5. More... | |
int | XsDeviceId_isMtMk5_10 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 10. More... | |
int | XsDeviceId_isMtMk5_100 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 100. More... | |
int | XsDeviceId_isMtMk5_20 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 20. More... | |
int | XsDeviceId_isMtMk5_200 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 200. More... | |
int | XsDeviceId_isMtMk5_30 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 30. More... | |
int | XsDeviceId_isMtMk5_300 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 300. More... | |
int | XsDeviceId_isMtMk5_710 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 710. More... | |
int | XsDeviceId_isMtMk5_X0 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 10 series. More... | |
int | XsDeviceId_isMtMk5_X00 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTMk5 100 series. More... | |
int | XsDeviceId_isMtw (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTw. More... | |
int | XsDeviceId_isMtw2 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTw2. More... | |
int | XsDeviceId_isMtx (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTx. More... | |
int | XsDeviceId_isMtx2 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an MTx2. More... | |
int | XsDeviceId_isRtk (const struct XsDeviceId *thisPtr) |
Test if this device ID represents an RTK (capable) device. More... | |
int | XsDeviceId_isRugged (struct XsDeviceId const *thisPtr) |
Test if this device ID represents an Rugged Version. More... | |
int | XsDeviceId_isSyncStation2 (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a SyncStation v2. More... | |
int | XsDeviceId_isSyncStationX (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a SyncStation. More... | |
int | XsDeviceId_isType (XsDeviceId const *thisPtr) |
Returns true if the ID is just a device type, not an actual device ID. More... | |
int | XsDeviceId_isValid (const struct XsDeviceId *thisPtr) |
Test if the device ID is a valid id (not 0). More... | |
int | XsDeviceId_isVru (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a VRU. More... | |
int | XsDeviceId_isWirelessMaster (const struct XsDeviceId *thisPtr) |
Test if this device ID represents a Wireless Master device (Awinda Station, Awinda Dongle, Awinda OEM) More... | |
uint64_t | XsDeviceId_legacyBit (const struct XsDeviceId *thisPtr) |
XsHandId | XsDeviceId_side (struct XsDeviceId const *thisPtr) |
Return the side the device should be worn on. More... | |
void | XsDeviceId_swap (XsDeviceId *a, XsDeviceId *b) |
Swap the contents of a with those of b. More... | |
void | XsDeviceId_toDeviceTypeString (const XsDeviceId *thisPtr, XsString *str, int makeType) |
Get a string with a readable representation of this device ID. Either full or as a type. More... | |
void | XsDeviceId_toString (const XsDeviceId *thisPtr, XsString *str) |
Get a string with a readable representation of this device ID. More... | |
void | XsDeviceId_type (struct XsDeviceId const *thisPtr, struct XsDeviceId *type) |
Returns the type of device identified by this id. More... | |
void | XsDeviceId_typeName (XsDeviceId const *thisPtr, XsString *str) |
Returns the name of the type of device identified by this id. More... | |
const char * | XsDeviceState_toString (XsDeviceState s) |
Convert the device state to a human readable string. More... | |
void | XsEuler_destruct (XsEuler *thisPtr) |
Clears all angles in the XsEuler object by setting them to 0. More... | |
int | XsEuler_empty (const XsEuler *thisPtr) |
Returns true if all angles in this object are zero. More... | |
void | XsEuler_fromQuaternion (XsEuler *thisPtr, const XsQuaternion *quat) |
Get an euler angle representation of the quaternion. More... | |
XsResultValue | XsFile_close (struct XsFile *thisPtr) |
Closes the file. More... | |
XsResultValue | XsFile_create (struct XsFile *thisPtr, const struct XsString *filename, int writeOnly) |
Creates a new binary file with name filename, contents of existing files will be discarded. More... | |
XsResultValue | XsFile_createText (struct XsFile *thisPtr, const struct XsString *filename, int writeOnly) |
Creates a new text file with name filename, contents of existing files will be discarded. More... | |
void | XsFile_destruct (struct XsFile *thisPtr) |
Frees the resources of this object by closing the file if it is open. More... | |
int | XsFile_eof (struct XsFile const *thisPtr) |
XsResultValue | XsFile_erase (const struct XsString *filename) |
Deletes a file with name filename. More... | |
XsResultValue | XsFile_error (struct XsFile const *thisPtr) |
int | XsFile_exists (const struct XsString *filename) |
Checks if the file exists (can be accessed) More... | |
XsResultValue | XsFile_flush (struct XsFile *thisPtr) |
Writes unwritten data to the file. More... | |
XsResultValue | XsFile_fullPath (const struct XsString *filename, struct XsString *fullPath) |
Retrieves the full path for a filename. More... | |
int | XsFile_getc (struct XsFile *thisPtr) |
Gets and returns the next byte from a file. More... | |
XsResultValue | XsFile_getline (struct XsFile *thisPtr, struct XsString *line) |
Reads a full line from the file. More... | |
char * | XsFile_gets (struct XsFile *thisPtr, char *str, int num) |
Reads characters from this file and stores them into str until (num-1) characters have been read or either a newline or the end-of-file is reached, whichever happens first. More... | |
FILE * | XsFile_handle (struct XsFile *thisPtr) |
int | XsFile_isOpen (const struct XsFile *thisPtr) |
Checks if a file is open. More... | |
XsResultValue | XsFile_open (struct XsFile *thisPtr, const struct XsString *filename, int readOnly) |
Opens an existing binary file with name filename. More... | |
XsResultValue | XsFile_openText (struct XsFile *thisPtr, const struct XsString *filename, int readOnly) |
Opens an existing binary file with name filename. More... | |
XsResultValue | XsFile_putc (struct XsFile *thisPtr, int character) |
Writes a character to the file. More... | |
XsResultValue | XsFile_puts (struct XsFile *thisPtr, const char *str) |
Writes a null terminated c-string to the file. More... | |
XsFilePos | XsFile_read (struct XsFile *thisPtr, void *destination, XsFilePos size, XsFilePos count) |
Reads a number of elements from a file. More... | |
XsResultValue | XsFile_reopen (struct XsFile *thisPtr, const struct XsString *filename, const struct XsString *mode) |
Reopens a file. More... | |
XsResultValue | XsFile_resize (struct XsFile *thisPtr, XsFilePos fileSize) |
Resizes the file to fileSize bytes. More... | |
XsResultValue | XsFile_seek (struct XsFile *thisPtr, XsFilePos offset) |
Moves the current file position relative to the start of the file. More... | |
XsResultValue | XsFile_seek_r (struct XsFile *thisPtr, XsFilePos offset) |
Moves the current file position relative to the end of the file. More... | |
XsFilePos | XsFile_tell (struct XsFile const *thisPtr) |
Returns the current position in the file. More... | |
XsResultValue | XsFile_truncate (struct XsFile *thisPtr, XsFilePos fileSize) |
Reduces the file to a maximum size of fileSize bytes. More... | |
XsFilePos | XsFile_write (struct XsFile *thisPtr, const void *source, XsFilePos size, XsFilePos count) |
Writes a number of elements to a file. More... | |
int | XsFilterProfile_empty (XsFilterProfile const *thisPtr) |
Checks if the filter profile is empty. More... | |
void | XsFilterProfile_swap (XsFilterProfile *a, XsFilterProfile *b) |
Swap the contents of a with b. More... | |
void | XsFilterProfile_toString (XsFilterProfile const *thisPtr, XsString *out) |
Converts filter profile version and type information to string. More... | |
void | XsFingerData_construct (struct XsFingerData *thisPtr) |
Initialize an XsFingerData object. More... | |
void | XsFingerData_copy (struct XsFingerData *copy, struct XsFingerData const *src) |
Copy the contents of an XsFingerData object. More... | |
void | XsFingerData_destruct (struct XsFingerData *thisPtr) |
Destruct an XsFingerData object. More... | |
void | XsFingerData_swap (struct XsFingerData *lhs, struct XsFingerData *rhs) |
Swap the contents of two XsGloveData objects. More... | |
void | XsGloveData_construct (struct XsGloveData *thisPtr) |
Initialize an XsGloveData object. More... | |
void | XsGloveData_copy (struct XsGloveData *copy, struct XsGloveData const *src) |
Copy the contents of an XsGloveData object. More... | |
void | XsGloveData_destruct (struct XsGloveData *thisPtr) |
Destruct an XsGloveData object. More... | |
void | XsGloveData_swap (struct XsGloveData *lhs, struct XsGloveData *rhs) |
Swap the contents of two XsGloveData objects. More... | |
XsSyncLine | xsl4ToXsl (SyncLineMk4 mk4Line) |
Translate an SyncLineMk4 into a generic XsSyncLine. More... | |
XsSyncLine | xslgmtToXsl (SyncLineGmt mk4Line) |
Translate an SyncLineGmt into a generic XsSyncLine. More... | |
SyncLineMk4 | xslToXsl4 (XsSyncLine line) |
Translate an XsSyncLine into a Mk4-specififc SyncLineMk4. More... | |
SyncLineGmt | xslToXslgmt (XsSyncLine line) |
Translate an XsSyncLine into a SyncLineGmt. More... | |
XSMATHINLINE XsReal | XsMath_asinClamped (const XsReal x) |
Returns asin(x) for -1 < x < 1. More... | |
XSMATHINLINE XsReal | XsMath_deg2rad (XsReal degrees) |
Convert degrees to radians. More... | |
XSMATHINLINE2 int64_t | XsMath_doubleToInt64 (double d) |
Returns d integer converted from a double precision floating point value. More... | |
XSMATHINLINE2 int32_t | XsMath_doubleToLong (double d) |
Returns d integer converted from a double precision floating point value. More... | |
XSMATHINLINE2 int64_t | XsMath_floatToInt64 (float d) |
Returns d integer converted from a single precision floating point value. More... | |
XSMATHINLINE2 int32_t | XsMath_floatToLong (float d) |
Returns d integer converted from a single precision floating point value. More... | |
XSMATHINLINE2 int | XsMath_isFinite (XsReal x) |
Returns non-zero if x is finite. More... | |
XSMATHINLINE XsReal | XsMath_pow2 (XsReal a) |
Returns a to the power of 2. More... | |
XSMATHINLINE XsReal | XsMath_pow3 (XsReal a) |
Returns a to the power of 3. More... | |
XSMATHINLINE XsReal | XsMath_pow5 (XsReal a) |
Returns a to the power of 5. More... | |
XSMATHINLINE XsReal | XsMath_rad2deg (XsReal radians) |
Convert radians to degrees. More... | |
void | XsMatrix3x3_assign (XsMatrix3x3 *thisPtr, const XsReal *src, XsSize srcStride) |
Init the XsMatrix3x3 and copy the data from src into the matrix if src is not null. More... | |
void | XsMatrix3x3_construct (XsMatrix3x3 *thisPtr) |
Init the XsMatrix3x3. More... | |
void | XsMatrix3x3_copy (XsMatrix *copy, XsMatrix3x3 const *src) |
Copy the contents of the XsMatrix3x3 to copy. More... | |
void | XsMatrix3x3_destruct (XsMatrix3x3 *thisPtr) |
Frees the Matrix3x3. More... | |
void | XsMatrix_assign (XsMatrix *thisPtr, XsSize rows, XsSize cols, XsSize stride, const XsReal *src, XsSize srcStride) |
Init the XsMatrix and copy the data from src into the matrix if src is not null. More... | |
void | XsMatrix_construct (XsMatrix *thisPtr, XsSize rows, XsSize cols, XsSize stride, const XsReal *src, XsSize srcStride) |
Init the XsMatrix and copy the data from src into the matrix if src is not null. More... | |
void | XsMatrix_copy (XsMatrix *copy, XsMatrix const *src) |
Copy the contents of copy to the XsMatrix. More... | |
void | XsMatrix_destruct (XsMatrix *thisPtr) |
Clear the XsMatrix and release allocated resources. More... | |
int | XsMatrix_dimensionsMatch (const XsMatrix *thisPtr, XsSize rows, XsSize columns) |
Returns not zero if the dimensions of the XsMatrix are equal to rows and columns. More... | |
int | XsMatrix_empty (const XsMatrix *thisPtr) |
Returns not zero if the matrix contains no values. More... | |
void | XsMatrix_fromQuaternion (XsMatrix *thisPtr, const XsQuaternion *quat) |
Get an orientation matrix representation of the quaternion. More... | |
void | XsMatrix_multiplyScalar (const XsMatrix *thisPtr, XsReal scalar, XsMatrix *dest) |
Multiplies all values in this XsMatrix by scalar. More... | |
XsSize | XsMatrix_offset (const XsMatrix *thisPtr, XsSize row, XsSize column) |
Returns the offset in the data for accessing the value at row and column. More... | |
void | XsMatrix_ref (XsMatrix *thisPtr, XsSize rows, XsSize cols, XsSize stride, XsReal *buffer, XsDataFlags flags) |
Construct the XsMatrix as a reference to data in buffer. More... | |
void | XsMatrix_setValue (XsMatrix *thisPtr, XsSize row, XsSize column, XsReal value) |
Sets the data value at row and column. More... | |
void | XsMatrix_setZero (XsMatrix *thisPtr) |
Set all the values in the matrix to zero. More... | |
void | XsMatrix_swap (XsMatrix *a, XsMatrix *b) |
Swap the contents of a and b. More... | |
XsReal | XsMatrix_value (const XsMatrix *thisPtr, XsSize row, XsSize column) |
Returns the data value at row and column. More... | |
void | XsMessage_assign (XsMessage *thisPtr, XsSize dataSize) |
This function reinitializes the XsMessage object and reserves dataSize bytes for data. More... | |
static const uint8_t * | XsMessage_cdataAtOffset (XsMessage const *thisPtr, XsSize offset) |
return the const data at offset offset More... | |
int | XsMessage_compare (XsMessage const *a, XsMessage const *b) |
Compare the contents of the messages a and b, returning non-0 if they are different. More... | |
uint8_t | XsMessage_computeChecksum (XsMessage const *thisPtr) |
Computes the checksum for the message. More... | |
const uint8_t * | XsMessage_constData (XsMessage const *thisPtr, XsSize offset) |
This function returns a const pointer to the offset in the data of the message in thisptr. More... | |
void | XsMessage_construct (XsMessage *thisPtr) |
This function initializes the XsMessage object. More... | |
void | XsMessage_constructSized (XsMessage *thisPtr, XsSize dataSize) |
This function initializes the XsMessage object and reserves dataSize bytes for data. More... | |
void | XsMessage_copy (XsMessage *copy, XsMessage const *thisPtr) |
This function copies from thisPtr to copy. More... | |
void | XsMessage_copyConstruct (XsMessage *thisPtr, XsMessage const *src) |
Construct an XsMessage as a copy of XsMessage src. More... | |
static uint8_t * | XsMessage_dataAtOffset (XsMessage *thisPtr, XsSize offset) |
Get the buffer at offset offset. More... | |
XsSize | XsMessage_dataSize (XsMessage const *thisPtr) |
This function returns the datasize of the message in thisptr. More... | |
void | XsMessage_deleteData (XsMessage *thisPtr, XsSize count, XsSize offset) |
Remove count bytes of data from the message at offset. More... | |
void | XsMessage_destruct (XsMessage *thisPtr) |
This function clears the data in the message. More... | |
int | XsMessage_empty (XsMessage const *thisPtr) |
Test if this message is empty. More... | |
static void | XsMessage_ensureDataSize (XsMessage *thisPtr, XsSize offset, XsSize sizeofValue) |
Make sure the data buffer is large enough to hold a new data item of sizeofValue. More... | |
const XsMessageHeader * | XsMessage_getConstHeader (XsMessage const *thisPtr) |
const uint8_t * | XsMessage_getDataBuffer (XsMessage const *thisPtr, XsSize offset) |
Returns a const pointer to the data buffer of the message. More... | |
uint8_t | XsMessage_getDataByte (XsMessage const *thisPtr, XsSize offset) |
Returns the byte value at offset in the data of the message. More... | |
double | XsMessage_getDataDouble (XsMessage const *thisPtr, XsSize offset) |
Returns the double at offset in the data of the message. More... | |
double | XsMessage_getDataF1220 (XsMessage const *thisPtr, XsSize offset) |
Returns the F12.20 value at offset in the data of the message. More... | |
float | XsMessage_getDataFloat (XsMessage const *thisPtr, XsSize offset) |
Returns the float value at offset in the data of the message. More... | |
double | XsMessage_getDataFP1632 (XsMessage const *thisPtr, XsSize offset) |
Returns the F16.32 value at offset in the data of the message. More... | |
void | XsMessage_getDataFPValuesById (XsMessage const *thisPtr, XsDataIdentifier dataIdentifier, double *dest, XsSize offset, XsSize numValues) |
Return current data values as double, conversion depends on outputSetting. More... | |
uint32_t | XsMessage_getDataLong (XsMessage const *thisPtr, XsSize offset) |
Returns the long value at offset in the data of the message. More... | |
uint64_t | XsMessage_getDataLongLong (XsMessage const *thisPtr, XsSize offset) |
Returns the long value at offset in the data of the message. More... | |
void | XsMessage_getDataRealValuesById (XsMessage const *thisPtr, XsDataIdentifier dataIdentifier, XsReal *dest, XsSize offset, XsSize numValues) |
Return current data values as XsReal, conversion is done automatically based on data identifier. More... | |
uint16_t | XsMessage_getDataShort (XsMessage const *thisPtr, XsSize offset) |
Returns the short value at offset in the data of the message. More... | |
void | XsMessage_getEndianCorrectData (XsMessage const *thisPtr, void *value, XsSize size, XsSize offset) |
Get data of size size at offset, and put it byteswapped into value. More... | |
uint8_t | XsMessage_getFPValueSize (XsDataIdentifier id) |
Returns the byte size of id if the format is a floating point format. More... | |
XsMessageHeader * | XsMessage_getHeader (XsMessage *thisPtr) |
Returns a pointer to the message header for this message. More... | |
const uint8_t * | XsMessage_getMessageStart (XsMessage const *thisPtr) |
This function returns a const pointer to the header of the message in thisptr. More... | |
XsSize | XsMessage_getTotalMessageSize (XsMessage const *thisPtr) |
Return the length of the message buffer. More... | |
void | XsMessage_insertData (XsMessage *thisPtr, XsSize count, XsSize offset) |
Create count bytes of empty space at offset in this message. More... | |
int | XsMessage_isChecksumOk (XsMessage const *thisPtr) |
Returns non-zero if the checksum inside the message is correct for the message, zero otherwise. More... | |
void | XsMessage_load (XsMessage *thisPtr, XsSize msgSize, unsigned char const *src) |
This function initializes the XsMessage object and reserves msgSize bytes for data, it then copies in the data from src. More... | |
void | XsMessage_recomputeChecksum (XsMessage *thisPtr) |
Update the checksum for the message. More... | |
void | XsMessage_resizeData (XsMessage *thisPtr, XsSize newSize) |
Resize the buffer of message to newSize bytes. More... | |
void | XsMessage_setBusId (XsMessage *thisPtr, uint8_t busId) |
Set the bus id for this message to busId. More... | |
void | XsMessage_setDataBuffer (XsMessage *thisPtr, const uint8_t *buffer, XsSize size, XsSize offset) |
Puts size number of bytes from buffer into the message at offset. More... | |
void | XsMessage_setDataByte (XsMessage *thisPtr, uint8_t value, XsSize offset) |
Set the byte at offset in the message to value. More... | |
void | XsMessage_setDataDouble (XsMessage *thisPtr, double value, XsSize offset) |
Sets the double at offset in the message to value. More... | |
void | XsMessage_setDataF1220 (XsMessage *thisPtr, double value, XsSize offset) |
Sets the F12.20 at offset in the message to value. More... | |
void | XsMessage_setDataFloat (XsMessage *thisPtr, float value, XsSize offset) |
Sets the float at offset in the message to value. More... | |
void | XsMessage_setDataFP1632 (XsMessage *thisPtr, double value, XsSize offset) |
Sets the F16.32 at offset in the message to value. More... | |
void | XsMessage_setDataFPValuesById (XsMessage *thisPtr, XsDataIdentifier dataIdentifier, double const *data, XsSize offset, XsSize numValues) |
Write a number of floating/fixed point values into to the data buffer, conversion depends on outputSettings. More... | |
void | XsMessage_setDataLong (XsMessage *thisPtr, uint32_t value, XsSize offset) |
Sets the long at offset in the message to value. More... | |
void | XsMessage_setDataLongLong (XsMessage *thisPtr, uint64_t value, XsSize offset) |
Sets the long at offset in the message to value. More... | |
void | XsMessage_setDataRealValuesById (XsMessage *thisPtr, XsDataIdentifier dataIdentifier, XsReal const *data, XsSize offset, XsSize numValues) |
Write a number of floating/fixed point values into to the data buffer, conversion depends on data identifier. More... | |
void | XsMessage_setDataShort (XsMessage *thisPtr, uint16_t value, XsSize offset) |
Sets the short at offset in the message to value. More... | |
void | XsMessage_setEndianCorrectData (XsMessage *thisPtr, void const *value, XsSize size, XsSize offset) |
Set value value of size size byteswapped at offset. More... | |
void | XsMessage_setMessageId (XsMessage *thisPtr, enum XsXbusMessageId msgId) |
Set the message id for this message to msgId. More... | |
void | XsMessage_swap (XsMessage *a, XsMessage *b) |
Swap the contents of a and b. More... | |
void | XsMessage_toHexString (XsMessage const *thisPtr, XsSize maxBytes, XsString *resultValue) |
Return a string containing the first maxBytes bytes of the message in hex format. More... | |
static void | XsMessage_updateChecksumWithValue (XsMessage *thisPtr, const void *value, XsSize sizeofValue, XsSize offset) |
Update the message checksum with the passed value. More... | |
void XSTYPES_DLL_API | xsNameThisThread (const char *threadName) |
Set the name of the current thread to threadName. More... | |
const char * | XsPortInfo_bluetoothAddress (const struct XsPortInfo *thisPtr) |
Returns the bluetooth address. More... | |
void | XsPortInfo_clear (XsPortInfo *thisPtr) |
Initializes the object to the empty state. More... | |
int | XsPortInfo_empty (const struct XsPortInfo *thisPtr) |
Returns true if the XsPortInfo object is empty. More... | |
int | XsPortInfo_isBluetooth (const struct XsPortInfo *thisPtr) |
Returns true if this port info object contains a bluetooth device. More... | |
int | XsPortInfo_isNetwork (const struct XsPortInfo *thisPtr) |
Returns true if this port info object contains a network device. More... | |
int | XsPortInfo_isUsb (const struct XsPortInfo *thisPtr) |
Returns true if this port info object contains a USB device. More... | |
const char * | XsPortInfo_networkServiceName (const struct XsPortInfo *thisPtr) |
Returns the network service name of this port. More... | |
int | XsPortInfo_portNumber (const struct XsPortInfo *thisPtr) |
The port number. More... | |
void | XsPortInfo_swap (struct XsPortInfo *a, struct XsPortInfo *b) |
Swap the contents of a with those of b. More... | |
int | XsPortInfo_usbAddress (const struct XsPortInfo *thisPtr) |
The usb address. More... | |
int | XsPortInfo_usbBus (const struct XsPortInfo *thisPtr) |
The usb bus. More... | |
int | XsQuaternion_compare (XsQuaternion const *thisPtr, XsQuaternion const *other, XsReal tolerance) |
Returns non-zero if the values at thisPtr and other are within tolerance of each other. More... | |
void | XsQuaternion_copy (XsQuaternion *copy, XsQuaternion const *src) |
Copies the contents of thisPtr into copy. More... | |
void | XsQuaternion_destruct (XsQuaternion *thisPtr) |
Sets the contents to 0, which is an invalid XsQuaternion. More... | |
XsReal | XsQuaternion_dotProduct (XsQuaternion const *thisPtr, XsQuaternion const *other) |
Returns the dot product of the thisPtr with other. More... | |
int | XsQuaternion_empty (const XsQuaternion *thisPtr) |
Test if this is a null object. More... | |
int | XsQuaternion_equal (XsQuaternion const *a, XsQuaternion const *b) |
returns non-zero if a and b are numerically equal More... | |
void | XsQuaternion_fromEulerAngles (XsQuaternion *thisPtr, const XsEuler *src) |
Create a quaternion representation from euler angles. More... | |
void | XsQuaternion_fromRotationMatrix (XsQuaternion *thisPtr, const XsMatrix *ori) |
Create a quaternion representation of orientation matrix ori. More... | |
const XsQuaternion * | XsQuaternion_identity (void) |
Returns an XsQuaternion that represents the identity quaternion. More... | |
void | XsQuaternion_inverse (const XsQuaternion *thisPtr, XsQuaternion *dest) |
Compute the inverse/conjugate of this quaternion. More... | |
void | XsQuaternion_invert (XsQuaternion *thisPtr) |
Invert this quaternion. More... | |
void | XsQuaternion_multiply (const XsQuaternion *left, const XsQuaternion *right, XsQuaternion *dest) |
Multiply left quaternion with right quaternion and put the result in dest. The parameters may point to the same XsQuaternion(s). More... | |
XsReal | XsQuaternion_normalize (XsQuaternion *thisPtr) |
Normalize this quaternion. More... | |
XsReal | XsQuaternion_normalized (const XsQuaternion *thisPtr, XsQuaternion *dest) |
Create a normalized version of this quaternion. More... | |
void | XsQuaternion_swap (XsQuaternion *a, XsQuaternion *b) |
Swap the contents of a and b. More... | |
int | XsRange_contains (const XsRange *thisPtr, int i) |
Test if the range contains the given value i. More... | |
int | XsRange_count (const XsRange *thisPtr) |
Get the number of values in the range. More... | |
int | XsRange_empty (const XsRange *thisPtr) |
Test if the range is empty. More... | |
int | XsRange_interval (const XsRange *thisPtr) |
Get the number of values in the range. More... | |
void | XsRange_setRange (XsRange *thisPtr, int f, int l) |
Set a new range. More... | |
const char * | XsRejectReason_toString (XsRejectReason r) |
Convert the XsRejectReason to a human readable string. More... | |
const char * | XsResultValue_toString (XsResultValue result) |
Retrieve a character string corresponding to the given result code. More... | |
XSTYPES_DLL_API int | XsRssi_max (void) |
The maximum RSSI value. More... | |
XSTYPES_DLL_API int | XsRssi_unbiased (int raw) |
Returns the raw RSSI value transformed into a usable (unbiased) number. More... | |
XSTYPES_DLL_API int | XsRssi_unknown (void) |
The RSSI value that was reserved for when the RSSI is unknown. More... | |
void | XsSdiData_construct (XsSdiData *thisPtr, const XsReal *orientationIncrement, const XsReal *velocityIncrement) |
Initialize an XsSdiData object with the optional arguments. More... | |
void | XsSdiData_destruct (XsSdiData *thisPtr) |
Destruct the object, makes the fields invalid. More... | |
int | XsSimpleVersion_compare (XsSimpleVersion const *a, XsSimpleVersion const *b) |
Compare two XsSimpleVersion objects. More... | |
int | XsSimpleVersion_empty (const XsSimpleVersion *thisPtr) |
Test if this is a null-version. More... | |
void | XsSimpleVersion_osVersion (XsSimpleVersion *thisPtr) |
Platdorm independent request of the OS version. Results are cached and of course platform dependent. More... | |
void | XsSimpleVersion_swap (struct XsSimpleVersion *a, struct XsSimpleVersion *b) |
Swap the contents of a with those of b. More... | |
void | XsSnapshot_construct (XsSnapshot *thisPtr) |
Construct an XsSnapshot object. More... | |
void | XsSnapshot_destruct (XsSnapshot *thisPtr) |
Destruct an XsSnapshot object. More... | |
int | XsSyncSetting_compare (const struct XsSyncSetting *a, const struct XsSyncSetting *b) |
Compares a with b. More... | |
int | XsSyncSetting_isInput (const XsSyncSetting *thisPtr) |
Returns whether the selected line is configured as an input line. More... | |
int | XsSyncSetting_isOutput (const XsSyncSetting *thisPtr) |
Returns whether the selected line is configured as an output line. More... | |
void | XsSyncSetting_swap (XsSyncSetting *a, XsSyncSetting *b) |
Swap the contents of a with b. More... | |
void | XsTime_getDateAsString (char *dest, const struct tm *date) |
Retrieves the date as string representation The format is YYYYMMDD so 25 dec 2010 is stored as an array dest[9] = { '2', '0', '1', '0', '1', '2', '2', '5' }. More... | |
void | XsTime_getDateAsWString (wchar_t *dest, const struct tm *date) |
Retrieves the date as wstring representation The format is YYYYMMDD so 25 dec 2010 is stored as an array dest[8] = {'2', '0', '1', '0', '1', '2', '2', '5' }. More... | |
int64_t | XsTime_getDateTime (struct tm *date) |
Retrieves the date and time (platform-independent) More... | |
void | XsTime_getTimeAsString (char *dest, const struct tm *date) |
Retrieves the time as binary The format is HHMMSShh (where H is hour and 'h' is hundredths) so 14:25:01.23 is stored as an array dest[8] = { '1', '4', '2', '5', '0', '1', '2', '3'}. More... | |
void | XsTime_getTimeAsWString (wchar_t *dest, const struct tm *date) |
Retrieves the time as binary The format is HHMMSShh (where H is hour and 'h' is hundredths) so 14:25:01.23 is stored as an array dest[8] = { '1', '4', '2', '5', '0', '1', '2', '3'}. More... | |
uint32_t | XsTime_getTimeOfDay (struct tm *date_, time_t *secs_) |
The function returns the current time of day in ms since midnight. More... | |
void | XsTime_initializeTime () |
Stabilize the clock. More... | |
int64_t | XsTime_localToUtc () |
Returns the conversion value from local time to UTC time in ms. More... | |
void | XsTime_msleep (uint32_t ms) |
Make the current thread sleep for at least ms milliseconds. More... | |
int64_t | XsTime_timeStampNow (XsTimeStamp *now) |
Returns the current time in ms since the epoch (Jan 1st 1970) More... | |
void | XsTime_udelay (uint64_t us) |
Delays the current thread for at least us microseconds. More... | |
int64_t | XsTime_utcToLocal () |
Returns the conversion value from UTC time to local time in ms. More... | |
void | XsTimeInfo_currentLocalTime (struct XsTimeInfo *thisPtr) |
Returns the current local time. More... | |
void | XsTimeInfo_currentTime (struct XsTimeInfo *thisPtr) |
Returns the current UTC time. More... | |
void | XsTimeInfo_makeUtc (struct XsTimeInfo *thisPtr) |
Removes the local time information, making the object pure UTC. More... | |
int64_t | XsTimeStamp_fromTimeInfo (struct XsTimeStamp *thisPtr, const struct XsTimeInfo *info) |
Creates a (UTC) XsTimeStamp from an XsTimeInfo object. More... | |
int32_t | XsTimeStamp_hourPart (const XsTimeStamp *thisPtr) |
Returns the hours part of the time (in the range 0-23) More... | |
void | XsTimeStamp_localToUtcTime (struct XsTimeStamp const *thisPtr, struct XsTimeStamp *utc) |
Convert the supplied time from (assumed) local time to UTC, using the system's local time zone knowledge. More... | |
void | XsTimeStamp_localToUtcTime2 (struct XsTimeStamp const *thisPtr, struct XsTimeStamp *utc, const struct XsTimeInfo *info) |
Convert the supplied time from (assumed) local time to UTC, using the offset in info. More... | |
void | XsTimeStamp_localToUtcTime_ms (struct XsTimeStamp const *thisPtr, struct XsTimeStamp *utc, int64_t utcOffset) |
Convert the supplied time from (assumed) local time to UTC, using the offset in utcOffset. More... | |
int64_t | XsTimeStamp_maxValue (void) |
Returns the maximum value of an XsTimeStamp. More... | |
int32_t | XsTimeStamp_milliSecondPart (const XsTimeStamp *thisPtr) |
Returns the millisecond part of the time (in the range 0-999) More... | |
int32_t | XsTimeStamp_minutePart (const XsTimeStamp *thisPtr) |
Returns the minutes part of the time (in the range 0-59) More... | |
int64_t | XsTimeStamp_now (XsTimeStamp *dest) |
Returns the current time in ms since the epoch (Jan 1st 1970) More... | |
int32_t | XsTimeStamp_secondPart (const XsTimeStamp *thisPtr) |
Returns the seconds part of the time (in the range 0-59) More... | |
int64_t | XsTimeStamp_secondTime (const XsTimeStamp *thisPtr) |
Returns the number of seconds elapsed since the epoch as stored in the XsTimeStamp. More... | |
void | XsTimeStamp_setMilliSecondTime (XsTimeStamp *thisPtr, int64_t t) |
Set the stored time to miliseconds. More... | |
double | XsTimeStamp_timeOfDay (const XsTimeStamp *thisPtr) |
Get the time of day component of the stored timestamp in seconds as a double precision value. More... | |
void | XsTimeStamp_toString (struct XsTimeStamp const *thisPtr, struct XsString *result) |
Converts the timestamp into an XsString object in format YYYY/MM/DD hh:mm:ss.nnn. More... | |
void | XsTimeStamp_toTimeInfo (struct XsTimeStamp const *thisPtr, struct XsTimeInfo *info) |
Converts the timestamp into an XsTimeInfo object. More... | |
void | XsTimeStamp_utcToLocalTime (struct XsTimeStamp const *thisPtr, struct XsTimeStamp *local) |
Convert the supplied time from (assumed) UTC to local time, using the system's local time zone knowledge. More... | |
void | XsTimeStamp_utcToLocalTime2 (struct XsTimeStamp const *thisPtr, struct XsTimeStamp *local, const struct XsTimeInfo *info) |
Convert the supplied time from (assumed) UTC to local time, using the offset in info. More... | |
void | XsTimeStamp_utcToLocalTime_ms (struct XsTimeStamp const *thisPtr, struct XsTimeStamp *local, int64_t utcOffset) |
Convert the supplied time from (assumed) UTC to local time, using the offset in utcOffset. More... | |
void | XsTriggerIndicationData_destruct (XsTriggerIndicationData *thisPtr) |
Destroy the XsTriggerIndicationData object. More... | |
int | XsTriggerIndicationData_valid (const XsTriggerIndicationData *thisPtr) |
Returns true if the object is valid (line and polarity may not be 0) More... | |
void | XsUsbHubInfo_assign (XsUsbHubInfo *thisPtr, XsHubIdentifier hub) |
Assign a new hub identifier to the XsUsbHubInfo. More... | |
void | XsUsbHubInfo_construct (XsUsbHubInfo *thisPtr, XsHubIdentifier hub) |
Initialize the XsUsbHubInfo with hub. More... | |
void | XsUsbHubInfo_copy (XsUsbHubInfo *copy, XsUsbHubInfo const *src) |
Copy the contents of the XsUsbHubInfo to copy. More... | |
void | XsUsbHubInfo_destruct (XsUsbHubInfo *thisPtr) |
Destroy the XsUsbHubInfo. More... | |
int | XsUsbHubInfo_parentPathMatches (const XsUsbHubInfo *left, const XsUsbHubInfo *right) |
Returns true if the two hub info objects share the same device path. More... | |
void | XsUsbHubInfo_swap (XsUsbHubInfo *thisPtr, XsUsbHubInfo *thatPtr) |
Swap the two XsUsbHubInfo items. More... | |
void | XsUtcTime_currentTime (struct XsTimeInfo *thisPtr) |
Returns the current time in UTC date time format. More... | |
void | XsVector3_assign (XsVector3 *thisPtr, const XsReal *src) |
Init the XsVector3 and copy the data from src into the vector if src is not null. More... | |
void | XsVector3_construct (XsVector3 *thisPtr, const XsReal *src) |
Init the XsVector3 and copy the data from src into the vector if src is not null. More... | |
void | XsVector3_copy (XsVector *copy, XsVector3 const *src) |
Copy the contents of the XsVector3 to copy. More... | |
void | XsVector3_destruct (XsVector3 *thisPtr) |
Frees the XsVector3. More... | |
void | XsVector_angularVelocityFromQuaternion (XsVector *thisPtr, XsReal deltaT, const XsQuaternion *quat) |
Get an effective angular velocity from the quaternion, which must represent a delta angle. More... | |
void | XsVector_assign (XsVector *thisPtr, XsSize sz, const XsReal *src) |
Initialize the XsVector using sz number of items from src. More... | |
XsReal | XsVector_cartesianLength (const XsVector *thisPtr) |
Compute and return the cartesian length. More... | |
int | XsVector_compare (const struct XsVector *thisPtr, const struct XsVector *thatPtr, XsReal epsilon) |
Returns non-zero if the two vectors are equal within epsilon. More... | |
void | XsVector_construct (XsVector *thisPtr, XsSize sz, const XsReal *src) |
Initialize the XsVector using sz number of items from src. More... | |
void | XsVector_copy (XsVector *copy, XsVector const *src) |
Copy the contents of the XsVector to copy. More... | |
void | XsVector_destruct (XsVector *thisPtr) |
Release and clear the contents of the vector. More... | |
XsReal | XsVector_dotProduct (const XsVector *a, const XsVector *b) |
Compute and return the dot product of XsVectors a and b. More... | |
int | XsVector_empty (const XsVector *thisPtr) |
Returns a non-zero value if the XsVector does not contain any values. More... | |
int | XsVector_equal (const struct XsVector *a, const struct XsVector *b) |
Returns non-zero when the two vectors are identical. More... | |
void | XsVector_fill (struct XsVector *thisPtr, XsReal value) |
Sets all elements of the XsVector to value. More... | |
void | XsVector_multiplyScalar (const XsVector *thisPtr, XsReal scalar, XsVector *dest) |
Multiplies all values in this XsVector by scalar and puts the result in XsVector dest. More... | |
void | XsVector_normalize (XsVector *thisPtr) |
Normalize the vector. More... | |
void | XsVector_ref (XsVector *thisPtr, XsSize sz, XsReal *buffer, XsDataFlags flags) |
Initialize the XsVector to refer to the supplied buffer. More... | |
void | XsVector_setZero (XsVector *thisPtr) |
Sets all elements of the XsVector to 0. More... | |
void | XsVector_swap (XsVector *a, XsVector *b) |
Swap the contents of a and b. More... | |
int | XsVersion_empty (const XsVersion *thisPtr) |
Test if this is a null-version. More... | |
void | XsVersion_fromSimpleVersion (XsVersion *thisPtr, const XsSimpleVersion *simpleVersion) |
Create a XsVersion a XsSimpleVersion, simpleVersion. More... | |
void | XsVersion_fromString (XsVersion *thisPtr, const XsString *version) |
Set the version to the values in the string. More... | |
void | XsVersion_toSimpleString (const XsVersion *thisPtr, XsString *version) |
Get a string with the version expressed in a readable format. More... | |
void | XsVersion_toSimpleVersion (const XsVersion *thisPtr, XsSimpleVersion *simpleVersion) |
Create a XsSimpleVersion (version) from a XsVersion. More... | |
void | XsVersion_toString (const XsVersion *thisPtr, XsString *version) |
Get a string with the version expressed in a readable format. More... | |
Variables | |
const typedef char * | XsHubIdentifier |
XSMATHCONST XsReal | XsMath_deg2radValue = 0.017453292519943295769236907684886 |
Value to convert degrees to radians by multiplication. More... | |
XSMATHCONST XsReal | XsMath_denormalized = 1e-307 |
Value that represents the subnormal number in floating point wizardry. More... | |
XSMATHCONST XsReal | XsMath_e = 2.7182818284590452353602874713527 |
The value e. More... | |
XSMATHCONST XsReal | XsMath_epsilon = 2.2204460492503131e-016 |
A value related to the precision of floating point arithmetic (2.2204460492503131e-016) More... | |
XSMATHCONST XsReal | XsMath_four = 4.0 |
4 More... | |
XSMATHCONST XsReal | XsMath_halfPi = 1.5707963267948966192313216916397514420985846996875529104874 |
pi/2 More... | |
XSMATHCONST XsReal | XsMath_hugeValue = 1.0e+16 |
A convincingly large number. More... | |
XSMATHCONST XsReal | XsMath_infinity = DBL_MAX |
infinity value More... | |
XSMATHCONST XsReal | XsMath_minusHalfPi = -1.5707963267948966192313216916397514420985846996875529104874 |
-pi/2 More... | |
XSMATHCONST XsReal | XsMath_minusOne = -1.0 |
-1.0 More... | |
XSMATHCONST XsReal | XsMath_minusPt5 = -0.5 |
-0.5 More... | |
XSMATHCONST XsReal | XsMath_minusTwo = -2.0 |
-2 More... | |
XSMATHCONST XsReal | XsMath_one = 1.0 |
1.0 More... | |
XSMATHCONST XsReal | XsMath_pi = 3.1415926535897932384626433832795028841971693993751058209749 |
The value pi. More... | |
XSMATHCONST XsReal | XsMath_pt25 = 0.25 |
0.25 More... | |
XSMATHCONST XsReal | XsMath_pt5 = 0.5 |
0.5 More... | |
XSMATHCONST XsReal | XsMath_rad2degValue = 57.295779513082320876798154814105 |
Value to convert radians to degrees by multiplication. More... | |
XSMATHCONST XsReal | XsMath_sqrt2 = 1.4142135623730950488016887242097 |
sqrt(2) More... | |
XSMATHCONST XsReal | XsMath_sqrtDenormalized = 3.1622776601683793319988935444327e-154 |
Square root of XsMath_denormalized. More... | |
XSMATHCONST XsReal | XsMath_sqrtEpsilon = 1.4901161193847656e-008 |
Square root of XsMath_epsilon. More... | |
XSMATHCONST XsReal | XsMath_sqrtHalf = 0.5 * 1.4142135623730950488016887242097 |
sqrt(0.5) More... | |
XSMATHCONST XsReal | XsMath_tinyValue = 1.0e-16 |
A really small value. More... | |
XSMATHCONST XsReal | XsMath_two = 2.0 |
2 More... | |
XSMATHCONST XsReal | XsMath_twoPi = 6.2831853071795864769252867665590057683943387987502116419498 |
2*pi More... | |
XSMATHCONST XsReal | XsMath_zero = 0.0 |
0 More... | |
#define XS_BID_BROADCAST 0x00 |
#define XS_BID_INVALID 0xFD |
#define XS_BID_MASTER 0xFF |
#define XS_BID_MT 0x01 |
Definition at line 193 of file xsmessage.c.
The type that is used for low-level identification of an open file.
Definition at line 106 of file xsfilepos.h.
The type that is used for positioning inside a file.
Definition at line 102 of file xsfilepos.h.
The type that is used for low-level identification of an open I/O device.
Definition at line 104 of file xsfilepos.h.
uint8_t byteSum | ( | const uint8_t * | buffer, |
XsSize | count | ||
) |
Calculate the sum of the values in the buffer.
This function calculates the sum of the byte values for the first count bytes in the buffer
buffer | An array of (unsigned) bytes |
count | The number of bytes in the buffer |
Definition at line 201 of file xsmessage.c.
|
static |
[in] | id | The data identifier of the data component |
[in] | field | Pointer to a member in XsScrData, pointing to the data to retrieve |
[out] | returnVal | the returned floating point values |
Definition at line 2473 of file xsdatapacket.cpp.
|
static |
\param[in] f The float to convert
Definition at line 769 of file xsmessage.c.
|
static |
Converts input vector input with data identifier id to output XsVector returnVal.
Definition at line 2458 of file xsdatapacket.cpp.
|
static |
\param[in] d The double to cenvert
Definition at line 782 of file xsmessage.c.
|
static |
Checks whether a and b are equal with tolerance tolerance.
[in] | a | double a |
[in] | b | double b |
[in] | tolerance | The tolerance |
Definition at line 315 of file xsquaternion.c.
|
static |
Removes all orientations from the datapacket.
Definition at line 999 of file xsdatapacket.cpp.
|
static |
helper for XsDataPacket_convertRawVector
Definition at line 537 of file xsdatapacket.cpp.
|
inlinestatic |
Swap the endianness based on the data size.
Definition at line 246 of file xsmessage.c.
|
static |
helper for XsDataPacket_convertRawVector
Definition at line 543 of file xsdatapacket.cpp.
|
related |
|
related |
Reinitializes the XsArray with space for count items and copies them from src.
This function reinitializes the object reserving space for at least count items in the buffer. count may be 0. If src is not 0, count items will be copied from src. Previous data will be cleared automatically, but the reserved space will not be reduced.
count | the number of items in src |
src | a pointer to an array of items |
|
related |
|
related |
|
related |
Returns non-zero if the lists are different, 0 if they're equal.
This function compares the two lists in-order
a | The left hand side of the comparison |
b | The right hand side of the comparison |
|
related |
Returns non-zero if the lists are different, 0 if they're equal.
This function compares the two lists in-order
a | The left hand side of the comparison |
b | The right hand side of the comparison |
predicate | The custom comparison predicate to use. It should return 0 when the items are considered equal (see return values below). |
|
related |
Returns -1 if a is smaller in some way than b, 1 if it is larger in some way and 0 if both lists are equal.
This function compares the two lists out-of-order
a | The left hand side of the comparison |
b | The right hand side of the comparison |
|
related |
Initializes the XsArray with space for count items and copies them from src.
This function initializes the object reserving count items in the buffer. count may be 0. If src is not 0, count items from src will be copied.
descriptor | The descriptor of the data in the list |
count | The number of items to reserve space for. When src is not NULL, thisArray is also the number of items copied from src |
src | A pointer to an array of objects to copy, may be NULL, ignored when count is 0 |
|
related |
|
related |
|
related |
|
related |
|
related |
Returns the index of needle in the list or -1 if it wasn't found.
The search does not assume any kind of ordering of the items so in a worst-case scenario it will go through the entire list.
needle | A pointer to the value to search for |
|
related |
Returns the index of needle in the list or -1 if it wasn't found.
The search does not assume any kind of ordering of the items so in a worst-case scenario it will go through the entire list. It will use the supplied predicate to match items against needle.
needle | A pointer to the value to search for |
predicate | A compare function that returns 0 if the values are equal. The arguments are (const void) pointers to items, supplied as such: predicate(item, needle) |
Insert count items from src at index in the array.
index | The index to use for inserting. Anything beyond the end of the array (ie. -1) will append to the actual end of the array. |
count | The number of items to insert |
src | The items to insert, may not be 0 unless count is 0 |
Copies items optimized in a direct way.
This function copies items directly, using memcpy. This works for simple types only.
to | Pointer to array to copy to. |
from | Pointer to array to copy from. |
count | The number of items to copy. |
iSize | The size of an individual item |
|
related |
|
related |
|
related |
Reserves space for count items.
This function reserves space for at least count items. The function will retain the current data in the list.
count | The number of items to reserve space for. When set to 0 or 1, the buffer is resized to the minimum required size to contain the current contents. Otherwise reserving data will only expand the buffer, never shrink it. |
|
related |
Resizes the existing list to count items.
This function will keep the data of the remaining items intact.
count | the number of items the list should have |
|
related |
Reverses the contents of the array by repeatedly using the itemSwap func in the XsArrayDescriptor.
This reverses the contents in-place
|
related |
Sorts the array using the itemCompare func in the XsArrayDescriptor.
This function sorts using qsort
|
related |
Swap the contents of a with those of b.
Where possible, the pointers and administrative values are swapped. If for some reason thisArray is not possible, the lists are swapped one element at a time.
a | The list to swap with b |
b | The list to swap with a |
XsBaudRate XsBaud_codeToRate | ( | XsBaudCode | baudcode | ) |
XsBaudRate XsBaud_numericToRate | ( | int | numeric | ) |
XsBaudCode XsBaud_rateToCode | ( | XsBaudRate | baudrate | ) |
int XsBaud_rateToNumeric | ( | XsBaudRate | baudrate | ) |
|
related |
Construct an XsCalibratedData object.
Definition at line 79 of file xscalibrateddata.c.
|
related |
Destruct an XsCalibratedData object.
Definition at line 89 of file xscalibrateddata.c.
const char* XsConnectivityState_toString | ( | XsConnectivityState | s | ) |
Convert the device state to a human readable string.
Definition at line 73 of file xsconnectivitystate.c.
const char* XsDataFlags_toString | ( | XsDataFlags | f | ) |
Convert the XsDataFlags to a human readable string.
f | The flags to translate |
Definition at line 78 of file xstypedefs.c.
XsVector* XsDataPacket_accelerationHR | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
Returns AccelerationHR.
returnVal | : An XsVector to put the requested in |
Definition at line 2572 of file xsdatapacket.cpp.
double XsDataPacket_altitude | ( | const XsDataPacket * | thisPtr | ) |
The position altitude component of a data item.
\returns The altitude stored in the packet or XsMath_infinity if no altitude is available \sa XsDataPacket_containsAltitude \sa XsDataPacket_positionLLA \sa XsDataPacket_latitudeLongitude
Definition at line 1535 of file xsdatapacket.cpp.
double XsDataPacket_altitudeMsl | ( | const XsDataPacket * | thisPtr | ) |
The position altitude above MSL component of a data item.
\returns The altitude stored in the packet or XsMath_infinity if no altitude is available \sa XsDataPacket_containsAltitudeMsl
Definition at line 1563 of file xsdatapacket.cpp.
XsAnalogInData* XsDataPacket_analogIn1Data | ( | const XsDataPacket * | thisPtr, |
XsAnalogInData * | returnVal | ||
) |
The analog in 1 component of a data item.
returnVal | : The XsAnalogInData object that the analog in 1 value will be assigned to |
Definition at line 1397 of file xsdatapacket.cpp.
XsAnalogInData* XsDataPacket_analogIn2Data | ( | const XsDataPacket * | thisPtr, |
XsAnalogInData * | returnVal | ||
) |
The analog in 2 component of a data item.
returnVal | : The XsAnalogInData object that the analog in 2 value will be assigned to |
Definition at line 1423 of file xsdatapacket.cpp.
XsSnapshot* XsDataPacket_awindaSnapshot | ( | const XsDataPacket * | thisPtr, |
XsSnapshot * | returnVal | ||
) |
Returns the Awinda Snapshot part of the XsDataPacket.
Awinda Snapshot is an internal format used by Xsens devices for high accuracy data trasnfer. In most cases XDA processing will remove this item from the XsDataPacket and replace it with items that are more directly usable.
returnVal | The object to store the requested data in. This must be a properly constructed object. |
Definition at line 2359 of file xsdatapacket.cpp.
XsVector* XsDataPacket_calibratedAcceleration | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The calibrated accelerometer component of a data item.
\param returnVal : The XsVector that the calibrated acceleration will be assigned to \returns A XsVector containing the x, y and z axis values in that order
Definition at line 792 of file xsdatapacket.cpp.
XsCalibratedData* XsDataPacket_calibratedData | ( | const XsDataPacket * | thisPtr, |
XsCalibratedData * | returnVal | ||
) |
Return the calibrated Data component of a data item.
returnVal | Storage for the requested data |
Definition at line 897 of file xsdatapacket.cpp.
XsVector* XsDataPacket_calibratedGyroscopeData | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The calibrated gyroscope component of a data item.
\param returnVal : An XsVector to put the requested data in \returns A XsUShortVector containing the x, y and z axis values in that order
Definition at line 845 of file xsdatapacket.cpp.
XsVector* XsDataPacket_calibratedMagneticField | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The calibrated magnetometer component of a data item.
\param returnVal : An XsVector to put the requested in \returns A XsUShortVector containing the x, y and z axis values in that order
Definition at line 872 of file xsdatapacket.cpp.
void XsDataPacket_clear | ( | XsDataPacket * | thisPtr, |
XsDataIdentifier | id | ||
) |
Clears all data in an XsDataPacket.
id | The id to clear, supply XDI_None to clear the entire object |
Definition at line 459 of file xsdatapacket.cpp.
void XsDataPacket_construct | ( | XsDataPacket * | thisPtr | ) |
Inits a data packet, the packet will be empty after construction.
Definition at line 425 of file xsdatapacket.cpp.
int XsDataPacket_containsAccelerationHR | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains AccelerationHR.
Definition at line 2580 of file xsdatapacket.cpp.
int XsDataPacket_containsAltitude | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains position altitude data.
Definition at line 1544 of file xsdatapacket.cpp.
int XsDataPacket_containsAltitudeMsl | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains position altitude above MSL data.
\returns true if this packet contains position altitude data
Definition at line 1572 of file xsdatapacket.cpp.
int XsDataPacket_containsAnalogIn1Data | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains analog in 1 data.
Definition at line 1405 of file xsdatapacket.cpp.
int XsDataPacket_containsAnalogIn2Data | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains analog in 2 data.
Definition at line 1431 of file xsdatapacket.cpp.
int XsDataPacket_containsAwindaSnapshot | ( | const XsDataPacket * | thisPtr | ) |
Returns true if the XsDataPacket contains Awinda Snapshot data.
Definition at line 2367 of file xsdatapacket.cpp.
int XsDataPacket_containsCalibratedAcceleration | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains calibrated accelerometer data.
Definition at line 800 of file xsdatapacket.cpp.
int XsDataPacket_containsCalibratedData | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains calibrated Data.
Definition at line 912 of file xsdatapacket.cpp.
int XsDataPacket_containsCalibratedGyroscopeData | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains calibrated gyroscope data.
Definition at line 853 of file xsdatapacket.cpp.
int XsDataPacket_containsCalibratedMagneticField | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains calibrated magnetometer data.
Definition at line 880 of file xsdatapacket.cpp.
int XsDataPacket_containsCorrectedMagneticField | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains corrected magnetometer data (ICC result).
Definition at line 944 of file xsdatapacket.cpp.
int XsDataPacket_containsDetailedStatus | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains detailed status data.
Definition at line 1735 of file xsdatapacket.cpp.
int XsDataPacket_containsFrameRange | ( | const XsDataPacket * | thisPtr | ) |
Returns whether the datapacket contains a framerange.
\returns Whether the datapacket contains a framerange
Definition at line 2054 of file xsdatapacket.cpp.
int XsDataPacket_containsFreeAcceleration | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains free acceleration.
Free acceleration is the acceleration with the local gravity vector subtracted.
Definition at line 2025 of file xsdatapacket.cpp.
int XsDataPacket_containsFullSnapshot | ( | const XsDataPacket * | thisPtr | ) |
Returns true if the XsDataPacket contains Full Snapshot data.
Definition at line 2338 of file xsdatapacket.cpp.
int XsDataPacket_containsGloveData | ( | const XsDataPacket * | thisPtr, |
XsHandId | hand | ||
) |
Check if data item contains glove data.
hand | Which hand to get data for, must be either XHI_LeftHand or XHI_RightHand for a particular side or XHI_Unknown for any side |
Definition at line 1280 of file xsdatapacket.cpp.
int XsDataPacket_containsGloveSnapshot | ( | const XsDataPacket * | thisPtr, |
XsHandId | hand | ||
) |
Returns true if the XsDataPacket contains Glove Snapshot data.
hand | Which hand to get data for, must be either XHI_LeftHand or XHI_RightHand for a particular side or XHI_Unknown for any side |
Definition at line 2421 of file xsdatapacket.cpp.
int XsDataPacket_containsGnssAge | ( | const XsDataPacket * | thisPtr | ) |
Returns 1 if data item contains GnssAge, 0 otherwise.
Definition at line 2157 of file xsdatapacket.cpp.
int XsDataPacket_containsGnssPvtPulse | ( | const XsDataPacket * | thisPtr | ) |
Check if data item XsDataPacket_contains a pvt pulse.
Definition at line 2133 of file xsdatapacket.cpp.
int XsDataPacket_containsLatitudeLongitude | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains position latitude longitude data.
Definition at line 1514 of file xsdatapacket.cpp.
int XsDataPacket_containsOrientation | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains orientation Data of any kind.
Definition at line 1137 of file xsdatapacket.cpp.
int XsDataPacket_containsOrientationIncrement | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains delta quaternion data.
Definition at line 826 of file xsdatapacket.cpp.
int XsDataPacket_containsPacketCounter | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains a packet counter.
Definition at line 1860 of file xsdatapacket.cpp.
int XsDataPacket_containsPacketCounter8 | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains an 8 bit packet counter.
Definition at line 1822 of file xsdatapacket.cpp.
int XsDataPacket_containsPositionLLA | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains position lat lon alt data.
Definition at line 1477 of file xsdatapacket.cpp.
int XsDataPacket_containsPressure | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains pressure data.
Definition at line 1175 of file xsdatapacket.cpp.
int XsDataPacket_containsPressureAge | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains pressure age data.
Definition at line 1183 of file xsdatapacket.cpp.
int XsDataPacket_containsRateOfTurnHR | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains RateOfTurnHR.
Definition at line 2605 of file xsdatapacket.cpp.
int XsDataPacket_containsRawAcceleration | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains Raw Accelerometer data.
Definition at line 562 of file xsdatapacket.cpp.
int XsDataPacket_containsRawBlob | ( | const XsDataPacket * | thisPtr | ) |
Returns true if the XsDataPacket contains raw blob data.
Definition at line 2555 of file xsdatapacket.cpp.
int XsDataPacket_containsRawData | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains raw data.
Definition at line 739 of file xsdatapacket.cpp.
int XsDataPacket_containsRawGnssPvtData | ( | const XsDataPacket * | thisPtr | ) |
Returns 1 if data item contains RawGnssPvtData, 0 otherwise.
Definition at line 2108 of file xsdatapacket.cpp.
int XsDataPacket_containsRawGnssSatInfo | ( | const XsDataPacket * | thisPtr | ) |
Returns 1 if data item contains RawGnssPvtData, 0 otherwise.
Definition at line 2182 of file xsdatapacket.cpp.
int XsDataPacket_containsRawGyroscopeData | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains raw gyroscope data.
Definition at line 594 of file xsdatapacket.cpp.
int XsDataPacket_containsRawGyroscopeTemperatureData | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains raw gyroscope temperature data.
Definition at line 691 of file xsdatapacket.cpp.
int XsDataPacket_containsRawMagneticField | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains raw magnetometer data.
Definition at line 621 of file xsdatapacket.cpp.
int XsDataPacket_containsRawTemperature | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains raw temperature data.
Definition at line 651 of file xsdatapacket.cpp.
int XsDataPacket_containsRssi | ( | const XsDataPacket * | thisPtr | ) |
Returns whether the datapacket contains an rssi value.
\returns Whether the datapacket contains an rssi value
Definition at line 2082 of file xsdatapacket.cpp.
int XsDataPacket_containsSampleTime64 | ( | const XsDataPacket * | thisPtr | ) |
Check if data item XsDataPacket contains a full 64-bit sample time.
Definition at line 1969 of file xsdatapacket.cpp.
int XsDataPacket_containsSampleTimeCoarse | ( | const XsDataPacket * | thisPtr | ) |
Check if data item XsDataPacket_contains a sample time coarse.
Definition at line 1916 of file xsdatapacket.cpp.
int XsDataPacket_containsSampleTimeFine | ( | const XsDataPacket * | thisPtr | ) |
Check if data item XsDataPacket_contains a sample time fine.
Definition at line 1887 of file xsdatapacket.cpp.
int XsDataPacket_containsSdiData | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains strapdown integration data.
Definition at line 1241 of file xsdatapacket.cpp.
int XsDataPacket_containsStatus | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains legacy status data.
Definition at line 1743 of file xsdatapacket.cpp.
int XsDataPacket_containsStoredDeviceId | ( | const XsDataPacket * | thisPtr | ) |
Return non-zero if this data packet stores a device ID.
Definition at line 1329 of file xsdatapacket.cpp.
int XsDataPacket_containsStoredLocationId | ( | const XsDataPacket * | thisPtr | ) |
Return non-zero if this data packet stores a location ID.
Definition at line 1354 of file xsdatapacket.cpp.
int XsDataPacket_containsTemperature | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains temperature data.
Definition at line 1378 of file xsdatapacket.cpp.
int XsDataPacket_containsTriggerIndication | ( | const XsDataPacket * | thisPtr, |
XsDataIdentifier | triggerId | ||
) |
Check if data item contains trigger indication data.
[in] | triggerId | The trigger data identifier to check (e.g. XDI_TriggerIn1 or XDI_TriggerIn2) |
Definition at line 1794 of file xsdatapacket.cpp.
int XsDataPacket_containsUtcTime | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains utc time data.
Definition at line 1997 of file xsdatapacket.cpp.
int XsDataPacket_containsVelocity | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains velocity NED data.
Definition at line 1677 of file xsdatapacket.cpp.
int XsDataPacket_containsVelocityIncrement | ( | const XsDataPacket * | thisPtr | ) |
Check if data item contains delta velocity data.
Definition at line 773 of file xsdatapacket.cpp.
XsDataIdentifier XsDataPacket_coordinateSystemOrientation | ( | const XsDataPacket * | thisPtr | ) |
Returns the coordinate system of the first orientation data of any kind in the packet.
Definition at line 1167 of file xsdatapacket.cpp.
XsDataIdentifier XsDataPacket_coordinateSystemVelocity | ( | const XsDataPacket * | thisPtr | ) |
Returns the coordinate system of the first velocity data of any kind in the packet.
Definition at line 1710 of file xsdatapacket.cpp.
void XsDataPacket_copy | ( | XsDataPacket * | copy, |
XsDataPacket const * | src | ||
) |
Copy the XsDataPacket to copy.
copy | The object to copy to |
src | The source to copy from |
Definition at line 475 of file xsdatapacket.cpp.
void XsDataPacket_copyConstruct | ( | XsDataPacket * | thisPtr, |
XsDataPacket const * | src | ||
) |
Initializes a data packet as a (referenced) copy of src.
src | The data packet to reference-copy from |
Definition at line 437 of file xsdatapacket.cpp.
XsVector* XsDataPacket_correctedMagneticField | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The corrected magnetometer component of a data item (ICC result).
returnVal | : An XsVector to put the requested in |
Definition at line 936 of file xsdatapacket.cpp.
XsDataIdentifier XsDataPacket_dataFormat | ( | const XsDataPacket * | thisPtr, |
XsDataIdentifier | id | ||
) |
Returns the dataformat of a specific data identifier in the packet.
id | : The XsDataIdentifier to query |
Definition at line 528 of file xsdatapacket.cpp.
void XsDataPacket_destruct | ( | XsDataPacket * | thisPtr | ) |
Clears and frees data in an XsDataPacket.
Definition at line 449 of file xsdatapacket.cpp.
int XsDataPacket_empty | ( | const XsDataPacket * | thisPtr | ) |
Returns whether the datapacket is empty.
Definition at line 506 of file xsdatapacket.cpp.
XsRange* XsDataPacket_frameRange | ( | const XsDataPacket * | thisPtr, |
XsRange * | returnVal | ||
) |
Returns the frame range contained in the datapacket.
\param returnVal : The XsRange object that will get the range from the packet \returns Returns an XsRange object with the range from the packet
Definition at line 2045 of file xsdatapacket.cpp.
XsVector* XsDataPacket_freeAcceleration | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The free acceleration component of a data item.
Free acceleration is the acceleration with the local gravity vector subtracted.
returnVal | : An XsVector to put the requested in |
Definition at line 2016 of file xsdatapacket.cpp.
XsSnapshot* XsDataPacket_fullSnapshot | ( | const XsDataPacket * | thisPtr, |
XsSnapshot * | returnVal | ||
) |
Returns the Full Snapshot part of the XsDataPacket.
Full Snapshot is an internal format used by Xsens devices for high accuracy data transfer. In most cases XDA processing will remove this item from the XsDataPacket and replace it with items that are more directly usable.
returnVal | The object to store the requested data in. This must be a properly constructed object. |
Definition at line 2327 of file xsdatapacket.cpp.
XsGloveData* XsDataPacket_gloveData | ( | const XsDataPacket * | thisPtr, |
XsGloveData * | returnVal, | ||
XsHandId | hand | ||
) |
Return the glove data component of a data item.
returnVal | Storage for the requested data |
hand | Which hand to get data for, must be either XHI_LeftHand or XHI_RightHand |
Definition at line 1261 of file xsdatapacket.cpp.
XsGloveSnapshot* XsDataPacket_gloveSnapshot | ( | const XsDataPacket * | thisPtr, |
XsGloveSnapshot * | returnVal, | ||
XsHandId | hand | ||
) |
Returns the Glove Snapshot part of the XsDataPacket.
Glove Snapshot is an internal format used by Xsens devices for high accuracy data transfer. In most cases XDA processing will remove this item from the XsDataPacket and replace it with items that are more directly usable.
returnVal | The object to store the requested data in. This must be a properly constructed object. |
hand | Which hand to get data for, must be either XHI_LeftHand or XHI_RightHand |
Definition at line 2402 of file xsdatapacket.cpp.
uint8_t XsDataPacket_gnssAge | ( | const XsDataPacket * | thisPtr | ) |
Returns the age of the GNSS data (in samples)
Definition at line 2149 of file xsdatapacket.cpp.
uint32_t XsDataPacket_gnssPvtPulse | ( | const XsDataPacket * | thisPtr | ) |
Returns the timestamp of a PVT Pulse.
\returns Returns the timestamp of a PVT Pulse
Definition at line 2125 of file xsdatapacket.cpp.
int XsDataPacket_isAwindaSnapshotARetransmission | ( | const XsDataPacket * | thisPtr | ) |
Returns true if the contained Awinda Snapshot is marked as a retransmission.
Definition at line 2384 of file xsdatapacket.cpp.
int XsDataPacket_itemCount | ( | const XsDataPacket * | thisPtr | ) |
Returns the number of individual items in the XsDataPacket.
Definition at line 514 of file xsdatapacket.cpp.
XsVector* XsDataPacket_latitudeLongitude | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The position latitude longitude component of a data item.
\param returnVal : The XsVector to return the requested data in \returns An XsVector containing the latitude and longitude values in that order \sa XsDataPacket_containsLatitudeLongitude \sa XsDataPacket_positionLLA \sa XsDataPacket_altitude
Definition at line 1505 of file xsdatapacket.cpp.
XsDataPacket* XsDataPacket_merge | ( | XsDataPacket * | thisPtr, |
const XsDataPacket * | other, | ||
int | overwrite | ||
) |
Merge the data items from other into the packet.
\details The data items contained in XsDataPacket \a other will be added to this packet. Items that are already present will be overwritten depending on the value of \a overwrite. \param other The XsDataPacket to read the data items from \param overwrite When set to true, existing items will be overwritten, otherwise they will not be modified \returns Returns the updated data packet
Definition at line 2206 of file xsdatapacket.cpp.
XsEuler* XsDataPacket_orientationEuler | ( | const XsDataPacket * | thisPtr, |
XsEuler * | returnVal, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Return the orientation component of a data item as a euler angles.
\param returnVal An %XsEuler to put the requested orientation in \param coordinateSystem The coordinate system of the requested orientation. If this does not match the stored coordinate system, it will be transformed to the requested orientation. \returns A %XsEuler containing the orientation data
Definition at line 1026 of file xsdatapacket.cpp.
XsDataIdentifier XsDataPacket_orientationIdentifier | ( | const XsDataPacket * | thisPtr | ) |
Returns the data identifier of the first orientation data of any kind in the packet.
Definition at line 1147 of file xsdatapacket.cpp.
XsQuaternion* XsDataPacket_orientationIncrement | ( | const XsDataPacket * | thisPtr, |
XsQuaternion * | returnVal | ||
) |
The delta quaternion (deltaQ) component of a data item.
returnVal | : The XsQuaternion that the deltaQ will be assigned to |
Definition at line 818 of file xsdatapacket.cpp.
XsMatrix* XsDataPacket_orientationMatrix | ( | const XsDataPacket * | thisPtr, |
XsMatrix * | returnVal, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Return the orientation component of a data item as a orientation matrix.
\param returnVal An %XsMatrix to put the requested orientation in \param coordinateSystem The coordinate system of the requested orientation. If this does not match the stored coordinate system, it will be transformed to the requested orientation. \returns An %XsMatrix containing the orientation data
Definition at line 1086 of file xsdatapacket.cpp.
XsQuaternion* XsDataPacket_orientationQuaternion | ( | const XsDataPacket * | thisPtr, |
XsQuaternion * | returnVal, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Return the orientation component of a data item as a quaternion.
\param returnVal An %XsQuaternion to put the requested orientation in \param coordinateSystem The coordinate system of the requested orientation. If this does not match the stored coordinate system, it will be transformed to the requested orientation. \returns An XsQuaternion containing the orientation data
Definition at line 965 of file xsdatapacket.cpp.
uint16_t XsDataPacket_packetCounter | ( | const XsDataPacket * | thisPtr | ) |
Return the packet/frame counter of a packet.
\details For strapdown integration data, this function will return the m_wlastFrameNumber For other data, this function will return the m_sc This way there is a function that will always return the counter of a packet \returns Returns the packet/frame counter of a packet
Definition at line 1844 of file xsdatapacket.cpp.
uint8_t XsDataPacket_packetCounter8 | ( | const XsDataPacket * | thisPtr | ) |
Return the 8 bit packet counter of a packet.
\details This function returns an 8 bit packet counter as used by some third party devices \returns Returns the 8 bit packet counter of a packet
Definition at line 1814 of file xsdatapacket.cpp.
XsVector* XsDataPacket_positionLLA | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The position lat lon alt component of a data item.
\param returnVal : The XsVector to return the requested data in \returns An XsVector containing the latitude, longitude and altitude values in that order
Definition at line 1451 of file xsdatapacket.cpp.
XsPressure* XsDataPacket_pressure | ( | const XsDataPacket * | thisPtr, |
XsPressure * | returnVal | ||
) |
The air pressure component of a data item.
\param returnVal : An XsPressure object to put the requested in \returns An XsPressure object containing the pressure and if available the pressure age
Definition at line 1194 of file xsdatapacket.cpp.
int XsDataPacket_privateCount | ( | ) |
Returns the number of private data items for all XsDataPacket combined currently in memory.
This is an internal value and should not be used for any other purpose.
Definition at line 2622 of file xsdatapacket.cpp.
XsVector* XsDataPacket_rateOfTurnHR | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
Returns RateOfTurnHR.
returnVal | : An XsVector to put the requested in |
Definition at line 2597 of file xsdatapacket.cpp.
XsUShortVector* XsDataPacket_rawAcceleration | ( | const XsDataPacket * | thisPtr, |
XsUShortVector * | returnVal | ||
) |
The raw accelerometer component of a data item.
returnVal | : An XsUShortVector to put the requested data in |
Definition at line 554 of file xsdatapacket.cpp.
XsVector* XsDataPacket_rawAccelerationConverted | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The raw accelerometer component of a data item, converted to floating point values.
returnVal | : An XsVector to put the requested data in |
Definition at line 2499 of file xsdatapacket.cpp.
XsByteArray* XsDataPacket_rawBlob | ( | const XsDataPacket * | thisPtr, |
XsByteArray * | returnVal | ||
) |
Returns the raw blob part of the XsDataPacket.
returnVal | The object to store the requested data in. This must be a properly constructed object. |
Definition at line 2547 of file xsdatapacket.cpp.
XsScrData* XsDataPacket_rawData | ( | const XsDataPacket * | thisPtr, |
XsScrData * | returnVal | ||
) |
Return the raw data component of a data item.
returnVal | The object to store the requested data in |
Definition at line 717 of file xsdatapacket.cpp.
XsRawGnssPvtData* XsDataPacket_rawGnssPvtData | ( | const XsDataPacket * | thisPtr, |
XsRawGnssPvtData * | returnVal | ||
) |
Returns a struct with RawGnssPvtData.
returnVal | The object to store the requested data in |
Definition at line 2100 of file xsdatapacket.cpp.
XsRawGnssSatInfo* XsDataPacket_rawGnssSatInfo | ( | const XsDataPacket * | thisPtr, |
XsRawGnssSatInfo * | returnVal | ||
) |
Returns a struct with RawGnssSatInfo.
returnVal | The object to store the requested data in |
Definition at line 2174 of file xsdatapacket.cpp.
XsUShortVector* XsDataPacket_rawGyroscopeData | ( | const XsDataPacket * | thisPtr, |
XsUShortVector * | returnVal | ||
) |
The raw gyroscope component of a data item.
\param returnVal : An XsUShortVector to put the requested data in \returns A XsUShortVector containing the x, y and z axis values in that order
Definition at line 586 of file xsdatapacket.cpp.
XsVector* XsDataPacket_rawGyroscopeDataConverted | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The raw gyroscope component of a data item, converted to floating point values.
returnVal | : An XsVector to put the requested data in |
Definition at line 2510 of file xsdatapacket.cpp.
XsUShortVector* XsDataPacket_rawGyroscopeTemperatureData | ( | const XsDataPacket * | thisPtr, |
XsUShortVector * | returnVal | ||
) |
The raw gyroscope temperature component of a data item.
\param returnVal : An XsUShortVector to put the requested data in \returns A XsUShortVector containing the x, y and z axis values in that order
Definition at line 679 of file xsdatapacket.cpp.
XsVector* XsDataPacket_rawGyroscopeTemperatureDataConverted | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The raw gyroscope temperature component of a data item, converted to floating point values.
returnVal | : An XsVector to put the requested data in |
Definition at line 2532 of file xsdatapacket.cpp.
XsUShortVector* XsDataPacket_rawMagneticField | ( | const XsDataPacket * | thisPtr, |
XsUShortVector * | returnVal | ||
) |
The raw magnetometer component of a data item.
\param returnVal : An XsUShortVector to put the requested data in \returns A XsUShortVector containing the x, y and z axis values in that order
Definition at line 613 of file xsdatapacket.cpp.
XsVector* XsDataPacket_rawMagneticFieldConverted | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The raw magnetometer component of a data item, converted to floating point values.
returnVal | : An XsVector to put the requested data in |
Definition at line 2521 of file xsdatapacket.cpp.
uint16_t XsDataPacket_rawTemperature | ( | const XsDataPacket * | thisPtr | ) |
The raw temperature component of a data item.
\returns An uint16_t containing the raw temperature value
Definition at line 639 of file xsdatapacket.cpp.
int XsDataPacket_rssi | ( | const XsDataPacket * | thisPtr | ) |
Returns the rssi value contained in the datapacket.
\returns Returns the rssi value contained in the datapacket
Definition at line 2073 of file xsdatapacket.cpp.
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.
Definition at line 1938 of file xsdatapacket.cpp.
uint32_t XsDataPacket_sampleTimeCoarse | ( | const XsDataPacket * | thisPtr | ) |
Definition at line 1908 of file xsdatapacket.cpp.
uint32_t XsDataPacket_sampleTimeFine | ( | const XsDataPacket * | thisPtr | ) |
Return the fine sample time of a packet.
\returns Returns the fine sample time of a packet
Definition at line 1879 of file xsdatapacket.cpp.
XsSdiData* XsDataPacket_sdiData | ( | const XsDataPacket * | thisPtr, |
XsSdiData * | returnVal | ||
) |
Return the strapdown integration data component of a data item.
returnVal | Storage for the requested data |
Definition at line 1224 of file xsdatapacket.cpp.
void XsDataPacket_setAccelerationHR | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update the AccelerationHR for the item.
vec | A 3-component vector containing AccelerationHR |
Definition at line 2588 of file xsdatapacket.cpp.
void XsDataPacket_setAltitude | ( | XsDataPacket * | thisPtr, |
double | data | ||
) |
Add/update altitude data for the item.
data | : The altitude data to store in the packet |
Definition at line 1553 of file xsdatapacket.cpp.
void XsDataPacket_setAltitudeMsl | ( | XsDataPacket * | thisPtr, |
double | data | ||
) |
Add/update altitude above MSL data for the item.
\param data : The altitude data to store in the packet
Definition at line 1581 of file xsdatapacket.cpp.
void XsDataPacket_setAnalogIn1Data | ( | XsDataPacket * | thisPtr, |
const XsAnalogInData * | data | ||
) |
Add/update analog in 1 data for the item.
data | The data is added to the datapacket. If the packet already contains analogin1 data, it is replaced with the new value |
Definition at line 1414 of file xsdatapacket.cpp.
void XsDataPacket_setAnalogIn2Data | ( | XsDataPacket * | thisPtr, |
const XsAnalogInData * | data | ||
) |
Add/update analog in 2 data for the item.
data | The data is added to the datapacket. If the packet already contains analogin1 data, it is replaced with the new value |
Definition at line 1440 of file xsdatapacket.cpp.
void XsDataPacket_setAwindaSnapshot | ( | XsDataPacket * | thisPtr, |
XsSnapshot const * | data, | ||
int | retransmission | ||
) |
Sets the Awinda Snapshot part of the XsDataPacket.
data | The new data to set |
retransmission | When non-zero, the item is marked as a retransmitted packet |
Definition at line 2376 of file xsdatapacket.cpp.
void XsDataPacket_setCalibratedAcceleration | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update calibrated accelerometer data for the item.
vec | : The data to update the XsDataPacket with |
Definition at line 808 of file xsdatapacket.cpp.
void XsDataPacket_setCalibratedData | ( | XsDataPacket * | thisPtr, |
const XsCalibratedData * | data | ||
) |
Add/update calibrated Data for the item.
data | : The data to update the XsDataPacket with |
Definition at line 923 of file xsdatapacket.cpp.
void XsDataPacket_setCalibratedGyroscopeData | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update calibrated gyroscope data for the item.
vec | : The data to update the XsDataPacket with |
Definition at line 861 of file xsdatapacket.cpp.
void XsDataPacket_setCalibratedMagneticField | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update calibrated magnetometer data for the item.
vec | : The data to update the XsDataPacket with |
Definition at line 888 of file xsdatapacket.cpp.
void XsDataPacket_setCorrectedMagneticField | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update corrected magnetometer data for the item (ICC result).
vec | : The data to update the XsDataPacket with |
Definition at line 952 of file xsdatapacket.cpp.
void XsDataPacket_setFrameRange | ( | XsDataPacket * | thisPtr, |
const XsRange * | r | ||
) |
Sets or updates the frame range in the datapacket.
\param r : The XsRange object that should be added to the packet
Definition at line 2063 of file xsdatapacket.cpp.
void XsDataPacket_setFreeAcceleration | ( | XsDataPacket * | thisPtr, |
const XsVector * | g | ||
) |
Add/update free acceleration data for the item.
Free acceleration is the acceleration with the local gravity vector subtracted.
g | A 3-component vector containing the new free acceleration |
Definition at line 2034 of file xsdatapacket.cpp.
void XsDataPacket_setFullSnapshot | ( | XsDataPacket * | thisPtr, |
XsSnapshot const * | data, | ||
int | retransmission | ||
) |
Sets the Awinda Snapshot part of the XsDataPacket.
data | The new data to set |
retransmission | When non-zero, the item is marked as a retransmitted packet |
Definition at line 2347 of file xsdatapacket.cpp.
void XsDataPacket_setGloveData | ( | XsDataPacket * | thisPtr, |
const XsGloveData * | data, | ||
XsHandId | hand | ||
) |
Add/update strapdown integration data for the item.
data | The updated data |
hand | Which hand to get data for, must be either XHI_LeftHand or XHI_RightHand |
Definition at line 1299 of file xsdatapacket.cpp.
void XsDataPacket_setGloveSnapshot | ( | XsDataPacket * | thisPtr, |
XsGloveSnapshot const * | data, | ||
int | retransmission, | ||
XsHandId | hand | ||
) |
Sets the Glove Snapshot part of the XsDataPacket.
data | The new data to set |
retransmission | When non-zero, the item is marked as a retransmitted packet |
hand | Which hand to get data for, must be either XHI_LeftHand or XHI_RightHand |
Definition at line 2441 of file xsdatapacket.cpp.
void XsDataPacket_setGnssAge | ( | XsDataPacket * | thisPtr, |
uint8_t | age | ||
) |
Sets or updates the GnssAge value in the datapacket.
age | The new value that should be added to the packet |
Definition at line 2165 of file xsdatapacket.cpp.
void XsDataPacket_setGnssPvtPulse | ( | XsDataPacket * | thisPtr, |
uint32_t | counter | ||
) |
Add/update pvt pulse timestamp data for the item.
counter | The new data to set |
Definition at line 2141 of file xsdatapacket.cpp.
void XsDataPacket_setLatitudeLongitude | ( | XsDataPacket * | thisPtr, |
const XsVector * | data | ||
) |
Add/update position latitude longitude data for the item.
\param data : The XsVector that contains the latitude longitude data to store in the packet \sa XsDataPacket_setPositionLLA \sa XsDataPacket_setAltitude
Definition at line 1524 of file xsdatapacket.cpp.
void XsDataPacket_setMessage | ( | XsDataPacket * | thisPtr, |
const XsMessage * | msg | ||
) |
Overwrite the contents of the XsDataPacket with the contents of the supplied XsMessage.
msg | The XsMessage to read from |
Definition at line 2248 of file xsdatapacket.cpp.
void XsDataPacket_setOrientationEuler | ( | XsDataPacket * | thisPtr, |
const XsEuler * | data, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Add/update quaternion orientation Data for the item.
data | The new data to set |
coordinateSystem | The coordinate system of the orientation. |
Definition at line 1071 of file xsdatapacket.cpp.
void XsDataPacket_setOrientationIncrement | ( | XsDataPacket * | thisPtr, |
const XsQuaternion * | quat | ||
) |
Add/update delta quaternion data for the item.
quat | : The data to update the XsDataPacket with |
Definition at line 834 of file xsdatapacket.cpp.
void XsDataPacket_setOrientationMatrix | ( | XsDataPacket * | thisPtr, |
const XsMatrix * | data, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Add/update quaternion orientation Data for the item.
data | The new data to set |
coordinateSystem | The coordinate system of the orientation. |
Definition at line 1127 of file xsdatapacket.cpp.
void XsDataPacket_setOrientationQuaternion | ( | XsDataPacket * | thisPtr, |
const XsQuaternion * | data, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Add/update quaternion orientation Data for the item.
data | The new data to set |
coordinateSystem | The coordinate system of the requested orientation. |
Definition at line 1011 of file xsdatapacket.cpp.
void XsDataPacket_setPacketCounter | ( | XsDataPacket * | thisPtr, |
uint16_t | counter | ||
) |
Add/update packet counter data for the item.
counter | The new data to set |
Definition at line 1869 of file xsdatapacket.cpp.
void XsDataPacket_setPacketCounter8 | ( | XsDataPacket * | thisPtr, |
uint8_t | counter | ||
) |
Add/update 8 bit packet counter data for the item.
counter | The new data to set |
Definition at line 1830 of file xsdatapacket.cpp.
void XsDataPacket_setPositionLLA | ( | XsDataPacket * | thisPtr, |
const XsVector * | data | ||
) |
Add/update position lat lon alt data for the item.
\param data : The XsVector that conrtains the Lat/Long/Alt data to store in the packet
Definition at line 1487 of file xsdatapacket.cpp.
void XsDataPacket_setPressure | ( | XsDataPacket * | thisPtr, |
const XsPressure * | data | ||
) |
Add/update pressure data for the item.
data | The new data to set |
Definition at line 1214 of file xsdatapacket.cpp.
void XsDataPacket_setRateOfTurnHR | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update the RateOfTurnHR for the item.
vec | A 3-component vector containing RateOfTurnHR |
Definition at line 2613 of file xsdatapacket.cpp.
void XsDataPacket_setRawAcceleration | ( | XsDataPacket * | thisPtr, |
const XsUShortVector * | vec | ||
) |
Add/update raw accelerometer data for the item.
\param vec : The data to update the XsDataPacket with \details This will add the raw acceleration from \a vec to the data packet. If the packet already contains raw acceleration, it will be replaced.
Definition at line 575 of file xsdatapacket.cpp.
void XsDataPacket_setRawBlob | ( | XsDataPacket * | thisPtr, |
const XsByteArray * | data | ||
) |
Sets the raw blob part of the XsDataPacket.
data | The new data to set |
Definition at line 2563 of file xsdatapacket.cpp.
void XsDataPacket_setRawData | ( | XsDataPacket * | thisPtr, |
const XsScrData * | data | ||
) |
Add/update raw data for the item.
data | The new data to set |
Definition at line 747 of file xsdatapacket.cpp.
void XsDataPacket_setRawGnssPvtData | ( | XsDataPacket * | thisPtr, |
const XsRawGnssPvtData * | r | ||
) |
Sets or updates the RawGnssPvtData value in the datapacket.
r | The new value that should be added to the packet |
Definition at line 2116 of file xsdatapacket.cpp.
void XsDataPacket_setRawGnssSatInfo | ( | XsDataPacket * | thisPtr, |
const XsRawGnssSatInfo * | data | ||
) |
Sets or updates the RawGnssSatInfo value in the datapacket.
data | The new value that should be added to the packet |
Definition at line 2190 of file xsdatapacket.cpp.
void XsDataPacket_setRawGyroscopeData | ( | XsDataPacket * | thisPtr, |
const XsUShortVector * | vec | ||
) |
Add/update raw gyroscope data for the item.
vec | The new data to set |
Definition at line 602 of file xsdatapacket.cpp.
void XsDataPacket_setRawGyroscopeTemperatureData | ( | XsDataPacket * | thisPtr, |
const XsUShortVector * | vec | ||
) |
Add/update raw gyroscope temperature data for the item.
vec | The new data to set |
Definition at line 699 of file xsdatapacket.cpp.
void XsDataPacket_setRawMagneticField | ( | XsDataPacket * | thisPtr, |
const XsUShortVector * | vec | ||
) |
Add/update raw magnetometer data for the item.
vec | The new data to set |
Definition at line 630 of file xsdatapacket.cpp.
void XsDataPacket_setRawTemperature | ( | XsDataPacket * | thisPtr, |
uint16_t | temp | ||
) |
Add/update raw temperature data for the item.
temp | The new data to set |
Definition at line 659 of file xsdatapacket.cpp.
void XsDataPacket_setRssi | ( | XsDataPacket * | thisPtr, |
int | r | ||
) |
Sets or updates the rssi value in the datapacket.
\param r : The rssi value that should be added to the packet
Definition at line 2091 of file xsdatapacket.cpp.
void XsDataPacket_setSampleTime64 | ( | XsDataPacket * | thisPtr, |
uint64_t | counter | ||
) |
Add/update sample tine coarse data for the item.
counter | The new data to set |
Definition at line 1978 of file xsdatapacket.cpp.
void XsDataPacket_setSampleTimeCoarse | ( | XsDataPacket * | thisPtr, |
uint32_t | counter | ||
) |
Add/update sample tine coarse data for the item.
counter | The new data to set |
Definition at line 1924 of file xsdatapacket.cpp.
void XsDataPacket_setSampleTimeFine | ( | XsDataPacket * | thisPtr, |
uint32_t | counter | ||
) |
Add/update sample tine fine data for the item.
counter | The new data to set |
Definition at line 1895 of file xsdatapacket.cpp.
void XsDataPacket_setSdiData | ( | XsDataPacket * | thisPtr, |
const XsSdiData * | data | ||
) |
Add/update strapdown integration data for the item.
data | The updated data |
Definition at line 1250 of file xsdatapacket.cpp.
void XsDataPacket_setStatus | ( | XsDataPacket * | thisPtr, |
uint32_t | data | ||
) |
Add/update status data for the item.
data | The new data to set |
Definition at line 1768 of file xsdatapacket.cpp.
void XsDataPacket_setStatusByte | ( | XsDataPacket * | thisPtr, |
uint8_t | data | ||
) |
Add/update status data for the item.
data | The new data to set |
Definition at line 1752 of file xsdatapacket.cpp.
void XsDataPacket_setStoredDeviceId | ( | XsDataPacket * | thisPtr, |
const XsDeviceId * | data | ||
) |
Add or update device id for the item.
data | the device ID to store in the packet |
Definition at line 1337 of file xsdatapacket.cpp.
void XsDataPacket_setStoredLocationId | ( | XsDataPacket * | thisPtr, |
uint16_t | data | ||
) |
Add or update location ID for the item.
data | the location ID to store in the packet |
Definition at line 1362 of file xsdatapacket.cpp.
void XsDataPacket_setTemperature | ( | XsDataPacket * | thisPtr, |
double | temperature | ||
) |
Adds or updates the temperature data in the datapacket.
The temp is added to the datapacket. If the packet already contains temperature it is replaced with the new value.
temperature | : The temperature to set |
Definition at line 1388 of file xsdatapacket.cpp.
void XsDataPacket_setTriggerIndication | ( | XsDataPacket * | thisPtr, |
XsDataIdentifier | triggerId, | ||
const XsTriggerIndicationData * | triggerIndicationData | ||
) |
Add/update trigger indication data for the item.
[in] | triggerId | The trigger data identifier to add data for (e.g. XDI_TriggerIn1 or XDI_TriggerIn2) |
[in] | triggerIndicationData | pointer the a XsTriggerIndicationData buffer containing the data to set |
Definition at line 1803 of file xsdatapacket.cpp.
void XsDataPacket_setUtcTime | ( | XsDataPacket * | thisPtr, |
const XsTimeInfo * | data | ||
) |
Add/update utc time data for the item.
data | The new data to set |
Definition at line 2005 of file xsdatapacket.cpp.
void XsDataPacket_setVelocity | ( | XsDataPacket * | thisPtr, |
const XsVector * | data, | ||
XsDataIdentifier | coordinateSystem | ||
) |
Add/update velocity NED data for the item.
data | The new data to set |
coordinateSystem | The coordinate system of the requested orientation. |
Definition at line 1686 of file xsdatapacket.cpp.
void XsDataPacket_setVelocityIncrement | ( | XsDataPacket * | thisPtr, |
const XsVector * | vec | ||
) |
Add/update delta velocity data for the item.
vec | : The data to update the XsDataPacket with |
Definition at line 781 of file xsdatapacket.cpp.
uint32_t XsDataPacket_status | ( | const XsDataPacket * | thisPtr | ) |
The status component of a data item.
\returns An uint32_t containing the status value
Definition at line 1719 of file xsdatapacket.cpp.
XsDeviceId* XsDataPacket_storedDeviceId | ( | const XsDataPacket * | thisPtr, |
XsDeviceId * | returnVal | ||
) |
The device id of a data item.
\param returnVal an XsDeviceId object to put the requested data in \returns An XsDeviceId object containing the requested device ID
Definition at line 1321 of file xsdatapacket.cpp.
uint16_t XsDataPacket_storedLocationId | ( | const XsDataPacket * | thisPtr | ) |
The location ID of a data item.
Definition at line 1346 of file xsdatapacket.cpp.
void XsDataPacket_swap | ( | XsDataPacket * | thisPtr, |
XsDataPacket * | other | ||
) |
Swaps the XsDataPackets in thisPtr and other.
other | The object to swap with |
Definition at line 493 of file xsdatapacket.cpp.
double XsDataPacket_temperature | ( | const XsDataPacket * | thisPtr | ) |
The temperature component of a data item.
Definition at line 1370 of file xsdatapacket.cpp.
void XsDataPacket_toMessage | ( | const XsDataPacket * | thisPtr, |
XsMessage * | msg | ||
) |
Write the contents of the XsDataPacket to an XsMessage in MtData2 format.
The function will clear the message and add all items in the XsDataPacket as a standard MtData2 message.
msg | The message to write to |
Definition at line 2283 of file xsdatapacket.cpp.
XsTriggerIndicationData* XsDataPacket_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.
[in] | triggerId | The trigger data identifier to add data for (e.g. XDI_TriggerIn1 or XDI_TriggerIn2) |
[out] | returnVal | pointer to the trigger indication data of a packet. |
Definition at line 1785 of file xsdatapacket.cpp.
XsTimeInfo* XsDataPacket_utcTime | ( | const XsDataPacket * | thisPtr, |
XsTimeInfo * | returnVal | ||
) |
The utc time component of a data item.
returnVal | : The XsTimeInfo to return the requested data in |
Definition at line 1989 of file xsdatapacket.cpp.
XsVector* XsDataPacket_velocity | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal, | ||
XsDataIdentifier | coordinateSystem | ||
) |
The velocity NWU component of a data item.
\param returnVal : The XsVector to put the data in \param coordinateSystem The coordinate system of the requested velocity. If this does not match the stored coordinate system, it will be transformed to the requested velocity. \returns A XsVector containing the x, y and z axis values in that order
Definition at line 1593 of file xsdatapacket.cpp.
XsDataIdentifier XsDataPacket_velocityIdentifier | ( | const XsDataPacket * | thisPtr | ) |
Returns the data identifier of the first velocity data of any kind in the packet.
Definition at line 1699 of file xsdatapacket.cpp.
XsVector* XsDataPacket_velocityIncrement | ( | const XsDataPacket * | thisPtr, |
XsVector * | returnVal | ||
) |
The delta velocity (deltaV) component of a data item.
returnVal | : The XsVector that the deltaV will be assigned to |
Definition at line 765 of file xsdatapacket.cpp.
int XsDeviceCapabilities_hasAccelerometer | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has an operational accelerometer.
Definition at line 86 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_hasBarometer | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has an operational barometer.
Definition at line 110 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_hasGnss | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has an operational GNSS receiver.
Definition at line 118 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_hasGyroscope | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has an operational gyroscope.
Definition at line 94 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_hasMagnetometer | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has an operational magnetometer.
Definition at line 102 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_isAhrs | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has an AHRS.
Definition at line 142 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_isGnssIns | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device is a GNSS/INS.
Definition at line 150 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_isImu | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device is an IMU.
Definition at line 126 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_isRtk | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device is an RTK device.
Definition at line 158 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_isValid | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the given XsDeviceCapabilities is valid.
Definition at line 78 of file xsdevicecapabilities.c.
int XsDeviceCapabilities_isVru | ( | const struct XsDeviceCapabilities * | thisPtr | ) |
Test if the device has a VRU.
Definition at line 134 of file xsdevicecapabilities.c.
|
related |
Reinitializes the XsDeviceConfiguration with space for numberOfDevices devices and copies them from src.
This function reinitializes the object reserving space for numberOfDevices devices in the buffer. size may be 0. If src is not null, numberOfDevices bytes from src will be copied. Previous data will be cleared and freed automatically.
numberOfDevices | : The number of devices for which memory should be allocated in the XsDeviceConfiguration |
src | : A source XsDeviceConfiguration object that will be used to initialize the new object. May be null |
Definition at line 96 of file xsdeviceconfiguration.c.
|
related |
Initializes the XsDeviceConfiguration object.
Definition at line 82 of file xsdeviceconfiguration.c.
|
related |
Copy the XsDeviceConfiguration to copy.
Definition at line 137 of file xsdeviceconfiguration.c.
|
related |
Clears and frees data in the XsDeviceConfiguration.
Definition at line 122 of file xsdeviceconfiguration.c.
|
related |
Returns true if the XsDeviceConfiguration is empty.
Definition at line 148 of file xsdeviceconfiguration.c.
|
related |
Returns a (naive) bus ID if deviceId is available in this configuration, 0 otherwise.
deviceId | the device ID to look for |
Definition at line 283 of file xsdeviceconfiguration.c.
|
related |
Sets up a XsDeviceConfiguration based upon msg.
msg | : The XsMessage to use to set up the XsDeviceConfiguration object |
Definition at line 158 of file xsdeviceconfiguration.c.
|
related |
Creates a message msg that represents the XsDeviceConfiguration.
msg | : An XsMessage that will represent the XsDeviceConfiguration |
Definition at line 218 of file xsdeviceconfiguration.c.
int XsDeviceId_contains | ( | XsDeviceId const * | thisPtr, |
XsDeviceId const * | other | ||
) |
Returns true if this is equal to other or this is a type-specifier that matches other.
other | The deviceid to compare this deviceid to |
Definition at line 824 of file xsdeviceid.c.
void XsDeviceId_deviceType | ( | struct XsDeviceId const * | thisPtr, |
int | detailed, | ||
struct XsDeviceId * | type | ||
) |
Returns the device type identified by this id (eg 10, 300 and Awinda2 Master)
detailed | Return detailed type information |
type | Type to write to |
Definition at line 973 of file xsdeviceid.c.
void XsDeviceId_deviceTypeMask | ( | struct XsDeviceId const * | thisPtr, |
int | detailed, | ||
struct XsDeviceId * | type | ||
) |
Returns the mask which can be used to get the detailed device type (eg 10, 300 and Awinda2 Master)
detailed | Return detailed type information |
type | Type to write to |
Definition at line 1024 of file xsdeviceid.c.
void XsDeviceId_fromDeviceTypeString | ( | XsDeviceId * | thisPtr, |
const XsString * | str | ||
) |
Read a device ID from the supplied string.
str | The string to interpret |
Definition at line 780 of file xsdeviceid.c.
void XsDeviceId_fromString | ( | XsDeviceId * | thisPtr, |
const XsString * | str | ||
) |
Read a device ID from the supplied string.
str | The string to interpret |
Definition at line 738 of file xsdeviceid.c.
int XsDeviceId_hasInternalGnss | ( | struct XsDeviceId const * | thisPtr | ) |
Test if this device ID represents a device with internal GNSS receiver.
Definition at line 321 of file xsdeviceid.c.
int XsDeviceId_isAhrs | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an AHRS.
Definition at line 579 of file xsdeviceid.c.
int XsDeviceId_isAwinda2 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda2 device.
Definition at line 455 of file xsdeviceid.c.
int XsDeviceId_isAwinda2Dongle | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda2 Dongle.
Definition at line 477 of file xsdeviceid.c.
int XsDeviceId_isAwinda2Oem | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda2 OEM board.
Definition at line 488 of file xsdeviceid.c.
int XsDeviceId_isAwinda2Station | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda2 Station.
Definition at line 466 of file xsdeviceid.c.
int XsDeviceId_isAwindaX | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda device.
Definition at line 423 of file xsdeviceid.c.
int XsDeviceId_isAwindaXDongle | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda Dongle.
Definition at line 439 of file xsdeviceid.c.
int XsDeviceId_isAwindaXOem | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda OEM board.
Definition at line 447 of file xsdeviceid.c.
int XsDeviceId_isAwindaXStation | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Awinda Station.
Definition at line 431 of file xsdeviceid.c.
int XsDeviceId_isBodyPack | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a bodypack (any version) device.
Definition at line 375 of file xsdeviceid.c.
int XsDeviceId_isBodyPackV1 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a bodypack V1 device.
Definition at line 386 of file xsdeviceid.c.
int XsDeviceId_isBodyPackV2 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a bodypack V2 device.
Definition at line 397 of file xsdeviceid.c.
int XsDeviceId_isContainerDevice | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents any of the container devices such as Bodypack and Awinda Station.
Definition at line 656 of file xsdeviceid.c.
int XsDeviceId_isDot | ( | struct XsDeviceId const * | thisPtr | ) |
Test if the device ID represents a Dot series device.
Definition at line 291 of file xsdeviceid.c.
int XsDeviceId_isGlove | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents a Glove series device.
Definition at line 239 of file xsdeviceid.c.
int XsDeviceId_isGnss | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an GNSS (capable) device.
Definition at line 607 of file xsdeviceid.c.
int XsDeviceId_isHilDevice | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a Hardware In the Loop test device.
Definition at line 512 of file xsdeviceid.c.
int XsDeviceId_isImu | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an IMU.
Definition at line 523 of file xsdeviceid.c.
int XsDeviceId_isLegacyDeviceId | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents a legacy device identification.
Definition at line 90 of file xsdeviceid.c.
int XsDeviceId_isMt | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MT device (any Mti, Mtig, Mtx or Mtw)
Definition at line 664 of file xsdeviceid.c.
int XsDeviceId_isMti | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTi device (1, 10 or 100 series, 1 includes MTi-7)
Definition at line 672 of file xsdeviceid.c.
int XsDeviceId_isMti3X0 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an MTi-3X0 device.
Definition at line 228 of file xsdeviceid.c.
int XsDeviceId_isMti6X0 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an MTi-600 series device.
Definition at line 194 of file xsdeviceid.c.
int XsDeviceId_isMti8X0 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an MTi-800 series device.
Definition at line 211 of file xsdeviceid.c.
int XsDeviceId_isMtig | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTig device (700 or 710 series)
Definition at line 680 of file xsdeviceid.c.
int XsDeviceId_isMtigX00 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an Mtig 700 device.
Definition at line 154 of file xsdeviceid.c.
int XsDeviceId_isMtigX10 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an Mtig 710 device.
Definition at line 174 of file xsdeviceid.c.
int XsDeviceId_isMtiX | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an Mti 1-series device.
Definition at line 98 of file xsdeviceid.c.
int XsDeviceId_isMtiX0 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an Mti 10-series device.
Definition at line 114 of file xsdeviceid.c.
int XsDeviceId_isMtiX00 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID represents an Mti 100-series device.
Definition at line 130 of file xsdeviceid.c.
int XsDeviceId_isMtMark4 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Mk4 generation MT device.
Definition at line 688 of file xsdeviceid.c.
int XsDeviceId_isMtMark5 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an Mk5 generation MT device.
Definition at line 699 of file xsdeviceid.c.
int XsDeviceId_isMtMk4 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4.
Definition at line 1059 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_1 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 1.
Definition at line 1079 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_10 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 10.
Definition at line 1124 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_100 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 100.
Definition at line 1160 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_2 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 2.
Definition at line 1088 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_20 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 20.
Definition at line 1133 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_200 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 200.
Definition at line 1169 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_3 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 3.
Definition at line 1097 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_30 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 30.
Definition at line 1142 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_300 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 300.
Definition at line 1178 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_400 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 400.
Definition at line 1187 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_500 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 500.
Definition at line 1196 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_600 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 600.
Definition at line 1205 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_7 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 7.
Definition at line 1106 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_700 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 700.
Definition at line 1217 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_710 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents either an MTMk4 710 or Mk5 710.
Definition at line 1226 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_800 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 800.
Definition at line 1235 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_900 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 900.
Definition at line 1244 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_X | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 1 series.
Definition at line 1070 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_X0 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 10 series.
Definition at line 1115 of file xsdeviceid.c.
int XsDeviceId_isMtMk4_X00 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk4 100 series (including 700 and 710)
Definition at line 1151 of file xsdeviceid.c.
int XsDeviceId_isMtMk5 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5.
Definition at line 1253 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_10 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 10.
Definition at line 1271 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_100 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 100.
Definition at line 1307 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_20 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 20.
Definition at line 1280 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_200 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 200.
Definition at line 1316 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_30 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 30.
Definition at line 1289 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_300 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 300.
Definition at line 1325 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_710 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 710.
Definition at line 1334 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_X0 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 10 series.
Definition at line 1262 of file xsdeviceid.c.
int XsDeviceId_isMtMk5_X00 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTMk5 100 series.
Definition at line 1298 of file xsdeviceid.c.
int XsDeviceId_isMtw | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTw.
Definition at line 337 of file xsdeviceid.c.
int XsDeviceId_isMtw2 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTw2.
Definition at line 345 of file xsdeviceid.c.
int XsDeviceId_isMtx | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTx.
Definition at line 356 of file xsdeviceid.c.
int XsDeviceId_isMtx2 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an MTx2.
Definition at line 364 of file xsdeviceid.c.
int XsDeviceId_isRtk | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents an RTK (capable) device.
Definition at line 639 of file xsdeviceid.c.
int XsDeviceId_isRugged | ( | struct XsDeviceId const * | thisPtr | ) |
Test if this device ID represents an Rugged Version.
Definition at line 307 of file xsdeviceid.c.
int XsDeviceId_isSyncStation2 | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a SyncStation v2.
Definition at line 504 of file xsdeviceid.c.
int XsDeviceId_isSyncStationX | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a SyncStation.
Definition at line 496 of file xsdeviceid.c.
int XsDeviceId_isType | ( | XsDeviceId const * | thisPtr | ) |
Returns true if the ID is just a device type, not an actual device ID.
Definition at line 849 of file xsdeviceid.c.
int XsDeviceId_isValid | ( | const struct XsDeviceId * | thisPtr | ) |
Test if the device ID is a valid id (not 0).
Definition at line 801 of file xsdeviceid.c.
int XsDeviceId_isVru | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a VRU.
Definition at line 551 of file xsdeviceid.c.
int XsDeviceId_isWirelessMaster | ( | const struct XsDeviceId * | thisPtr | ) |
Test if this device ID represents a Wireless Master device (Awinda Station, Awinda Dongle, Awinda OEM)
Definition at line 408 of file xsdeviceid.c.
uint64_t XsDeviceId_legacyBit | ( | const struct XsDeviceId * | thisPtr | ) |
Definition at line 81 of file xsdeviceid.c.
XsHandId XsDeviceId_side | ( | struct XsDeviceId const * | thisPtr | ) |
Return the side the device should be worn on.
Currently this only applies to the Xsens Glove product line. For other devices XHI_Unknown will be returned.
Definition at line 261 of file xsdeviceid.c.
void XsDeviceId_swap | ( | XsDeviceId * | a, |
XsDeviceId * | b | ||
) |
Swap the contents of a with those of b.
a | Pointer to first deviceId |
b | Pointer to second deviceId |
Definition at line 813 of file xsdeviceid.c.
void XsDeviceId_toDeviceTypeString | ( | const XsDeviceId * | thisPtr, |
XsString * | str, | ||
int | makeType | ||
) |
Get a string with a readable representation of this device ID. Either full or as a type.
makeType | Boolean whether the deviceid is changed to a type instead of the full deviceid |
str | The string to write to |
Definition at line 761 of file xsdeviceid.c.
void XsDeviceId_toString | ( | const XsDeviceId * | thisPtr, |
XsString * | str | ||
) |
Get a string with a readable representation of this device ID.
str | The string to write to |
Definition at line 715 of file xsdeviceid.c.
void XsDeviceId_type | ( | struct XsDeviceId const * | thisPtr, |
struct XsDeviceId * | type | ||
) |
Returns the type of device identified by this id.
type | Type to write to |
Definition at line 954 of file xsdeviceid.c.
void XsDeviceId_typeName | ( | XsDeviceId const * | thisPtr, |
XsString * | str | ||
) |
Returns the name of the type of device identified by this id.
str | String to write to |
Definition at line 861 of file xsdeviceid.c.
const char* XsDeviceState_toString | ( | XsDeviceState | s | ) |
Convert the device state to a human readable string.
Definition at line 74 of file xsdevicestate.c.
|
related |
|
related |
|
related |
|
related |
|
related |
Creates a new binary file with name filename, contents of existing files will be discarded.
filename | name of the file to create |
writeOnly | passing 0 will create the file using "w+b", any other value will create it using "wb" |
|
related |
Creates a new text file with name filename, contents of existing files will be discarded.
filename | name of the file to create |
writeOnly | passing 0 will create the file using "w+t", any other value will create it using "wt" |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Retrieves the full path for a filename.
[in] | filename | The filename to expand |
[out] | fullPath | The filename with a fully expanded path is returned in this parameter. This parameter must be allocated by the caller. |
|
related |
|
related |
|
related |
Reads characters from this file and stores them into str until (num-1) characters have been read or either a newline or the end-of-file is reached, whichever happens first.
str | The destination for the read string |
num | The size of the destination buffer |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
int XsFilterProfile_empty | ( | XsFilterProfile const * | thisPtr | ) |
Checks if the filter profile is empty.
Definition at line 89 of file xsfilterprofile.c.
void XsFilterProfile_swap | ( | XsFilterProfile * | a, |
XsFilterProfile * | b | ||
) |
Swap the contents of a with b.
a | Pointer to the first XsFilterProfile |
b | Pointer to the second XsFilterProfile |
Definition at line 98 of file xsfilterprofile.c.
void XsFilterProfile_toString | ( | XsFilterProfile const * | thisPtr, |
XsString * | out | ||
) |
Converts filter profile version and type information to string.
out | The string to write to |
Definition at line 79 of file xsfilterprofile.c.
|
related |
Initialize an XsFingerData object.
Definition at line 133 of file xsglovedata.c.
|
related |
Copy the contents of an XsFingerData object.
copy | The destination of the copy operation |
src | The object to copy from |
Definition at line 155 of file xsglovedata.c.
|
related |
Destruct an XsFingerData object.
Definition at line 144 of file xsglovedata.c.
|
related |
Swap the contents of two XsGloveData objects.
lhs | The left hand side object of the swap |
rhs | The right hand side object of the swap |
Definition at line 170 of file xsglovedata.c.
|
related |
Initialize an XsGloveData object.
Definition at line 81 of file xsglovedata.c.
|
related |
Copy the contents of an XsGloveData object.
copy | The destination of the copy operation |
src | The object to copy from |
Definition at line 103 of file xsglovedata.c.
|
related |
Destruct an XsGloveData object.
Definition at line 92 of file xsglovedata.c.
|
related |
Swap the contents of two XsGloveData objects.
lhs | The left hand side object of the swap |
rhs | The right hand side object of the swap |
Definition at line 119 of file xsglovedata.c.
XsSyncLine xsl4ToXsl | ( | SyncLineMk4 | mk4Line | ) |
Translate an SyncLineMk4 into a generic XsSyncLine.
Definition at line 72 of file synclinemk4.c.
XsSyncLine xslgmtToXsl | ( | SyncLineGmt | mk4Line | ) |
Translate an SyncLineGmt into a generic XsSyncLine.
Definition at line 72 of file synclinegmt.c.
SyncLineMk4 xslToXsl4 | ( | XsSyncLine | line | ) |
Translate an XsSyncLine into a Mk4-specififc SyncLineMk4.
Definition at line 100 of file synclinemk4.c.
SyncLineGmt xslToXslgmt | ( | XsSyncLine | line | ) |
Translate an XsSyncLine into a SyncLineGmt.
Definition at line 104 of file synclinegmt.c.
XSMATHINLINE XsReal XsMath_asinClamped | ( | const XsReal | x | ) |
XSMATHINLINE XsReal XsMath_deg2rad | ( | XsReal | degrees | ) |
XSMATHINLINE2 int64_t XsMath_doubleToInt64 | ( | double | d | ) |
XSMATHINLINE2 int32_t XsMath_doubleToLong | ( | double | d | ) |
XSMATHINLINE2 int64_t XsMath_floatToInt64 | ( | float | d | ) |
XSMATHINLINE2 int32_t XsMath_floatToLong | ( | float | d | ) |
XSMATHINLINE2 int XsMath_isFinite | ( | XsReal | x | ) |
XSMATHINLINE XsReal XsMath_pow2 | ( | XsReal | a | ) |
XSMATHINLINE XsReal XsMath_pow3 | ( | XsReal | a | ) |
XSMATHINLINE XsReal XsMath_pow5 | ( | XsReal | a | ) |
XSMATHINLINE XsReal XsMath_rad2deg | ( | XsReal | radians | ) |
|
related |
Init the XsMatrix3x3 and copy the data from src into the matrix if src is not null.
Definition at line 83 of file xsmatrix3x3.c.
|
related |
Init the XsMatrix3x3.
Definition at line 77 of file xsmatrix3x3.c.
|
related |
Copy the contents of the XsMatrix3x3 to copy.
Definition at line 110 of file xsmatrix3x3.c.
|
related |
Frees the Matrix3x3.
Definition at line 101 of file xsmatrix3x3.c.
|
related |
Init the XsMatrix and copy the data from src into the matrix if src is not null.
Definition at line 146 of file xsmatrix.c.
|
related |
Init the XsMatrix and copy the data from src into the matrix if src is not null.
Definition at line 100 of file xsmatrix.c.
Copy the contents of copy to the XsMatrix.
Definition at line 240 of file xsmatrix.c.
|
related |
Clear the XsMatrix and release allocated resources.
Definition at line 218 of file xsmatrix.c.
Returns not zero if the dimensions of the XsMatrix are equal to rows and columns.
Definition at line 312 of file xsmatrix.c.
|
related |
Returns not zero if the matrix contains no values.
Definition at line 268 of file xsmatrix.c.
|
related |
Get an orientation matrix representation of the quaternion.
Definition at line 318 of file xsmatrix.c.
Multiplies all values in this XsMatrix by scalar.
scalar | : Value to multiply by |
dest | : The XsMatrix to store the result in |
Definition at line 277 of file xsmatrix.c.
Returns the offset in the data for accessing the value at row and column.
row | The row of the value |
column | The column of the value |
Definition at line 293 of file xsmatrix.c.
|
related |
Construct the XsMatrix as a reference to data in buffer.
Definition at line 87 of file xsmatrix.c.
Sets the data value at row and column.
Definition at line 306 of file xsmatrix.c.
|
related |
Set all the values in the matrix to zero.
Definition at line 248 of file xsmatrix.c.
Swap the contents of a and b.
This function swaps the internal buffers so no actual data is moved around. This won't work for unmanaged data such as fixed size matrices (XsMatrix3x3)
a | Object whose contents will be placed in b |
b | Object whose contents will be placed in a |
Definition at line 362 of file xsmatrix.c.
Returns the data value at row and column.
Definition at line 299 of file xsmatrix.c.
This function reinitializes the XsMessage object and reserves dataSize bytes for data.
[in] | dataSize | the expected size of the message payload |
Definition at line 377 of file xsmessage.c.
|
inlinestatic |
return the const data at offset offset
Definition at line 223 of file xsmessage.c.
Compare the contents of the messages a and b, returning non-0 if they are different.
Definition at line 1269 of file xsmessage.c.
uint8_t XsMessage_computeChecksum | ( | XsMessage const * | thisPtr | ) |
Computes the checksum for the message.
Definition at line 974 of file xsmessage.c.
This function returns a const pointer to the offset in the data of the message in thisptr.
\param offset the offset of the data to be returned \returns a pointer to the data at offset \a offset
Definition at line 436 of file xsmessage.c.
void XsMessage_construct | ( | XsMessage * | thisPtr | ) |
This function initializes the XsMessage object.
Definition at line 347 of file xsmessage.c.
This function initializes the XsMessage object and reserves dataSize bytes for data.
\param[in] dataSize the expected size of the message payload
Definition at line 311 of file xsmessage.c.
This function copies from thisPtr to copy.
copy | the object to copy to |
Definition at line 406 of file xsmessage.c.
Construct an XsMessage as a copy of XsMessage src.
src | The source message to be copied |
Definition at line 355 of file xsmessage.c.
Get the buffer at offset offset.
Definition at line 209 of file xsmessage.c.
This function returns the datasize of the message in thisptr.
Definition at line 416 of file xsmessage.c.
Remove count bytes of data from the message at offset.
\param count the number of bytes to remove \param offset the offset at which to remove the bytes
Definition at line 1189 of file xsmessage.c.
void XsMessage_destruct | ( | XsMessage * | thisPtr | ) |
This function clears the data in the message.
Definition at line 397 of file xsmessage.c.
int XsMessage_empty | ( | XsMessage const * | thisPtr | ) |
Test if this message is empty.
Definition at line 1020 of file xsmessage.c.
|
inlinestatic |
Make sure the data buffer is large enough to hold a new data item of sizeofValue.
Definition at line 229 of file xsmessage.c.
const XsMessageHeader* XsMessage_getConstHeader | ( | XsMessage const * | thisPtr | ) |
Definition at line 1012 of file xsmessage.c.
Returns a const pointer to the data buffer of the message.
\param offset the offset in the payload at which to read data \returns a const pointer to the data buffer of the message
Definition at line 595 of file xsmessage.c.
Returns the byte value at offset in the data of the message.
\param offset the offset in the payload at which to read data \returns the byte at offset \a offset in the message payload
Definition at line 481 of file xsmessage.c.
Returns the double at offset in the data of the message.
offset | the offset in the payload at which to read data |
Definition at line 543 of file xsmessage.c.
Returns the F12.20 value at offset in the data of the message.
offset | the offset in the payload at which to read data |
Definition at line 555 of file xsmessage.c.
Returns the float value at offset in the data of the message.
\param offset the offset in the payload at which to read data \returns the single precision float value at offset \a offset in the message payload
Definition at line 531 of file xsmessage.c.
Returns the F16.32 value at offset in the data of the message.
offset | the offset in the payload at which to read data |
Definition at line 571 of file xsmessage.c.
void XsMessage_getDataFPValuesById | ( | XsMessage const * | thisPtr, |
XsDataIdentifier | dataIdentifier, | ||
double * | dest, | ||
XsSize | offset, | ||
XsSize | numValues | ||
) |
Return current data values as double, conversion depends on outputSetting.
\param dest destination array \param dataIdentifier Data identifier containing data precision \param offset offset in the data buffer from where to start reading. \param numValues number of values to be read
Definition at line 798 of file xsmessage.c.
Returns the long value at offset in the data of the message.
\param offset the offset in the payload at which to read data \returns the 32-bit integer value at offset \a offset in the message payload
Definition at line 505 of file xsmessage.c.
Returns the long value at offset in the data of the message.
\param offset the offset in the payload at which to read data \returns the 64-bit integer value at offset \a offset in the message payload
Definition at line 518 of file xsmessage.c.
void XsMessage_getDataRealValuesById | ( | XsMessage const * | thisPtr, |
XsDataIdentifier | dataIdentifier, | ||
XsReal * | dest, | ||
XsSize | offset, | ||
XsSize | numValues | ||
) |
Return current data values as XsReal, conversion is done automatically based on data identifier.
This function behaves exactly like XsMessage_getDataFPValuesById, with the exception that it expects an XsReal array. \param dest destination array \param dataIdentifier Data identifier containing data precision \param offset offset in the data buffer from where to start reading. \param numValues number of values to be read
Definition at line 881 of file xsmessage.c.
Returns the short value at offset in the data of the message.
\param offset the offset in the payload at which to read data \returns the 16-bit integer value at offset \a offset in the message payload
Definition at line 492 of file xsmessage.c.
void XsMessage_getEndianCorrectData | ( | XsMessage const * | thisPtr, |
void * | value, | ||
XsSize | size, | ||
XsSize | offset | ||
) |
Get data of size size at offset, and put it byteswapped into value.
value | The value to write to |
size | The size of the message |
offset | The offset of the message |
Definition at line 286 of file xsmessage.c.
|
related |
Returns the byte size of id if the format is a floating point format.
id | : The XsDataIdentifier to query |
Definition at line 744 of file xsmessage.c.
XsMessageHeader* XsMessage_getHeader | ( | XsMessage * | thisPtr | ) |
Returns a pointer to the message header for this message.
Definition at line 1006 of file xsmessage.c.
const uint8_t* XsMessage_getMessageStart | ( | XsMessage const * | thisPtr | ) |
This function returns a const pointer to the header of the message in thisptr.
\returns a pointer to the start of the message
Definition at line 448 of file xsmessage.c.
Return the length of the message buffer.
The function returns the total size of the message, including the checksum. This is in effect the number of bytes that would be transferred if the message were to be sent over a communications channel. \returns the total message size
Definition at line 461 of file xsmessage.c.
Create count bytes of empty space at offset in this message.
\param count the number of bytes to reserve \param offset the offset at which to allocate the space
Definition at line 1125 of file xsmessage.c.
int XsMessage_isChecksumOk | ( | XsMessage const * | thisPtr | ) |
Returns non-zero if the checksum inside the message is correct for the message, zero otherwise.
Definition at line 997 of file xsmessage.c.
This function initializes the XsMessage object and reserves msgSize bytes for data, it then copies in the data from src.
msgSize | the size of the data pointed to by src |
src | the data to load the message from |
Definition at line 388 of file xsmessage.c.
void XsMessage_recomputeChecksum | ( | XsMessage * | thisPtr | ) |
Update the checksum for the message.
Definition at line 988 of file xsmessage.c.
Resize the buffer of message to newSize bytes.
\param newSize the new size of the message payload buffer
Definition at line 1032 of file xsmessage.c.
void XsMessage_setBusId | ( | XsMessage * | thisPtr, |
uint8_t | busId | ||
) |
Set the bus id for this message to busId.
\param busId the bus identifier \sa XS_BID_BROADCAST XS_BID_MASTER XS_BID_MT
Definition at line 1088 of file xsmessage.c.
void XsMessage_setDataBuffer | ( | XsMessage * | thisPtr, |
const uint8_t * | buffer, | ||
XsSize | size, | ||
XsSize | offset | ||
) |
Puts size number of bytes from buffer into the message at offset.
buffer | the buffer to copy |
size | the size of the buffer |
offset | the offset at which to copy the data |
Definition at line 731 of file xsmessage.c.
Set the byte at offset in the message to value.
\param value the 8-bit value to set \param offset the offset in the message payload at which to write the data
Definition at line 605 of file xsmessage.c.
Sets the double at offset in the message to value.
\param value the double precision floating point value to set \param offset the offset in the message payload at which to write the data
Definition at line 656 of file xsmessage.c.
Sets the F12.20 at offset in the message to value.
\param value the 12.20 fixed point value to set \param offset the offset in the message payload at which to write the data
Definition at line 666 of file xsmessage.c.
Sets the float at offset in the message to value.
\param value the single precision floating point value to set \param offset the offset in the message payload at which to write the data
Definition at line 646 of file xsmessage.c.
Sets the F16.32 at offset in the message to value.
\param value the 16.32 fixed point value to set \param offset the offset in the message payload at which to write the data
Definition at line 682 of file xsmessage.c.
void XsMessage_setDataFPValuesById | ( | XsMessage * | thisPtr, |
XsDataIdentifier | dataIdentifier, | ||
double const * | data, | ||
XsSize | offset, | ||
XsSize | numValues | ||
) |
Write a number of floating/fixed point values into to the data buffer, conversion depends on outputSettings.
\param dataIdentifier Data Identifier \param data The data array to be written to the buffer. \param offset Offset in the data buffer from where to start writing. \param numValues number of values to be written
Definition at line 839 of file xsmessage.c.
Sets the long at offset in the message to value.
\param value the 32-bit value to set \param offset the offset in the message payload at which to write the data
Definition at line 625 of file xsmessage.c.
Sets the long at offset in the message to value.
\param value the 64-bit value to set \param offset the offset in the message payload at which to write the data
Definition at line 635 of file xsmessage.c.
void XsMessage_setDataRealValuesById | ( | XsMessage * | thisPtr, |
XsDataIdentifier | dataIdentifier, | ||
XsReal const * | data, | ||
XsSize | offset, | ||
XsSize | numValues | ||
) |
Write a number of floating/fixed point values into to the data buffer, conversion depends on data identifier.
\param dataIdentifier Data Identifier \param data The data array to be written to the buffer. \param offset Offset in the data buffer from where to start writing. \param numValues number of values to be written
Definition at line 938 of file xsmessage.c.
Sets the short at offset in the message to value.
\param value the 16-bit value to set \param offset the offset in the message payload at which to write the data
Definition at line 615 of file xsmessage.c.
void XsMessage_setEndianCorrectData | ( | XsMessage * | thisPtr, |
void const * | value, | ||
XsSize | size, | ||
XsSize | offset | ||
) |
Set value value of size size byteswapped at offset.
value | The value to write to |
size | The size of the message |
offset | The offset of the message |
Definition at line 297 of file xsmessage.c.
void XsMessage_setMessageId | ( | XsMessage * | thisPtr, |
enum XsXbusMessageId | msgId | ||
) |
Set the message id for this message to msgId.
\param msgId the message identifier
Definition at line 1106 of file xsmessage.c.
Swap the contents of a and b.
\details This function swaps the internal buffers so no actual data is moved around. A result is that it won't work for unmanaged data such as fixed size vectors \param a the object to receive \a b's contents \param b the object to receive \a a's contents
Definition at line 1248 of file xsmessage.c.
Return a string containing the first maxBytes bytes of the message in hex format.
maxBytes | the maximum number of bytes to include in the string, when set to 0, the full message will be used |
resultValue | the resulting string |
Definition at line 1278 of file xsmessage.c.
|
inlinestatic |
Update the message checksum with the passed value.
Definition at line 236 of file xsmessage.c.
void XSTYPES_DLL_API xsNameThisThread | ( | const char * | threadName | ) |
Set the name of the current thread to threadName.
Set the name of the current thread
threadName | The new name of the thread, ignored if empty or null |
Definition at line 140 of file xsthread.c.
|
related |
Returns the bluetooth address.
Definition at line 160 of file xsportinfo.c.
|
related |
Initializes the object to the empty state.
Definition at line 80 of file xsportinfo.c.
|
related |
Returns true if the XsPortInfo object is empty.
Definition at line 92 of file xsportinfo.c.
|
related |
Returns true if this port info object contains a bluetooth device.
Definition at line 133 of file xsportinfo.c.
|
related |
Returns true if this port info object contains a network device.
Definition at line 142 of file xsportinfo.c.
|
related |
Returns true if this port info object contains a USB device.
Definition at line 120 of file xsportinfo.c.
|
related |
Returns the network service name of this port.
Definition at line 151 of file xsportinfo.c.
|
related |
The port number.
Definition at line 102 of file xsportinfo.c.
void XsPortInfo_swap | ( | struct XsPortInfo * | a, |
struct XsPortInfo * | b | ||
) |
Swap the contents of a with those of b.
a | swap this with b |
b | swap this with a |
Definition at line 201 of file xsportinfo.c.
|
related |
The usb address.
Definition at line 186 of file xsportinfo.c.
|
related |
The usb bus.
Definition at line 170 of file xsportinfo.c.
|
related |
Returns non-zero if the values at thisPtr and other are within tolerance of each other.
Definition at line 323 of file xsquaternion.c.
|
related |
Copies the contents of thisPtr into copy.
Definition at line 291 of file xsquaternion.c.
|
related |
Sets the contents to 0, which is an invalid XsQuaternion.
The normal destructor does not call this function, it is intended for explicit signalling of errors
Definition at line 85 of file xsquaternion.c.
|
related |
Returns the dot product of the thisPtr with other.
Definition at line 343 of file xsquaternion.c.
|
related |
Test if this is a null object.
Definition at line 94 of file xsquaternion.c.
|
related |
returns non-zero if a and b are numerically equal
Definition at line 301 of file xsquaternion.c.
|
related |
Create a quaternion representation from euler angles.
Definition at line 146 of file xsquaternion.c.
|
related |
Create a quaternion representation of orientation matrix ori.
The matrix ori is interpreted as an orthonormal orientation matrix, which is translated into a quaternion representation. If ori is not a 3x3 matrix, a null-quaternion is returned.
ori | The source orientation matrix |
Definition at line 176 of file xsquaternion.c.
|
related |
Returns an XsQuaternion that represents the identity quaternion.
Definition at line 250 of file xsquaternion.c.
|
related |
Compute the inverse/conjugate of this quaternion.
Where q = a + bi + cj + dk, this function will return a - bi - cj - dk in dest.
dest | The object to write to |
Definition at line 113 of file xsquaternion.c.
|
related |
Invert this quaternion.
Where q = a + bi + cj + dk, this function will replace it with a - bi - cj - dk.
Definition at line 103 of file xsquaternion.c.
|
related |
Multiply left quaternion with right quaternion and put the result in dest. The parameters may point to the same XsQuaternion(s).
Definition at line 257 of file xsquaternion.c.
|
related |
Normalize this quaternion.
Definition at line 140 of file xsquaternion.c.
|
related |
Create a normalized version of this quaternion.
Definition at line 123 of file xsquaternion.c.
|
related |
Swap the contents of a and b.
Definition at line 277 of file xsquaternion.c.
|
related |
|
related |
|
related |
|
related |
|
related |
const char* XsRejectReason_toString | ( | XsRejectReason | r | ) |
Convert the XsRejectReason to a human readable string.
Definition at line 73 of file xsrejectreason.c.
const char* XsResultValue_toString | ( | XsResultValue | result | ) |
Retrieve a character string corresponding to the given result code.
Retrieve a string corresponding to the given result code.
result | The result code to convert |
Definition at line 78 of file xsresultvalue.c.
XSTYPES_DLL_API int XsRssi_max | ( | void | ) |
XSTYPES_DLL_API int XsRssi_unbiased | ( | int | raw | ) |
XSTYPES_DLL_API int XsRssi_unknown | ( | void | ) |
|
related |
Initialize an XsSdiData object with the optional arguments.
orientationIncrement | The orientation increment to initialize the object with, may be 0 |
velocityIncrement | The velocity increment to initialize the object with, may be 0 |
Definition at line 82 of file xssdidata.c.
|
related |
Destruct the object, makes the fields invalid.
Definition at line 103 of file xssdidata.c.
int XsSimpleVersion_compare | ( | XsSimpleVersion const * | a, |
XsSimpleVersion const * | b | ||
) |
Compare two XsSimpleVersion objects.
a | The left hand side of the comparison |
b | The right hand side of the comparison |
Definition at line 110 of file xssimpleversion.c.
|
related |
Test if this is a null-version.
Definition at line 87 of file xssimpleversion.c.
void XsSimpleVersion_osVersion | ( | XsSimpleVersion * | thisPtr | ) |
Platdorm independent request of the OS version. Results are cached and of course platform dependent.
Definition at line 120 of file xssimpleversion.c.
void XsSimpleVersion_swap | ( | struct XsSimpleVersion * | a, |
struct XsSimpleVersion * | b | ||
) |
Swap the contents of a with those of b.
Definition at line 98 of file xssimpleversion.c.
|
related |
Construct an XsSnapshot object.
Definition at line 78 of file xssnapshot.c.
|
related |
Destruct an XsSnapshot object.
Definition at line 86 of file xssnapshot.c.
int XsSyncSetting_compare | ( | const struct XsSyncSetting * | a, |
const struct XsSyncSetting * | b | ||
) |
Compares a with b.
[in] | a | Sync setting a |
[in] | b | Sync setting b |
Definition at line 122 of file xssyncsetting.c.
int XsSyncSetting_isInput | ( | const XsSyncSetting * | thisPtr | ) |
Returns whether the selected line is configured as an input line.
Definition at line 74 of file xssyncsetting.c.
int XsSyncSetting_isOutput | ( | const XsSyncSetting * | thisPtr | ) |
Returns whether the selected line is configured as an output line.
Definition at line 92 of file xssyncsetting.c.
void XsSyncSetting_swap | ( | XsSyncSetting * | a, |
XsSyncSetting * | b | ||
) |
Swap the contents of a with b.
Definition at line 109 of file xssyncsetting.c.
void XsTime_getDateAsString | ( | char * | dest, |
const struct tm * | date | ||
) |
Retrieves the date as string representation The format is YYYYMMDD so 25 dec 2010 is stored as an array dest[9] = { '2', '0', '1', '0', '1', '2', '2', '5' }.
dest | : A pointer to an array of at least (!) 8 bytes |
date | : If date is non-zero this date is converted, otherwise the current date is retrieved and used) |
void XsTime_getDateAsWString | ( | wchar_t * | dest, |
const struct tm * | date | ||
) |
Retrieves the date as wstring representation The format is YYYYMMDD so 25 dec 2010 is stored as an array dest[8] = {'2', '0', '1', '0', '1', '2', '2', '5' }.
dest | : A pointer to an array of at least (!) 8 wchars |
date | : If date is non-zero this date is converted, otherwise the current date is retrieved and used) |
int64_t XsTime_getDateTime | ( | struct tm * | date | ) |
void XsTime_getTimeAsString | ( | char * | dest, |
const struct tm * | date | ||
) |
Retrieves the time as binary The format is HHMMSShh (where H is hour and 'h' is hundredths) so 14:25:01.23 is stored as an array dest[8] = { '1', '4', '2', '5', '0', '1', '2', '3'}.
dest | : A pointer to an array of at least (!) 8 bytes |
date | : If date is non-zero this date is converted, otherwise the current date is retrieved and used) |
void XsTime_getTimeAsWString | ( | wchar_t * | dest, |
const struct tm * | date | ||
) |
Retrieves the time as binary The format is HHMMSShh (where H is hour and 'h' is hundredths) so 14:25:01.23 is stored as an array dest[8] = { '1', '4', '2', '5', '0', '1', '2', '3'}.
dest | : A pointer to an array of at least (!) 8 wchars |
date | : If date is non-zero this date is converted, otherwise the current date is retrieved and used) |
uint32_t XsTime_getTimeOfDay | ( | struct tm * | date_, |
time_t * | secs_ | ||
) |
The function returns the current time of day in ms since midnight.
date_ | When not 0, the corresponding current date is put in here. |
secs_ | When not 0, the full timestamp in seconds since the epoch is put in here. |
void XsTime_initializeTime | ( | ) |
int64_t XsTime_localToUtc | ( | ) |
Returns the conversion value from local time to UTC time in ms.
void XsTime_msleep | ( | uint32_t | ms | ) |
Make the current thread sleep for at least ms milliseconds.
A platform independent sleep routine to sleep for at least ms milliseconds.
ms | The number of milliseconds to sleep |
int64_t XsTime_timeStampNow | ( | XsTimeStamp * | now | ) |
void XsTime_udelay | ( | uint64_t | us | ) |
Delays the current thread for at least us microseconds.
A platform independent delay routine to sleep for at least us microseconds.
us | The number of microseconds to delay |
int64_t XsTime_utcToLocal | ( | ) |
Returns the conversion value from UTC time to local time in ms.
|
related |
Returns the current local time.
Definition at line 93 of file xstimeinfo.c.
|
related |
Returns the current UTC time.
Definition at line 79 of file xstimeinfo.c.
|
related |
Removes the local time information, making the object pure UTC.
Definition at line 108 of file xstimeinfo.c.
|
related |
Creates a (UTC) XsTimeStamp from an XsTimeInfo object.
info | The time info object to convert |
Definition at line 154 of file xstimestamp.c.
|
related |
Returns the hours part of the time (in the range 0-23)
Definition at line 125 of file xstimestamp.c.
void XsTimeStamp_localToUtcTime | ( | struct XsTimeStamp const * | thisPtr, |
struct XsTimeStamp * | utc | ||
) |
Convert the supplied time from (assumed) local time to UTC, using the system's local time zone knowledge.
utc | The returned, converted time |
Definition at line 282 of file xstimestamp.c.
void XsTimeStamp_localToUtcTime2 | ( | struct XsTimeStamp const * | thisPtr, |
struct XsTimeStamp * | utc, | ||
const struct XsTimeInfo * | info | ||
) |
Convert the supplied time from (assumed) local time to UTC, using the offset in info.
utc | The returned, converted time |
info | The XsTimeInfo object containing the time offset to apply |
Definition at line 300 of file xstimestamp.c.
void XsTimeStamp_localToUtcTime_ms | ( | struct XsTimeStamp const * | thisPtr, |
struct XsTimeStamp * | utc, | ||
int64_t | utcOffset | ||
) |
Convert the supplied time from (assumed) local time to UTC, using the offset in utcOffset.
utc | The returned, converted time |
utcOffset | The time offset to apply as defined in XsTimeInfo::m_utcOffset but in ms instead of minutes |
Definition at line 318 of file xstimestamp.c.
|
related |
Returns the maximum value of an XsTimeStamp.
Definition at line 144 of file xstimestamp.c.
|
related |
Returns the millisecond part of the time (in the range 0-999)
Definition at line 104 of file xstimestamp.c.
|
related |
Returns the minutes part of the time (in the range 0-59)
Definition at line 118 of file xstimestamp.c.
|
related |
Returns the current time in ms since the epoch (Jan 1st 1970)
dest | The object to write the time to, may be 0 in which case only the return value is generated. |
Definition at line 136 of file xstimestamp.c.
|
related |
Returns the seconds part of the time (in the range 0-59)
Definition at line 111 of file xstimestamp.c.
|
related |
Returns the number of seconds elapsed since the epoch as stored in the XsTimeStamp.
Definition at line 97 of file xstimestamp.c.
|
related |
Set the stored time to miliseconds.
Definition at line 84 of file xstimestamp.c.
|
related |
Get the time of day component of the stored timestamp in seconds as a double precision value.
Definition at line 90 of file xstimestamp.c.
|
related |
Converts the timestamp into an XsString object in format YYYY/MM/DD hh:mm:ss.nnn.
result | The XsString object to write the conversion result to |
Definition at line 241 of file xstimestamp.c.
|
related |
Converts the timestamp into an XsTimeInfo object.
info | The XsTimeInfo time object to write the conversion result to |
Definition at line 191 of file xstimestamp.c.
void XsTimeStamp_utcToLocalTime | ( | struct XsTimeStamp const * | thisPtr, |
struct XsTimeStamp * | local | ||
) |
Convert the supplied time from (assumed) UTC to local time, using the system's local time zone knowledge.
local | The returned, converted time |
Definition at line 273 of file xstimestamp.c.
void XsTimeStamp_utcToLocalTime2 | ( | struct XsTimeStamp const * | thisPtr, |
struct XsTimeStamp * | local, | ||
const struct XsTimeInfo * | info | ||
) |
Convert the supplied time from (assumed) UTC to local time, using the offset in info.
local | The returned, converted time |
info | The XsTimeInfo object containing the time offset to apply |
Definition at line 291 of file xstimestamp.c.
void XsTimeStamp_utcToLocalTime_ms | ( | struct XsTimeStamp const * | thisPtr, |
struct XsTimeStamp * | local, | ||
int64_t | utcOffset | ||
) |
Convert the supplied time from (assumed) UTC to local time, using the offset in utcOffset.
local | The returned, converted time |
utcOffset | The time offset to apply as defined in XsTimeInfo::m_utcOffset but in ms instead of minutes |
Definition at line 309 of file xstimestamp.c.
void XsTriggerIndicationData_destruct | ( | XsTriggerIndicationData * | thisPtr | ) |
Destroy the XsTriggerIndicationData object.
Definition at line 73 of file xstriggerindicationdata.c.
int XsTriggerIndicationData_valid | ( | const XsTriggerIndicationData * | thisPtr | ) |
Returns true if the object is valid (line and polarity may not be 0)
Definition at line 79 of file xstriggerindicationdata.c.
void XsUsbHubInfo_assign | ( | XsUsbHubInfo * | thisPtr, |
XsHubIdentifier | hub | ||
) |
Assign a new hub identifier to the XsUsbHubInfo.
[in] | hub | the hub identifier |
Definition at line 114 of file xsusbhubinfo.c.
void XsUsbHubInfo_construct | ( | XsUsbHubInfo * | thisPtr, |
XsHubIdentifier | hub | ||
) |
Initialize the XsUsbHubInfo with hub.
\param[in] hub the hub identifier to initialize with
Definition at line 88 of file xsusbhubinfo.c.
void XsUsbHubInfo_copy | ( | XsUsbHubInfo * | copy, |
XsUsbHubInfo const * | src | ||
) |
Copy the contents of the XsUsbHubInfo to copy.
Definition at line 122 of file xsusbhubinfo.c.
void XsUsbHubInfo_destruct | ( | XsUsbHubInfo * | thisPtr | ) |
Destroy the XsUsbHubInfo.
Definition at line 102 of file xsusbhubinfo.c.
int XsUsbHubInfo_parentPathMatches | ( | const XsUsbHubInfo * | left, |
const XsUsbHubInfo * | right | ||
) |
Returns true if the two hub info objects share the same device path.
\param[in] left the left hand side to compare \param[in] right the right hand side to compare \returns non-zero if the two hubs share the same parent
Definition at line 148 of file xsusbhubinfo.c.
void XsUsbHubInfo_swap | ( | XsUsbHubInfo * | thisPtr, |
XsUsbHubInfo * | thatPtr | ||
) |
Swap the two XsUsbHubInfo items.
Definition at line 130 of file xsusbhubinfo.c.
|
related |
Returns the current time in UTC date time format.
Definition at line 74 of file xsutctime.c.
Init the XsVector3 and copy the data from src into the vector if src is not null.
Definition at line 85 of file xsvector3.c.
Init the XsVector3 and copy the data from src into the vector if src is not null.
Definition at line 77 of file xsvector3.c.
Copy the contents of the XsVector3 to copy.
Definition at line 99 of file xsvector3.c.
|
related |
Frees the XsVector3.
Definition at line 91 of file xsvector3.c.
|
related |
Get an effective angular velocity from the quaternion, which must represent a delta angle.
deltaT | The length of the time interval over which quat was integrated in seconds |
quat | The orientation increment to convert to an angular velocity |
Definition at line 266 of file xsvector.c.
Initialize the XsVector using sz number of items from src.
sz | The desired size of the vector |
src | 0 or a pointer to a buffer containing sz items to copy into the XsVector |
Definition at line 123 of file xsvector.c.
Compute and return the cartesian length.
Definition at line 204 of file xsvector.c.
|
related |
Returns non-zero if the two vectors are equal within epsilon.
thatPtr | the vector to compare with |
epsilon | the maximum difference between values |
Definition at line 322 of file xsvector.c.
Initialize the XsVector using sz number of items from src.
Definition at line 100 of file xsvector.c.
Copy the contents of the XsVector to copy.
Definition at line 175 of file xsvector.c.
|
related |
Release and clear the contents of the vector.
Definition at line 155 of file xsvector.c.
Compute and return the dot product of XsVectors a and b.
Definition at line 189 of file xsvector.c.
|
related |
Returns a non-zero value if the XsVector does not contain any values.
Definition at line 246 of file xsvector.c.
Returns non-zero when the two vectors are identical.
a | Vector to compare against b |
b | Vector to compare against a |
Definition at line 300 of file xsvector.c.
Sets all elements of the XsVector to value.
Definition at line 238 of file xsvector.c.
Multiplies all values in this XsVector by scalar and puts the result in XsVector dest.
Definition at line 252 of file xsvector.c.
|
related |
Normalize the vector.
Definition at line 212 of file xsvector.c.
|
related |
Initialize the XsVector to refer to the supplied buffer.
Definition at line 91 of file xsvector.c.
|
related |
Sets all elements of the XsVector to 0.
Definition at line 226 of file xsvector.c.
Swap the contents of a and b.
This function swaps the internal buffers so no actual data is moved around. For unmanaged data an elementwise swap is done, but only if the vectors are the same size.
a | Object whose contents will be placed in b |
b | Object whose contents will be placed in a |
Definition at line 286 of file xsvector.c.
|
related |
Test if this is a null-version.
Definition at line 78 of file xsversion.c.
|
related |
Create a XsVersion a XsSimpleVersion, simpleVersion.
Definition at line 160 of file xsversion.c.
Set the version to the values in the string.
Definition at line 118 of file xsversion.c.
Get a string with the version expressed in a readable format.
Definition at line 107 of file xsversion.c.
|
related |
Create a XsSimpleVersion (version) from a XsVersion.
Definition at line 173 of file xsversion.c.
Get a string with the version expressed in a readable format.
Definition at line 84 of file xsversion.c.
XsHubIdentifier |
On Windows:
On non-windows: \code typedef const char* XsHubIdentifier; \endcode
Definition at line 73 of file xsusbhubinfo.h.
XSMATHCONST XsReal XsMath_deg2radValue = 0.017453292519943295769236907684886 |
XSMATHCONST XsReal XsMath_denormalized = 1e-307 |
XSMATHCONST XsReal XsMath_e = 2.7182818284590452353602874713527 |
XSMATHCONST XsReal XsMath_epsilon = 2.2204460492503131e-016 |
XSMATHCONST XsReal XsMath_four = 4.0 |
XSMATHCONST XsReal XsMath_halfPi = 1.5707963267948966192313216916397514420985846996875529104874 |
XSMATHCONST XsReal XsMath_hugeValue = 1.0e+16 |
XSMATHCONST XsReal XsMath_infinity = DBL_MAX |
XSMATHCONST XsReal XsMath_minusHalfPi = -1.5707963267948966192313216916397514420985846996875529104874 |
XSMATHCONST XsReal XsMath_minusOne = -1.0 |
XSMATHCONST XsReal XsMath_minusPt5 = -0.5 |
XSMATHCONST XsReal XsMath_minusTwo = -2.0 |
XSMATHCONST XsReal XsMath_one = 1.0 |
XSMATHCONST XsReal XsMath_pi = 3.1415926535897932384626433832795028841971693993751058209749 |
XSMATHCONST XsReal XsMath_pt25 = 0.25 |
XSMATHCONST XsReal XsMath_pt5 = 0.5 |
XSMATHCONST XsReal XsMath_rad2degValue = 57.295779513082320876798154814105 |
XSMATHCONST XsReal XsMath_sqrt2 = 1.4142135623730950488016887242097 |
XSMATHCONST XsReal XsMath_sqrtDenormalized = 3.1622776601683793319988935444327e-154 |
XSMATHCONST XsReal XsMath_sqrtEpsilon = 1.4901161193847656e-008 |
XSMATHCONST XsReal XsMath_sqrtHalf = 0.5 * 1.4142135623730950488016887242097 |
XSMATHCONST XsReal XsMath_tinyValue = 1.0e-16 |
XSMATHCONST XsReal XsMath_two = 2.0 |
XSMATHCONST XsReal XsMath_twoPi = 6.2831853071795864769252867665590057683943387987502116419498 |
XSMATHCONST XsReal XsMath_zero = 0.0 |