Go to the documentation of this file.
65 #ifndef XSCALLBACKPLAINC_H
66 #define XSCALLBACKPLAINC_H
76 #define XSCALLBACK_INITIALIZER { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
279 friend class XsCallback;
void(* m_onProgressUpdated)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, int current, int total, const struct XsString *identifier)
Called when a long-duration operation has made some progress or has completed. Examples include loadL...
A list of XsDataPacketPtr values.
void(* m_onError)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, XsResultValue error)
Called when an error has occurred while handling incoming data.
A list of uint8_t values.
Structure that contains callback functions for the Xsens Device API.
void(* m_onDataUnavailable)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, int64_t packetId)
Called when XDA detects that data is forever unavailable.
void(* m_onLiveDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, const struct XsDataPacket *packet)
Called when new data has been received from a device or read from a file. When processing on PC is en...
void(* m_onMessageSentToDevice)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, struct XsMessage const *message)
Called just after a message is sent to the device.
Contains an interpreted data message. The class provides easy access to the contained data through it...
void(* m_onWakeupReceived)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev)
Called when a wakeup message has been received from a device. This indicates that the device has just...
void(* m_onMessageDetected)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, XsProtocolType type, struct XsByteArray const *rawMessage)
Called just after a message is detected in raw data from the device.
void(* m_onAllDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevicePtrArray *devs, const struct XsDataPacketPtrArray *packets)
Called when new data has been received for devices connected to the same main device....
void(* m_onDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, const struct XsDataPacket *packet)
Called when new data has been received from a device or read from a file. When processing on PC is en...
int(* m_onWriteMessageToLogFile)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, const struct XsMessage *message)
Called when XDA has a message that could be written to a log file.
XsResultValue
Xsens result values.
void(* m_onMissedPackets)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, int count, int first, int last)
Called when XDA detects that packets have been missed.
void(* m_onDeviceStateChanged)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, XsDeviceState newState, XsDeviceState oldState)
Called when a device's state has changed (ie config mode, measurement mode, recording mode)
void(* m_onBufferedDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, const struct XsDataPacket *packet)
Called when XDA has a data packet that could be written to a log file.
void(* m_onRestoreCommunication)(struct XsCallbackPlainC *thisPtr, const struct XsString *portName, XsResultValue result)
Called when restore communication is completed, stopped or an error occurred.
void(* m_onConnectivityChanged)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, XsConnectivityState newState)
Called when XDA has detected a change in the connectivity state of a device.
XsInfoRequest
Information request identifiers.
void(* m_onMessageReceivedFromDevice)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, struct XsMessage const *message)
Called just after a valid message (after parsing) is received from the device.
Structure for storing a single message.
void(* m_onAllLiveDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevicePtrArray *devs, const struct XsDataPacketPtrArray *packets)
Called when new data has been received for devices connected to the same main device....
A list of XsDevicePtr values.
void(* m_onRecordedDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, const struct XsDataPacket *packet)
Called when new data has been received from a device in a recording state or read from a file....
void(* m_onAllRecordedDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevicePtrArray *devs, const struct XsDataPacketPtrArray *packets)
Called when new data has been received for devices connected to the same main device in a recording s...
void(* m_onNonDataMessage)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, struct XsMessage const *message)
Called when a non data, non reply message has been received.
XsConnectivityState
XsDevice connectivity state identifiers.
XsProtocolType
Protocol types (XsDevice::enableProtocol())
XsDeviceState
XsDevice state identifiers.
void(* m_onAllBufferedDataAvailable)(struct XsCallbackPlainC *thisPtr, struct XsDevicePtrArray *devs, const struct XsDataPacketPtrArray *packets)
Called when new data has been received for devices connected to the same main device....
void(* m_onInfoResponse)(struct XsCallbackPlainC *thisPtr, struct XsDevice *dev, XsInfoRequest request)
Called when an information request has resulted in a response.
A 0-terminated managed string of characters.
struct XsCallbackPlainC XsCallbackPlainC
Structure that contains callback functions for the Xsens Device API.
void(* m_onTransmissionRequest)(struct XsCallbackPlainC *thisPtr, int channelId, const struct XsByteArray *data)
Called when XDA needs to send raw data to a device connected using a custom communication channel.