Go to the documentation of this file.
72 #define INC_ALLOC ((void) 0)
73 #define INC_FREE ((void) 0)
108 assert(numberOfDevices != 0 || thisPtr->
m_deviceInfo == 0);
188 for (i = 0; i < nDevs; ++i)
#define XS_BID_MASTER
The bus identifier of the master device.
#define XSDEVICEID_PRODUCT_CODE_INIT
char m_filterType
The filter type.
uint8_t m_fwRevRevision
The revision version of the firmware.
void XsDeviceConfiguration_assign(XsDeviceConfiguration *thisPtr, XsSize numberOfDevices, const XsDeviceConfiguration *src)
Reinitializes the XsDeviceConfiguration with space for numberOfDevices devices and copies them from s...
uint16_t m_filterProfile
The currently chosen filter profile.
int XsDeviceId_isLegacyDeviceId(const struct XsDeviceId *thisPtr)
Test if the device ID represents a legacy device identification.
void XsDeviceConfiguration_destruct(XsDeviceConfiguration *thisPtr)
Clears and frees data in the XsDeviceConfiguration.
void XsMessage_constructSized(XsMessage *thisPtr, XsSize dataSize)
This function initializes the XsMessage object and reserves dataSize bytes for data.
Structure containing a full device configuration as returned by the ReqConfig message.
uint64_t m_deviceId
This device ID.
int XsDeviceConfiguration_empty(const XsDeviceConfiguration *thisPtr)
Returns true if the XsDeviceConfiguration is empty.
void XsDeviceConfiguration_writeToMessage(const XsDeviceConfiguration *thisPtr, XsMessage *msg)
Creates a message msg that represents the XsDeviceConfiguration.
void XsMessage_recomputeChecksum(XsMessage *thisPtr)
Update the checksum for the message.
#define XS_LEN_PRODUCTCODE
uint8_t m_reserved[8]
Reserved space.
uint8_t m_reserved1[8]
Reserved space.
const uint8_t * XsMessage_getDataBuffer(XsMessage const *thisPtr, XsSize offset)
Returns a const pointer to the data buffer of the message.
void XsDeviceConfiguration_copy(XsDeviceConfiguration *copy, XsDeviceConfiguration const *src)
Copy the XsDeviceConfiguration to copy.
uint8_t XsMessage_getDataByte(XsMessage const *thisPtr, XsSize offset)
Returns the byte value at offset in the data of the message.
void XsDeviceConfiguration_construct(XsDeviceConfiguration *thisPtr)
Initializes the XsDeviceConfiguration object.
Device information for the main device in an XsDeviceConfiguration.
void XsMessage_setDataShort(XsMessage *thisPtr, uint16_t value, XsSize offset)
Sets the short at offset in the message to value.
uint8_t m_filterMinor
The filter minor version.
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.
Macros and types for use in the Xsens communication protocol and Xsens Device API classes.
uint8_t m_time[8]
The time.
const XsMessageHeader * XsMessage_getConstHeader(XsMessage const *thisPtr)
uint8_t m_filterMajor
The filter major version.
void XsMessage_setDataLong(XsMessage *thisPtr, uint32_t value, XsSize offset)
Sets the long at offset in the message to value.
uint64_t m_masterDeviceId
The master device ID.
size_t XsSize
XsSize must be unsigned number!
Structure for storing a single message.
uint8_t m_fwRevMajor
The major version of the firmware.
XsMasterDeviceConfiguration m_masterInfo
The master info.
Contains an Xsens device ID and provides operations for determining the type of device.
XsMtDeviceConfiguration *const m_deviceInfo
The list of device infos.
void XsMessage_setDataByte(XsMessage *thisPtr, uint8_t value, XsSize offset)
Set the byte at offset in the message to value.
uint32_t XsMessage_getDataLong(XsMessage const *thisPtr, XsSize offset)
Returns the long value at offset in the data of the message.
Device information for MT devices in an XsDeviceConfiguration.
XsSize XsDeviceConfiguration_findDevice(const XsDeviceConfiguration *thisPtr, const XsDeviceId *deviceId)
Returns a (naive) bus ID if deviceId is available in this configuration, 0 otherwise.
uint8_t m_reserved2[44]
Reserved space.
uint16_t m_outputSkipFactor
The output skip factor.
uint64_t m_deviceId
The serialnumber of a device.
uint8_t m_date[8]
The date.
XsMessageHeader * XsMessage_getHeader(XsMessage *thisPtr)
Returns a pointer to the message header for this message.
const uint16_t m_numberOfDevices
The currently allocated number of devices.
uint8_t m_fwRevMinor
The minor version of the firmware.
void XsDeviceConfiguration_readFromMessage(XsDeviceConfiguration *thisPtr, const XsMessage *msg)
Sets up a XsDeviceConfiguration based upon msg.
uint8_t m_productCode[20]
The master product code.
uint16_t m_samplingPeriod
The sampling period.
uint16_t XsMessage_getDataShort(XsMessage const *thisPtr, XsSize offset)
Returns the short value at offset in the data of the message.