TwiceAsNice
2019-02-18
|
This is class is the implementation of the finite state machine (fsm) for camera modes. More...
#include <ModeFsm.h>
Public Member Functions | |
ModeFsm (std::shared_ptr< CameraIo > &io, std::shared_ptr< CApnCamData > &camData, uint16_t rev) | |
virtual | ~ModeFsm () |
Apg::CameraMode | GetMode () |
void | SetMode (Apg::CameraMode newMode) |
void | SetBulkDownload (bool TurnOn) |
bool | IsBulkDownloadOn () |
void | SetPipelineDownload (bool TurnOn) |
bool | IsPipelineDownloadOn () |
void | SetExternalTrigger (bool TurnOn, Apg::TriggerMode trigMode, Apg::TriggerType trigType) |
std::vector< std::pair< Apg::TriggerMode, Apg::TriggerType > > | GetTrigsThatAreOn () |
void | SetFastSequence (bool TurnOn) |
bool | IsFastSequenceOn () |
void | UpdateApnCamData (std::shared_ptr< CApnCamData > &newCamData) |
void | SetTdiRows (uint16_t rows) |
uint16_t | GetTdiRows () |
virtual bool | IsTdiAvailable ()=0 |
virtual bool | IsKineticsAvailable ()=0 |
virtual bool | IsContinuousImagingAvailable ()=0 |
virtual bool | IsTriggerNormEachOn ()=0 |
virtual bool | IsTriggerNormGroupOn ()=0 |
virtual bool | IsTriggerTdiKinEachOn ()=0 |
virtual bool | IsTriggerTdiKinGroupOn ()=0 |
virtual bool | IsTriggerExternalShutterOn ()=0 |
virtual bool | IsTriggerExternalReadoutOn ()=0 |
Protected Member Functions | |
bool | IsModeValid (Apg::CameraMode newMode) |
void | ExitOldMode () |
void | EnterNewMode (Apg::CameraMode newMode) |
uint16_t | GetNormTrigMask (Apg::TriggerType trigType) |
uint16_t | GetTdiKinTrigMask (Apg::TriggerType trigType) |
void | TurnTrigOn (uint16_t mask) |
void | TurnTrigOff (uint16_t mask) |
void | EnableIoPortBit () |
void | DisableIoPortBit () |
bool | IsInterlineCcd () |
void | SetNormTdiKinTriggers (bool TurnOn, Apg::TriggerMode trigMode, Apg::TriggerType trigType) |
void | SetShutterTrigger (bool TurnOn) |
void | SetReadoutIoTrigger (bool TurnOn) |
void | SetNormTrigger (const bool TurnOn, const Apg::TriggerType trigType) |
void | SetTdiKinTrigger (const bool TurnOn, const Apg::TriggerType trigType) |
virtual bool | IsExternalTriggerAvailable (Apg::TriggerMode trigMode)=0 |
Protected Attributes | |
Apg::CameraMode | m_mode |
std::shared_ptr< CameraIo > | m_CamIo |
std::shared_ptr< CApnCamData > | m_CamData |
uint16_t | m_FirmwareVersion |
bool | m_IsBulkDownloadOn |
bool | m_IsPipelineDownloadOn |
bool | m_IsFastSequeceOn |
Private Member Functions | |
ModeFsm (const ModeFsm &) | |
ModeFsm & | operator= (ModeFsm &) |
Private Attributes | |
std::string | m_fileName |
uint16_t | m_TdiRows |
This is class is the implementation of the finite state machine (fsm) for camera modes.
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.
ModeFsm::ModeFsm | ( | std::shared_ptr< CameraIo > & | io, |
std::shared_ptr< CApnCamData > & | camData, | ||
uint16_t | rev | ||
) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
protected |
|
protected |
|
inline |
std::vector< std::pair< Apg::TriggerMode, Apg::TriggerType > > ModeFsm::GetTrigsThatAreOn | ( | ) |
|
inline |
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
protectedpure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
bool ModeFsm::IsFastSequenceOn | ( | ) |
|
protected |
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
protected |
|
inline |
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
|
pure virtual |
Implemented in AltaModeFsm, and CamGen2ModeFsm.
void ModeFsm::SetBulkDownload | ( | bool | TurnOn | ) |
void ModeFsm::SetExternalTrigger | ( | bool | TurnOn, |
Apg::TriggerMode | trigMode, | ||
Apg::TriggerType | trigType | ||
) |
void ModeFsm::SetFastSequence | ( | bool | TurnOn | ) |
void ModeFsm::SetMode | ( | Apg::CameraMode | newMode | ) |
|
protected |
void ModeFsm::SetPipelineDownload | ( | bool | TurnOn | ) |
|
protected |
|
protected |
void ModeFsm::SetTdiRows | ( | uint16_t | rows | ) |
|
protected |
|
protected |
void ModeFsm::UpdateApnCamData | ( | std::shared_ptr< CApnCamData > & | newCamData | ) |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |