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

Derived fx2 class for the usb filter wheel. More...

#include <FilterWheelIo.h>

Collaboration diagram for FilterWheelIo:
Collaboration graph

Public Member Functions

 FilterWheelIo (const std::string &DeviceAddr)
 
virtual ~FilterWheelIo ()
 
void Program (const std::string &FilenameFx2, const std::string &FilenameDescriptor)
 
uint16_t GetVendorId ()
 
uint16_t GetProductId ()
 
uint16_t GetDeviceId ()
 
std::string GetUsbFirmwareRev ()
 
void ReadCtrlPort (uint8_t &control, uint8_t &pin)
 
void WriteCtrlPort (uint8_t control, uint8_t pin)
 

Private Member Functions

void DownloadFirmware ()
 
void IncrEepromAddrBlockBank (uint16_t IncrSize, uint16_t &Addr, uint8_t &Bank, uint8_t &Block)
 

Private Attributes

std::string m_fileName
 
std::shared_ptr< IUsbm_Usb
 

Detailed Description

Derived fx2 class for the usb filter wheel.

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) 2010 Apogee Instruments, Inc.

Constructor & Destructor Documentation

◆ FilterWheelIo()

FilterWheelIo::FilterWheelIo ( const std::string &  DeviceAddr)

◆ ~FilterWheelIo()

FilterWheelIo::~FilterWheelIo ( )
virtual

Member Function Documentation

◆ DownloadFirmware()

void FilterWheelIo::DownloadFirmware ( )
private

◆ GetDeviceId()

uint16_t FilterWheelIo::GetDeviceId ( )

◆ GetProductId()

uint16_t FilterWheelIo::GetProductId ( )

◆ GetUsbFirmwareRev()

std::string FilterWheelIo::GetUsbFirmwareRev ( )

◆ GetVendorId()

uint16_t FilterWheelIo::GetVendorId ( )

◆ IncrEepromAddrBlockBank()

void FilterWheelIo::IncrEepromAddrBlockBank ( uint16_t  IncrSize,
uint16_t Addr,
uint8_t Bank,
uint8_t Block 
)
private

◆ Program()

void FilterWheelIo::Program ( const std::string &  FilenameFx2,
const std::string &  FilenameDescriptor 
)

◆ ReadCtrlPort()

void FilterWheelIo::ReadCtrlPort ( uint8_t control,
uint8_t pin 
)

◆ WriteCtrlPort()

void FilterWheelIo::WriteCtrlPort ( uint8_t  control,
uint8_t  pin 
)

Member Data Documentation

◆ m_fileName

std::string FilterWheelIo::m_fileName
private

◆ m_Usb

std::shared_ptr<IUsb> FilterWheelIo::m_Usb
private

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