TwiceAsNice  2019-02-18
Public Member Functions | Private Member Functions | List of all members
FindDeviceUsb Class Reference

searches through a number of usb devices looking for apogee devices More...

#include <FindDeviceUsb.h>

Collaboration diagram for FindDeviceUsb:
Collaboration graph

Public Member Functions

virtual ~FindDeviceUsb ()
 
std::string Find ()
 

Private Member Functions

std::string AltaInfo (const std::string &deviceAddr)
 
std::string AscentInfo (const std::string &deviceAddr)
 
std::string AspenInfo (const std::string &deviceAddr)
 
std::string MkCamInfoStr (uint16_t Id, uint16_t FrmwrRev)
 
std::vector< std::vector< uint16_t > > GetApgDevices ()
 
std::string CameraInfo (CamUsbIo &usbIo)
 
bool IsDeviceAlreadyOpen (uint16_t deviceNum)
 

Detailed Description

searches through a number of usb devices looking for apogee devices

Searches usb bus for apogee devices.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright(c) 2009 Apogee Instruments, Inc.

Constructor & Destructor Documentation

◆ ~FindDeviceUsb()

FindDeviceUsb::~FindDeviceUsb ( )
virtual

Member Function Documentation

◆ AltaInfo()

std::string FindDeviceUsb::AltaInfo ( const std::string &  deviceAddr)
private

◆ AscentInfo()

std::string FindDeviceUsb::AscentInfo ( const std::string &  deviceAddr)
private

◆ AspenInfo()

std::string FindDeviceUsb::AspenInfo ( const std::string &  deviceAddr)
private

◆ CameraInfo()

std::string FindDeviceUsb::CameraInfo ( CamUsbIo usbIo)
private

◆ Find()

std::string FindDeviceUsb::Find ( )

Searches the USB bus for Apogee devices

Returns
Returns a <d></d> demlited string for found devices. A null string of <d></d> is returned if no device is found. This example shows the string return with one camera and one filter wheel is attached to the host PC,
<d>address=0,interface=usb,deviceType=camera,id=0x49,firmwareRev=0x21,model=AltaU-4020ML,interfaceStatus=NA</d><d>address=1,interface=usb,model=Filter Wheel,deviceType=filterWheel,id=0xFFFF,firmwareRev=0xFFEE</d> 

◆ GetApgDevices()

std::vector< std::vector< uint16_t > > FindDeviceUsb::GetApgDevices ( )
private

◆ IsDeviceAlreadyOpen()

bool FindDeviceUsb::IsDeviceAlreadyOpen ( uint16_t  deviceNum)
private

◆ MkCamInfoStr()

std::string FindDeviceUsb::MkCamInfoStr ( uint16_t  Id,
uint16_t  FrmwrRev 
)
private

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