OSVR-Core
Namespaces | Functions
USBSerialDevInfo_MacOSX.h File Reference

Implementation. More...

#include "USBSerialDevInfo.h"
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOKitKeys.h>
#include <IOKit/serial/IOSerialKeys.h>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Functions

std::vector< USBSerialDevice > osvr::usbserial::getSerialDeviceList (boost::optional< uint16_t > vendorID=boost::optional< uint16_t >(), boost::optional< uint16_t > productID=boost::optional< uint16_t >())
 

Detailed Description

Implementation.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ getSerialDeviceList()

std::vector< USBSerialDevice > osvr::usbserial::getSerialDeviceList ( boost::optional< uint16_t >  vendorID = boost::optional<uint16_t>(),
boost::optional< uint16_t >  productID = boost::optional<uint16_t>() 
)

DeviceID is the COM port name

PNPDeviceID is the hardware instance ID that has the VID:PID embedded in it.

We had something to search for, and we didn't find it, go on.

Couldn't parse the VID/PID - may not be a USB serial port.

On Windows (NT-based), the "full path" to a serial port with a COM port name is \. (where x is a number)

DeviceID is the COM port name

PNPDeviceID is the hardware instance ID that has the VID:PID embedded in it.

We had something to search for, and we didn't find it, go on.

Couldn't parse the VID/PID - may not be a USB serial port.

On Windows (NT-based), the "full path" to a serial port with a COM port name is \. (where x is a number)