Go to the documentation of this file.
121 XsScanner_scanPorts(&ports, baudrate, singleScanTimeout, ignoreNonXsensDevices ? 1 : 0, detectRs485 ? 1 : 0);
128 return 0 !=
XsScanner_scanPort(&port, baudrate, singleScanTimeout, detectRs485 ? 1 : 0);
142 if (scanPort(pi, baudrate, singleScanTimeout, detectRs485))
160 if (!portLinesOptionsList.empty() && (portLinesOptionsList.size() != portList.size()))
163 for (XsIntArray::size_type idxPort = 0; idxPort < portList.size(); ++idxPort)
167 XsPortInfo portInfo(portList[idxPort], baudrate, portLinesOptions);
169 if (scanPort(portInfo, baudrate, singleScanTimeout, (portLinesOptions ==
XPLO_All_Clear)))
170 pInfoArray.push_back(portInfo);
179 static inline XsPortInfoArray enumerateSerialPorts(
bool ignoreNonXsensDevices =
true)
250 static inline void abortScan(
void)
XDA_DLL_API void XsScanner_setScanLogCallback(XsScanLogCallbackFunc cb)
Set a callback function for scan log progress and problem reporting.
void XsScanner_scanPorts(XsPortInfoArray *ports, XsBaudRate baudrate, int singleScanTimeout, int ignoreNonXsensDevices, int detectRs485)
Scan all ports for Xsens devices.
XDA_DLL_API void XsScanner_enumerateNetworkDevices(struct XsPortInfoArray *ports)
XDA_DLL_API void XsScanner_enumerateBluetoothDevices(struct XsPortInfoArray *ports)
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.
A list of XsString values.
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.
struct XsPortInfo XsPortInfo
enum XsBaudRate XsBaudRate
Communication speed.
Contains a descriptor for opening a communication port to an Xsens device.
XDA_DLL_API void XsScanner_enumerateSerialPorts(struct XsPortInfoArray *ports, int ignoreNonXsensDevices)
List all serial ports without scanning.
Provides static functionality for scanning for Xsens devices.
A structure that wraps USB hub information.
A list of XsPortInfo values.
struct XsIntArray XsIntArray
void XsScanner_enumerateUsbDevices(XsPortInfoArray *ports)
List all compatible USB ports without scanning.
void XsScanner_filterResponsiveDevices(XsPortInfoArray *ports, XsBaudRate baudrate, int singleScanTimeout, int detectRs485)
Scan the supplied ports for Xsens devices.
XBR_Invalid
Not a valid baud rate.
A 0-terminated managed string of characters.