@ XRV_OK
0: Operation was performed successfully
virtual ~UsbCommunicator()
virtual XsResultValue gotoConfig(bool detectRs485) override
Request a device to go to config mode.
XsResultValue
Xsens result values.
A base struct for a communication interface.
XsResultValue gotoConfig(bool detectRs485=false) override
Request a device to go to config mode.
Contains a descriptor for opening a communication port to an Xsens device.
std::shared_ptr< StreamInterface > createStreamInterface(const XsPortInfo &pi) override
Creates a stream interface.
XsResultValue setTimeout(uint32_t ms)
Set the default timeout value to use in blocking operations.
UsbInterface * m_usbInterface
static Communicator * construct()
Construct and returns new USB communicator.
void setRawIo(bool enable)
Sets the RAWIO mode of the USB interface.
XsResultValue open(const XsPortInfo &portInfo, XsFilePos readBufSize=0, XsFilePos writeBufSize=0, PortOptions=PO_XsensDefaults) override
Open a communication channel to the given USB port name.
virtual XsResultValue gotoMeasurement() override
Request a device to go to measurement mode.
UsbCommunicator()
Default constructor.
void setLastResult(XsResultValue lastResult, XsString const &text=XsString()) const
Sets the last result.
An IoInterface for dealing specifically with Xsens USB devices.
XsResultValue gotoMeasurement() override
Request a device to go to measurement mode.