Go to the documentation of this file.
70 using namespace xsens;
122 , m_messageId(messageId)
149 assert(
msg.getDataSize());
163 , m_messageId(messageId)
164 , m_dataOffset(offset)
Abstract reply object. Blocks on a semaphore when requesting the message until the message has been s...
struct XsMessage XsMessage
virtual bool isReplyFor(XsMessage const &message)
XsMessage message(uint32_t timeout)
Blocks until a message has been set by setMessage() then returns that message.
~MidAndDataReplyObject()
MidAndDataReplyObject destructor.
void setData(uint8_t const *data)
Copies data from 'data' into this object. This is the data to wait for.
void freeData()
Frees allocated data (if any)
MidReplyObject(uint8_t messageId)
MidReplyObject constructor.
XsResultValue
Xsens result values.
MidAndDataReplyObject(uint8_t messageId, XsSize offset, XsSize size, uint8_t const *data)
MidAndDataReplyObject constructor.
bool wait()
Wait until we're signalled to continue.
virtual uint8_t msgId() const
void signal()
Unblock a single waiting thread.
ReplyObject()
Default constructor.
size_t XsSize
XsSize must be unsigned number!
Structure for storing a single message.
xsens::WaitCondition * m_waitCondition
@ XRV_DATAOVERFLOW
41: The device generates more data than the bus communication can handle (baud rate may be too low)
virtual bool isReplyFor(XsMessage const &message)
void setMessage(const XsMessage &msg)
Sets a message as reply message and trigger the semaphore which will unblock any waiting message() ca...
virtual uint8_t msgId() const
A platform independent wait condition implementation.
~MidReplyObject(void)
MidReplyObject destructor.