Contains helper functions for accessing attached devices
Typedef for a map of string COM ports to DeviceInfo objects detailing the information about each device
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.
A DeviceList representing the COM ports that were found that match MicroStrain BaseStations. If none were found, the list will be empty.
Gets a list of all the attached (USB) InertialDevices.
A DeviceList representing the COM ports that were found that match MicroStrain InertialDevices. If none were found, the list will be empty.
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.
A DeviceList representing the ports that were found and their availability. If none were found, the list will be empty.
static DeviceList listDevices( |
| ) |
Gets a list of attached devices that match the given DeviceType
devType | The type of device to list |
static bool matchesDevice( |
| ) |
Checks whether a given string found from WMI matches the given device
pnpID std::string | The WMI PNPDeviceID to match |
description std::string | The WMI Description to match |
devType | The DeviceType to check for |
true if the string matches the given DeviceType, false otherwise
static bool matchesDevice( |
| ) |
Checks whether the given information, found from searching files in linux, matches the given device
manufacturer std::string | The manufacturer of the device |
vendorId std::string | The vendor id of the device |
devType | The DeviceType to check for |
true if the string matches the given DeviceType, false otherwise
static bool getDeviceInfo( |
| ) |
Gets information about the attached device
devicePath std::string | The device path in the directory/form of "/sys/bus/___/devices/___" |
serial std::string& | An output parameter that holds the resulting serial of the device |
manufacturer std::string& | An output parameter that holds the resulting manufacturer of the device |
vendorId std::string& | An output parameter that holds the resulting vendor ID of the device |
true if successfully find the device info, false otherwise