15 #include <wpi/SmallString.h>
16 #include <wpi/SmallVector.h>
17 #include <wpi/mutex.h>
19 #include "hal/SerialPort.h"
64 void SortHubPathVector();
66 void QueryHubPaths(int32_t* status);
68 int32_t GetIndexForPort(HAL_SerialPort port, int32_t* status);
78 int32_t m_resourceHandle;
80 static wpi::mutex m_nameMutex;
81 static std::string m_usbNames[2];
std::vector< std::string > GetOSSerialPortList(int32_t *status)
Get a vector of all serial port OS names.
WPILib Hardware Abstraction Layer (HAL) namespace.
Definition: UnsafeDIO.h:15
std::string GetOSSerialPortName(HAL_SerialPort port, int32_t *status)
Get the OS name of a serial port.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: sha1.h:31
A class for deterministically getting information about Serial Ports.
Definition: SerialHelper.h:25
std::string GetVISASerialPortName(HAL_SerialPort port, int32_t *status)
Get the VISA name of a serial port.
std::vector< std::string > GetVISASerialPortList(int32_t *status)
Get a vector of all serial port VISA names.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition: SmallVector.h:856