|
void | abortLoadLogFile () override |
| Aborts loading a logfile. More...
|
|
void | closeLogFile () override |
| Close the log file. More...
|
|
| DeviceCommunicator (RxChannelId rxChannels=1) |
| Default constructor. More...
|
|
bool | doTransaction (const XsMessage &message) |
| Write a message and await the reply. More...
|
|
bool | doTransaction (const XsMessage &message, uint32_t timeout) |
| Write a message and await the reply. More...
|
|
bool | doTransaction (const XsMessage &message, XsMessage &rcv) |
| Write a message and await the reply. More...
|
|
virtual bool | doTransaction (const XsMessage &message, XsMessage &rcv, uint32_t timeout)=0 |
| Write a message and await the reply. More...
|
|
virtual bool | doTransaction (const XsMessage &msg, XsMessage &rcv, uint32_t timeout) override |
| Write a message and await the reply. More...
|
|
XsResultValue | getDeviceId () override |
| Request a device to get device ID. More...
|
|
XsResultValue | gotoConfig (bool) override |
| Request a device to go to config mode. More...
|
|
uint32_t | gotoConfigTimeout () const |
|
XsResultValue | gotoMeasurement () override |
| Request a device to go to measurement mode. More...
|
|
void | handleMessage (const XsMessage &message) override |
| Handles a message. More...
|
|
bool | isReadingFromFile () const override |
|
void | loadLogFile (XsDevice *device) override |
| Load a complete logfile. More...
|
|
XsTimeStamp | logFileDate () const override |
|
XsString | logFileName () const override |
|
XsFilePos | logFileReadPosition () const override |
|
XsFilePos | logFileSize () const override |
|
bool | openLogFile (const XsString &filename) override |
| Open the log file `. More...
|
|
virtual XsResultValue | readLogFile (XsDevice *device) |
| Read a log file into cache. More...
|
|
XsMessage | readMessage (uint8_t msgId=0) override |
| Read a message from the open file. More...
|
|
XsMessage | readMessageFromStartOfFile (uint8_t msgId, int maxMsgs=0) override |
| Read a message from the start of the open file. More...
|
|
std::deque< XsMessage > | readMessagesFromStartOfFile (uint8_t msgId, int maxMsgs=0) override |
| Read multiple similar messages from the start of the open file. More...
|
|
virtual XsResultValue | readSinglePacketFromFile () |
| Read a single XsDataPacket from an open log file. More...
|
|
void | resetLogFileReadPosition (void) override |
| Resets the logfile read position. More...
|
|
void | setGotoConfigTimeout (uint32_t timeout) override |
| Set the timeout for the gotoConfig function. More...
|
|
void | setKeepAlive (bool enable) override |
| Does nothing. More...
|
|
void | waitForLastTaskCompletion () override |
| Wait for the last processing task to complete in the threadpool. More...
|
|
bool | writeMessage (const XsMessage &message) override |
| Write message to the device. More...
|
|
virtual void | addProtocolHandler (IProtocolHandler *handler) |
| Adds a protocol handler. More...
|
|
std::shared_ptr< ReplyObject > | addReplyObject (ReplyObject *obj) |
| Add a custom ReplyObject. More...
|
|
std::shared_ptr< ReplyObject > | addReplyObject (uint8_t mid) |
| Add a MidReplyObject. More...
|
|
std::shared_ptr< ReplyObject > | addReplyObject (uint8_t mid, XsSize offset, XsSize size, uint8_t const *data) |
| Add a MidAndDataReplyObject. More...
|
|
virtual bool | allowReprocessing () const |
|
XsSize | childDeviceCount () const |
|
virtual void | closePort ()=0 |
| Closes the open port. More...
|
|
| Communicator (void) |
| Constructor, creates some management objects and clears the rest by calling initialize() More...
|
|
uint32_t | defaultTimeout () const |
|
void | destroy () |
| Destroys the communicator. More...
|
|
bool | doTransaction (const XsMessage &message) |
| Write a message and await the reply. More...
|
|
bool | doTransaction (const XsMessage &message, uint32_t timeout) |
| Write a message and await the reply. More...
|
|
bool | doTransaction (const XsMessage &message, XsMessage &rcv) |
| Write a message and await the reply. More...
|
|
virtual void | flushPort ()=0 |
| Flushes all remaining data on the open port. More...
|
|
bool | hasProtocol (XsProtocolType type) const |
|
virtual bool | isDockedAt (Communicator *other) const =0 |
| Returns true if the other device is docked at this device. More...
|
|
virtual bool | isLoadLogFileInProgress () const |
|
virtual bool | isPortOpen () const =0 |
|
XsResultValue | lastResult () const |
| Get the result value of the last operation. More...
|
|
XsString | lastResultText () const |
| Get the accompanying error text for the value returned by lastResult() It may provide situation-specific information instead. More...
|
|
XsDeviceId | masterDeviceId () const |
|
virtual bool | openPort (const XsPortInfo &portInfo, OpenPortStage stage=OPS_Full, bool detectRs485=false)=0 |
| Opens a port. More...
|
|
virtual XsPortInfo | portInfo () const =0 |
|
void | removeProtocolHandler (XsProtocolType type) |
| Removes a protocol handler. More...
|
|
virtual bool | reopenPort (OpenPortStage stage=OPS_Full, bool skipDeviceIdCheck=false)=0 |
| Reopens the port. More...
|
|
bool | sanityCheck (XsMessage const &msg) const |
| Do a sanity check on a potential message. More...
|
|
virtual void | scheduleClosePort () |
| Schedules to close the open port. More...
|
|
virtual void | setCredentials (XsString const &id, XsString const &key) |
| Set the credentials required for using the device. More...
|
|
void | setDefaultTimeout (uint32_t timeout) |
| Sets a default timeout. More...
|
|
void | setMasterDevice (XsDevice *masterDevice) |
| Sets a master device. More...
|
|
void | addCallbackHandler (XsCallbackPlainC *cb, bool chain=true) |
| Add a handler to the list. More...
|
|
void | addChainedManager (CallbackManagerXda *cm) |
| Add a chained manager to the list. More...
|
|
| CallbackManagerXda () |
| Constructor, initializes the callback list. More...
|
|
void | clearCallbackHandlers (bool chain=true) |
| Clear the callback list. More...
|
|
void | clearChainedManagers () |
| Clear the chained manager list. More...
|
|
void | copyCallbackHandlersFrom (CallbackManagerXda *cm, bool chain=true) |
| Copy all handlers from cm into this manager. More...
|
|
void | copyCallbackHandlersTo (CallbackManagerXda *cm, bool chain=true) |
| Copy all handlers from this manager into cm. More...
|
|
void | onAllBufferedDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override |
| The XsCallback::onAllBufferedDataAvailable() callback forwarding function. More...
|
|
void | onAllDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override |
| The XsCallback::onAllDataAvailable() callback forwarding function. More...
|
|
void | onAllLiveDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override |
| The XsCallback::onAllLiveDataAvailable() callback forwarding function. More...
|
|
void | onAllRecordedDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override |
| The XsCallback::onAllRecordedDataAvailable() callback forwarding function. More...
|
|
void | onBufferedDataAvailable (XsDevice *dev, const XsDataPacket *data) override |
| The XsCallback::onBufferedDataAvailable() callback forwarding function. More...
|
|
void | onConnectivityChanged (XsDevice *dev, XsConnectivityState newState) override |
| The XsCallback::onConnectivityChanged() callback forwarding function. More...
|
|
void | onDataAvailable (XsDevice *dev, const XsDataPacket *data) override |
| The XsCallback::onDataAvailable() callback forwarding function. More...
|
|
void | onDataUnavailable (XsDevice *dev, int64_t packetId) override |
| The XsCallback::onDataUnavailable() callback forwarding function. More...
|
|
void | onDeviceStateChanged (XsDevice *dev, XsDeviceState newState, XsDeviceState oldState) override |
| The XsCallback::onDeviceStateChanged() callback forwarding function. More...
|
|
void | onError (XsDevice *dev, XsResultValue error) override |
| The Xscallback::onError() callback forwarding function. More...
|
|
void | onInfoResponse (XsDevice *dev, XsInfoRequest request) override |
| The XsCallback::onInfoResponse() callback forwarding function. More...
|
|
void | onLiveDataAvailable (XsDevice *dev, const XsDataPacket *packet) override |
| The XsCallback::onLiveDataAvailable() callback forwarding function. More...
|
|
void | onMessageDetected (XsDevice *dev, XsProtocolType type, XsByteArray const *rawMessage) override |
| The Xscallback::onMessageReceivedFromDevice() callback forwarding function. More...
|
|
void | onMessageReceivedFromDevice (XsDevice *dev, XsMessage const *message) override |
| The Xscallback::onMessageReceivedFromDevice() callback forwarding function. More...
|
|
void | onMessageSentToDevice (XsDevice *dev, XsMessage const *message) override |
| The Xscallback::onMessageSentToDevice() callback forwarding function. More...
|
|
void | onMissedPackets (XsDevice *dev, int count, int first, int last) override |
| The XsCallback::onMissedPackets() callback forwarding function. More...
|
|
void | onNonDataMessage (XsDevice *dev, XsMessage const *message) override |
| The Xscallback::onNonDataMessage() callback forwarding function. More...
|
|
void | onProgressUpdated (XsDevice *dev, int current, int total, const XsString *identifier) override |
| The XsCallback::onProgressUpdated() callback forwarding function. More...
|
|
void | onRecordedDataAvailable (XsDevice *dev, const XsDataPacket *data) override |
| The XsCallback::onRecordedDataAvailable() callback forwarding function. More...
|
|
void | onRestoreCommunication (const XsString *portName, XsResultValue result) override |
| The Xscallback::onRestoreCommunication callback forwarding function. More...
|
|
void | onTransmissionRequest (int channelId, const XsByteArray *data) override |
|
void | onWakeupReceived (XsDevice *dev) override |
| The XsCallback::onWakeupReceived() callback forwarding function. More...
|
|
int | onWriteMessageToLogFile (XsDevice *dev, const XsMessage *message) override |
| The XsCallback::onWriteMessageToLogFile() callback forwarding function. More...
|
|
void | removeCallbackHandler (XsCallbackPlainC *cb, bool chain=true) |
| Remove a handler from the list. More...
|
|
void | removeChainedManager (CallbackManagerXda *cm) |
| Remove achained manager from the list. More...
|
|
| ~CallbackManagerXda () |
| Destructor, clears the callback list. More...
|
|