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

Class that manages io and behavoir for Alta-G series Cypress EZ-USB FX2 chips. More...

#include <AspenFx2.h>

Inheritance diagram for GeeFx2:
Inheritance graph
Collaboration diagram for GeeFx2:
Collaboration graph

Public Member Functions

 GeeFx2 (std::shared_ptr< Fx2Io > io, const bool Print2StdOut)
 
virtual ~GeeFx2 ()
 
void SetSerialNumber (const std::string &num)
 
std::string GetSerialNumber ()
 
void ProgramCamera (const std::string &FilenameFpga, const std::string &FilenameFx2, const std::string &FilenameDescriptor, const std::string &FilenameWebPage, const std::string &FilenameWebServer, const std::string &FilenameWebCfg)
 
void ReadHeader (Eeprom::Header &hdr)
 

Private Member Functions

void WriteFlash (uint32_t StartAddr, const std::vector< uint8_t > &data)
 
void ReadFlash (const uint32_t StartAddr, std::vector< uint8_t > &data)
 
void DownloadFirmware ()
 
void IncrEepromAddrBlockBank (uint16_t IncrSize, uint16_t &Addr, uint8_t &Bank, uint8_t &Block)
 

Private Attributes

std::string m_fileName
 

Detailed Description

Class that manages io and behavoir for Alta-G series Cypress EZ-USB FX2 chips.

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

◆ GeeFx2()

GeeFx2::GeeFx2 ( std::shared_ptr< Fx2Io >  io,
const bool  Print2StdOut 
)

◆ ~GeeFx2()

GeeFx2::~GeeFx2 ( )
virtual

Member Function Documentation

◆ DownloadFirmware()

void GeeFx2::DownloadFirmware ( )
private

◆ GetSerialNumber()

std::string GeeFx2::GetSerialNumber ( )

◆ IncrEepromAddrBlockBank()

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

◆ ProgramCamera()

void GeeFx2::ProgramCamera ( const std::string &  FilenameFpga,
const std::string &  FilenameFx2,
const std::string &  FilenameDescriptor,
const std::string &  FilenameWebPage,
const std::string &  FilenameWebServer,
const std::string &  FilenameWebCfg 
)

◆ ReadFlash()

void GeeFx2::ReadFlash ( const uint32_t  StartAddr,
std::vector< uint8_t > &  data 
)
private

◆ ReadHeader()

void GeeFx2::ReadHeader ( Eeprom::Header hdr)

◆ SetSerialNumber()

void GeeFx2::SetSerialNumber ( const std::string &  num)

◆ WriteFlash()

void GeeFx2::WriteFlash ( uint32_t  StartAddr,
const std::vector< uint8_t > &  data 
)
private

Member Data Documentation

◆ m_fileName

std::string GeeFx2::m_fileName
private

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