Devices
DeviceInfo
DeviceInfo

Contains information on an attached device

DeviceStatus
STATUS_UNKNOWN

0 - Device Status is Unknown, the port may or may not be already open.

STATUS_AVAILABLE

1 - The Device is available, the port is currently closed.

STATUS_UNAVAILABLE

2 - The Device is unavailable, the port is currently in use.

status
DeviceStatus status() const

Gets the DeviceStatus for the device

Returns

A DeviceStatus that represents the connetion status of the device

serial
std::string serial() const

Gets the serial address for the device

Returns

The serial number of the device

Devices
Devices

Contains helper functions for accessing attached devices

DeviceType
TYPE_ALL

0 - All Devices

TYPE_BASESTATION

1 - Device of a BaseStation type

TYPE_INERTIALDEVICE

2 - Device of an InertialDevice type

DeviceList

Typedef for a map of string COM ports to DeviceInfo objects detailing the information about each device

listBaseStations
static DeviceList listBaseStations()

Gets a list of all the attached (USB) BaseStations.  Note that this is solely going by listed devices that use our driver, so this may pick up similar devices that are not BaseStations.

Returns

A DeviceList representing the COM ports that were found that match MicroStrain BaseStations.  If none were found, the list will be empty.

listInertialDevices
static DeviceList listInertialDevices()

Gets a list of all the attached (USB) InertialDevices.

Returns

A DeviceList representing the COM ports that were found that match MicroStrain InertialDevices.  If none were found, the list will be empty.

listPorts
static DeviceList listPorts()

Gets a simple list of all serial ports and their availability. This function does not tell you which device is on which port, but can be useful for listing actual serial ports.

Returns

A DeviceList representing the ports that were found and their availability.  If none were found, the list will be empty.