WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
hal::SerialHelper Class Reference

A class for deterministically getting information about Serial Ports. More...

#include <SerialHelper.h>

Public Member Functions

std::string GetVISASerialPortName (HAL_SerialPort port, int32_t *status)
 Get the VISA name of a serial port. More...
 
std::string GetOSSerialPortName (HAL_SerialPort port, int32_t *status)
 Get the OS name of a serial port. More...
 
std::vector< std::string > GetVISASerialPortList (int32_t *status)
 Get a vector of all serial port VISA names. More...
 
std::vector< std::string > GetOSSerialPortList (int32_t *status)
 Get a vector of all serial port OS names. More...
 

Detailed Description

A class for deterministically getting information about Serial Ports.

Member Function Documentation

std::vector<std::string> hal::SerialHelper::GetOSSerialPortList ( int32_t *  status)

Get a vector of all serial port OS names.

Parameters
statusstatus check
Returns
vector of serial port OS names
std::string hal::SerialHelper::GetOSSerialPortName ( HAL_SerialPort  port,
int32_t *  status 
)

Get the OS name of a serial port.

Parameters
portthe serial port index
statusstatus check
Returns
the OS name
std::vector<std::string> hal::SerialHelper::GetVISASerialPortList ( int32_t *  status)

Get a vector of all serial port VISA names.

Parameters
statusstatus check
Returns
vector of serial port VISA names
std::string hal::SerialHelper::GetVISASerialPortName ( HAL_SerialPort  port,
int32_t *  status 
)

Get the VISA name of a serial port.

Parameters
portthe serial port index
statusstatus check
Returns
the VISA name

The documentation for this class was generated from the following file: