ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsAOCAL Class Reference

#include <ngcdcsAOCAL.hpp>

Inheritance diagram for ngcdcsAOCAL:
ngcdcsEXPDRV ngcbOBJ

Public Member Functions

 ngcdcsAOCAL (ngcdcsAO *module, const ngcb_fb_t &fb)
 Constructor with associated AO camera module and feed-back channel.
 
virtual ~ngcdcsAOCAL ()
 Destructor.
 
int Configure (ngcbPARAM_LIST *cfg)
 Configuration call-back.
 
int Process (void *buffer, ngcdcs_finfo_t *finfo)
 Processing call-back.
 
- Public Member Functions inherited from ngcdcsEXPDRV
 ngcdcsEXPDRV (const ngcb_fb_t &fb)
 Constructor with feed-back channel.
 
virtual ~ngcdcsEXPDRV ()
 Destructor.
 
int Initialized ()
 Return initialization flag.
 
FILE * FeedBackStream ()
 Return feed-back stream.
 
int ImgProcessor ()
 Return image-processor flag.
 
void GetCfg (ngcbPARAM_LIST *cfg)
 Get current configuration.
 
int Active ()
 Return active flag.
 
int NewSetup ()
 New setup available.
 
void Init ()
 Initiate exposure sequence.
 
int Next ()
 Execute next step in the exposure sequence.
 
void Terminate (int status=0)
 Terminate the exposure sequence.
 
int Delay ()
 Get delay (milliseconds) to be applied before next exposure.
 
virtual int MergeFits (ngcbFITS *hdr)
 FITS-header completion call-back.
 
- Public Member Functions inherited from ngcbOBJ
 ngcbOBJ ()
 Constructor.
 
virtual ~ngcbOBJ ()
 Destructor.
 
void Instance (int n)
 Set instance.
 
int Instance ()
 Get instance.
 
const char * Major ()
 Instance major number.
 
int BigEndian ()
 Big-endian architecture.
 
int LittleEndian ()
 Little-endian architecture.
 
virtual char * ErrMsg ()
 Error message.
 
virtual int Success ()
 Return success.
 
virtual int Failure ()
 Return failure.
 
void CfgPath (const char *path)
 Set external configuration path.
 

Protected Member Functions

int Exec ()
 Execution block.
 
void Exit (int status)
 Exposure sequence termination call-back.
 
void CfgStatus (ngcbPARAM_LIST *cfg)
 Configuration status call-back.
 
- Protected Member Functions inherited from ngcdcsEXPDRV
void Initialized (int flag)
 Set initialization flag.
 
void ImgProcessorOn ()
 Connect image-processor to all exposures.
 
void Delay (int ms)
 Set a delay (milliseconds) to be applied before next exposure.
 
int Status (const char *paramName, char *value)
 Get status value of a system parameter.
 
void SendFeedBack (const char *msg)
 Feed-back function.
 
- Protected Member Functions inherited from ngcbOBJ
virtual int BailOut (const char *pos)
 Log code position of the error and bail-out with failure.
 
virtual void Verbose (int level, const char *format,...) __attribute__((format(printf
 Verbose message if verbose level exceeds level.
 
virtual void virtual void Verbose (const char *format,...) __attribute__((format(printf
 Verbose message.
 
virtual void virtual void virtual void Log (int level, const char *format,...) __attribute__((format(printf
 Log message if logging level exceeds level.
 
virtual void virtual void virtual void virtual void Log (const char *format,...) __attribute__((format(printf
 Log message.
 
virtual void virtual void virtual void virtual void virtual void ErrLog (int severity, const char *format,...) __attribute__((format(printf
 Error log, severity is one of ngcbWARNING, ngcbFAILURE and ngcbERR_SEVERE.
 
virtual void virtual void virtual void virtual void virtual void void FeedBack (const char *format,...) __attribute__((format(printf
 Feed-back function.
 
const char * CfgPath ()
 Get external configuration path.
 
int CfgPath (char *path, const char *cfgFile)
 Compose path for configuratuion file.
 
int KeyVal (const char *key, float *value)
 Get single precision floating point value from keyword string.
 
int KeyVal (const char *key, double *value)
 Get double precision floating point value from keyword string.
 
int KeyVal (const char *key, int *value)
 Get 32-bit signed integer value from decimal keyword string.
 
int KeyVal (const char *key, unsigned int *value)
 Get 32-bit unsigned integer value from decimal keyword string.
 
int KeyValHex (const char *key, int *value)
 Get 32-bit signed integer value from hexadecimal keyword string.
 
int KeyValHex (const char *key, unsigned int *value)
 Get 32-bit unsigned integer value from hexadecimal keyword string.
 
int KeyValFmt (const char *key, int *value)
 Get 32-bit signed integer value from string.
 
int KeyValFmt (const char *key, unsigned int *value)
 Get 32-bit unsigned integer value from string.
 
int KeyValFrac (const char *key, unsigned int n, uint64_t *v1, uint64_t *v2)
 Fraction after n digits.
 
void CleanupCmd (char *cmdLine, int *cmdLen)
 Clean command string (remove extra spaces etc.)
 
int ReplaceParam (char *string)
 Replace parameter in string.
 

Additional Inherited Members

- Public Attributes inherited from ngcdcsEXPDRV
char name [64]
 Exposure driver name.
 
int state
 State variable.
 
int acqId
 Associated acquisition module id.
 
unsigned int expId
 Exposure id.
 
ngcbPARAM_LIST setupList
 Setup parameter list.
 
ngcbPARAM_LISTparamList
 Global parameter list.
 
ngcbFITS fits
 Driver specific FITS-header.
 
- Public Attributes inherited from ngcbOBJ
FILE * watchdog
 Watchdog stream.
 
ngcbALARM_SYSalarmSystem
 Alarm system.
 
ngcbSERVICEservices
 System services.
 
int verboseLevel
 Verbose level.
 
int logLevel
 Logging level.
 
int xterm
 Xterm flag.
 
int debugPort
 Debug port.
 
int ignoreErr
 Ignore next error (do not log)
 
int type
 Object type.
 

Detailed Description

NGC-AO gain calibration exposure driver class

Constructor & Destructor Documentation

◆ ngcdcsAOCAL()

ngcdcsAOCAL::ngcdcsAOCAL ( ngcdcsAO * module,
const ngcb_fb_t & fb )

Constructor with associated AO camera module and feed-back channel.

◆ ~ngcdcsAOCAL()

ngcdcsAOCAL::~ngcdcsAOCAL ( )
virtual

Destructor.

Member Function Documentation

◆ CfgStatus()

void ngcdcsAOCAL::CfgStatus ( ngcbPARAM_LIST * cfg)
protectedvirtual

Configuration status call-back.

Reimplemented from ngcdcsEXPDRV.

◆ Configure()

int ngcdcsAOCAL::Configure ( ngcbPARAM_LIST * cfg)
virtual

Configuration call-back.

Reimplemented from ngcdcsEXPDRV.

◆ Exec()

int ngcdcsAOCAL::Exec ( )
protectedvirtual

Execution block.

Reimplemented from ngcdcsEXPDRV.

◆ Exit()

void ngcdcsAOCAL::Exit ( int status)
protectedvirtual

Exposure sequence termination call-back.

Reimplemented from ngcdcsEXPDRV.

◆ Process()

int ngcdcsAOCAL::Process ( void * buffer,
ngcdcs_finfo_t * finfo )
virtual

Processing call-back.

Reimplemented from ngcdcsEXPDRV.


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