Go to the documentation of this file.
109 for (i = 0; i < strlen(thisPtr->
m_portName); i++)
123 return strncmp(
"\\\\?\\usb", thisPtr->
m_portName, 7) == 0;
125 return strncmp(
"USB", thisPtr->
m_portName, 3) == 0;
135 return strncmp(
"BT:", thisPtr->
m_portName, 3) == 0;
144 return strncmp(
"NET:", thisPtr->
m_portName, 4) == 0;
172 #ifndef XSENS_WINDOWS
188 #ifndef XSENS_WINDOWS
214 for (i = 0; i < 256; ++i)
int XsPortInfo_usbAddress(const struct XsPortInfo *thisPtr)
The usb address.
const char * XsPortInfo_networkServiceName(const struct XsPortInfo *thisPtr)
Returns the network service name of this port.
char m_productCode[XSDEVICEID_PRODUCT_CODE_LEN]
The productcode of a device.
XsPortLinesOptions m_linesOptions
The hardware flow control lines options for the port.
void XsDeviceId_swap(XsDeviceId *a, XsDeviceId *b)
Swap the contents of a with those of b.
int XsPortInfo_usbBus(const struct XsPortInfo *thisPtr)
The usb bus.
XsDeviceId m_deviceId
The device Id of main Xsens device detected on the port.
int XsPortInfo_empty(const struct XsPortInfo *thisPtr)
Returns true if the XsPortInfo object is empty.
XsBaudRate m_baudrate
The baudrate at which an Xsens device was detected, may be XBR_Invalid for pure USB ports.
int XsPortInfo_portNumber(const struct XsPortInfo *thisPtr)
The port number.
const char * XsPortInfo_bluetoothAddress(const struct XsPortInfo *thisPtr)
Returns the bluetooth address.
enum XsBaudRate XsBaudRate
Communication speed.
Contains a descriptor for opening a communication port to an Xsens device.
uint16_t m_pid
The USB Vendor Id and Hardware Id of this connection, when available.
char m_portName[256]
The port name.
void XsPortInfo_clear(XsPortInfo *thisPtr)
Initializes the object to the empty state.
int XsPortInfo_isNetwork(const struct XsPortInfo *thisPtr)
Returns true if this port info object contains a network device.
void XsPortInfo_swap(struct XsPortInfo *a, struct XsPortInfo *b)
Swap the contents of a with those of b.
int XsPortInfo_isUsb(const struct XsPortInfo *thisPtr)
Returns true if this port info object contains a USB device.
uint64_t m_deviceId
The serialnumber of a device.
XBR_Invalid
Not a valid baud rate.
int XsPortInfo_isBluetooth(const struct XsPortInfo *thisPtr)
Returns true if this port info object contains a bluetooth device.