Go to the documentation of this file.
76 LOGXSSCAN(__FUNCTION__ <<
" baudrate " << baudrate <<
" singleScanTimeout " << singleScanTimeout <<
" ignoreNonXsensDevices " << ignoreNonXsensDevices <<
" detectRs485 " << detectRs485);
78 assert(ports !=
nullptr);
86 ports->assign(tmp.size(), &tmp[0]);
94 assert(port !=
nullptr);
109 LOGXSSCAN(__FUNCTION__ <<
" ignoreNonXsensDevices " << ignoreNonXsensDevices);
111 assert(ports !=
nullptr);
119 ports->assign(tmp.size(), &tmp[0]);
146 LOGXSSCAN(__FUNCTION__ <<
" baudrate " << baudrate <<
" singleScanTimeout " << singleScanTimeout <<
" ignoreNonXsensDevices " << ignoreNonXsensDevices <<
" detectRs485 " << detectRs485);
160 LOGXSSCAN(__FUNCTION__ <<
" baudrate " << baudrate <<
" singleScanTimeout " << singleScanTimeout <<
" detectRs485 " << detectRs485);
167 LOGXSSCAN(__FUNCTION__ <<
" ignoreNonXsensDevices " << ignoreNonXsensDevices);
180 LOGXSSCAN(__FUNCTION__ <<
" baudrate " << baudrate <<
" singleScanTimeout " << singleScanTimeout <<
" detectRs485 " << detectRs485);
181 assert(ports !=
nullptr);
186 for (
XsSize i = 0; i < ports->size(); ++i)
187 tmp.push_back(ports->at(i));
193 ports->assign(tmp.size(), &tmp[0]);
208 assert(ports !=
nullptr);
215 ports->assign(tmp.size(), &tmp[0]);
229 assert(hub !=
nullptr && port !=
nullptr);
240 assert(ports !=
nullptr);
254 assert(ports !=
nullptr);
void XsScanner_scanPorts(XsPortInfoArray *ports, XsBaudRate baudrate, int singleScanTimeout, int ignoreNonXsensDevices, int detectRs485)
Scan all ports for Xsens devices.
volatile std::atomic_bool abortPortScan
bool xsScanPort(XsPortInfo &portInfo, XsBaudRate baud, uint32_t singleScanTimeout, bool detectRs485)
Scan a single COM port for connected Xsens devices.
void XsScanner_scanPorts_int(XsPortInfoArray *ports, XsBaudRate baudrate, int singleScanTimeout, int ignoreNonXsensDevices, int detectRs485)
Scan all ports for Xsens devices.
void XsScanner_setScanLogCallback(XsScanLogCallbackFunc cb)
Set a callback function for scan log progress and problem reporting.
void XsScanner_abortScan(void)
Abort the currently running port scan(s)
int XsScanner_scanPort(XsPortInfo *port, XsBaudRate baudrate, int singleScanTimeout, int detectRs485)
Scan a single port for Xsens devices.
void XsScanner_enumerateSerialPorts_int(XsPortInfoArray *ports, int ignoreNonXsensDevices)
List all serial ports without scanning.
void(* XsScanLogCallbackFunc)(struct XsString const *)
Defines the callback type that can be supplied to XsScanner_setScanLogCallback.
void XsScanner_scanUsbHub(XsUsbHubInfo *hub, const XsPortInfo *port)
Determine the USB hub that port is attached to.
bool xsFilterResponsiveDevices(XsPortInfoArray &ports, XsBaudRate baudrate, uint32_t singleScanTimeout, bool detectRs485)
Filter responsive devices.
enum XsBaudRate XsBaudRate
Communication speed.
Contains a descriptor for opening a communication port to an Xsens device.
bool xsEnumerateSerialPorts(XsPortInfoArray &ports, bool ignoreNonXsensDevices)
Enumerate the serial ports.
virtual bool xsEnumerateBluetoothDevices(XsPortInfoArray &ports)
Enumerates a bluetooth device.
void XsScanner_enumerateSerialPorts(XsPortInfoArray *ports, int ignoreNonXsensDevices)
List all serial ports without scanning.
virtual bool xsScanPorts(XsPortInfoArray &ports, XsBaudRate baudrate, uint32_t singleScanTimeout, bool ignoreNonXsensDevices, bool detectRs485)
Scan serial ports for connected Xsens devices.
size_t XsSize
XsSize must be unsigned number!
XsUsbHubInfo xsScanUsbHub(const XsPortInfo &portInfo)
Get information about the hub configuration.
bool xsEnumerateUsbDevices(XsPortInfoArray &ports)
Enumerate Xsens USB devices.
A structure that wraps USB hub information.
A list of XsPortInfo values.
int XsScanner_scanPort_int(XsPortInfo *port, XsBaudRate baudrate, int singleScanTimeout, int detectRs485)
Scan a single port for Xsens devices.
void XsScanner_enumerateNetworkDevices(XsPortInfoArray *ports)
void XsScanner_enumerateBluetoothDevices(XsPortInfoArray *ports)
static void setScanLogCallback(XsScanLogCallbackFunc cb)
Set a callback function for scan log progress and problem reporting.
void XsScanner_enumerateUsbDevices(XsPortInfoArray *ports)
List all compatible USB ports without scanning.
virtual bool xsEnumerateNetworkDevices(XsPortInfoArray &ports)
Enumerates a network device.
void XsScanner_filterResponsiveDevices(XsPortInfoArray *ports, XsBaudRate baudrate, int singleScanTimeout, int detectRs485)
Scan the supplied ports for Xsens devices.
Scanner & scanner() const
An accessor class for scanner.