#include <ngcdcsAO.hpp>
Public Member Functions | |
| ngcdcsAO (const ngcb_route_t &r) | |
| Constructor with route. | |
| ngcdcsAO (ngcbIFC *ifc, const ngcb_route_t &r) | |
| Constructor with interface device and route. | |
| virtual | ~ngcdcsAO () |
| Destructor. | |
| void | Reset () |
| Align software state after reset. | |
| int | Enable (int check=1) |
| Call-back at transition to operational state. | |
| int | Disable () |
| Call-back at transition to not operational state. | |
| int | Selftest () |
| Execute selftest. | |
| virtual int | AtStop () |
| Function to be executed before read-out stop. | |
| virtual int | AfterStop () |
| Function to be executed after read-out stop. | |
| virtual int | AtStart () |
| Function to be executed before read-out start. | |
| virtual int | AutoStart () |
| Function to be executed after read-out start. | |
| int | CkAddrCB (int addr, const int *buffer, int size) |
| Check-address call-back for alignment. | |
| void | WrAddrCB (int addr, const int *buffer, int size) |
| Write-to-address call-back for alignment. | |
| virtual int | Update (int sensor, int force=0) |
| Run next sensor update cycle. | |
| int | CheckOvrIllum () |
| Check over-illumination sensor. | |
| int | ResetHead () |
| Reset AO camera. | |
| int | ResetSensors (int errFlag=0) |
| Reset all sensors. | |
| int | ResetRHum () |
| Reset humidity sensor. | |
| int | ResetTemp () |
| Reset temperature sensor. | |
| int | ResetPressure () |
| Reset pressure sensor. | |
| int | ResetOvrIllum () |
| Reset over-illumination detection. | |
| int | SensorError (int sensor) |
| Return sensor error state. | |
| int | ResetAfe (int update=1) |
| Reset AFE interface. | |
| int | Master (int flag) |
| Enable/disable synchronisation master flag. | |
| int | DataLink (int flag) |
| Enable/disable data-link to NGC-LLCU. | |
| int | SerialLink (int flag) |
| Enable/disable serial link to AO-system. | |
| int | Gain (int value) |
| Set gain. | |
| int | Gain (int quadrant, int value) |
| Set gain per quadrant. | |
| int | Delay (int idx, int ticks) |
| Set delay (in ticks) | |
| int | VoltageIPhase (int idx, double volt) |
| Set multi-level-clock voltage levels (I-phase) | |
| int | VoltageSPhase (int idx, double volt) |
| Set multi-level-clock voltage levels (S-phase) | |
| int | Dim (int x, int y) |
| Set image dimension. | |
| int | DimX (int x) |
| Set image x-dimension. | |
| int | DimY (int y) |
| Set image y-dimension. | |
| unsigned int | FrameCnt () |
| Return current frame counter. | |
| double | FrameRate () |
| Return actual frame rate (Hz) | |
| int | Shift (int clkNum, int shift, int edge, int force=0) |
| Clock-shifter. | |
| int | GetClk (int clkNum, int patNum, char *clkString) |
| Get clock state values. | |
| int | AmpGain (int channel, double value) |
| Set amplifier gain (in dB - from 0.0 to 36.0 dB) | |
| int | Clamp (int channel, int level) |
| Set clamp level (0 - 1020) | |
| int | ClampOn (int side, int flag) |
| Enable Clamp. | |
| int | Input (int channel, int input) |
| Select AFE input (0=CCD, 1=AUX1, 2=AUX2) | |
| int | CtrlReg () |
| Return actual control register mirror. | |
| int | SetupKey (const char *key, const int *idx, const char *value, int *status=NULL) |
| Setup. | |
| int | StatusKey (const char *key, const int *idx, char *value, int *status=NULL) |
| Status. | |
Public Member Functions inherited from ngcbMOD | |
| ngcbMOD & | operator= (const ngcbMOD &other) |
| Operator =. | |
| ngcbMOD (const ngcbMOD &other) | |
| Copy constructor. | |
| ngcbMOD (const ngcb_route_t &modRoute) | |
| Constructor with route. | |
| ngcbMOD (ngcbIFC *modDev, const ngcb_route_t &modRoute) | |
| Constructor with interface device and route. | |
| virtual | ~ngcbMOD () |
| Destructor. | |
| ngcbIFC * | Dev () |
| Return current interface device. | |
| void | Dev (ngcbIFC *newDev) |
| Set new interface device. | |
| int | Connected () |
| Return 1 if device is connected, zero otherwise. | |
| int | Sim () |
| int | Initialize () |
| Initialize module. | |
| void | ErrState (const char *msg, int errorId=0) |
| Go to error state. | |
| virtual int | Load (const char *fileName) |
| Load register instruction file. | |
| int | Board () |
| Return the board number of the module (starts with zero) | |
| void | RpcCopy (void *dest, const void *src, size_t size, size_t items=1) |
| Copy RPC payload. | |
| int | RPC (int target, int req, void *payload, unsigned int size, unsigned int *status=NULL) |
| Execute RPC. | |
| int | ReadAddr (int addr, int *buffer, int size) |
| Read from address (32-bit) | |
| int | WriteAddr (int addr, const int *buffer, int size) |
| Write to address (32-bit) | |
| int | ReadAddr64 (int addr, uint64_t *buffer, int size) |
| Read from address (64-bit) | |
| int | WriteAddr64 (int addr, const uint64_t *buffer, int size) |
| Write to address (64-bit) | |
| int | Temperature (double *t) |
| Read board temperature (degree C) | |
| int | BackPlane () |
| Return back-plane ID. | |
| virtual void | CV (int chan, double volt) |
| Voltage conversion 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. | |
Public Attributes | |
| char | initFile [ngcdcsAO_MAX_INITFILES][256] |
| Register initialization files. | |
| char | resetFile [ngcdcsAO_MAX_INITFILES][256] |
| Register reset files. | |
| int | hwRev |
| Hardware revision (0=protoype, 1=reshaped) | |
| int | autoStart |
| Automatic immediate start. | |
| ngcdcsSHTx_TEMP | temp |
| Temperature sensor (degC) | |
| ngcdcsSHTx_RHUM | rhum |
| Relative humidity sensor (%) | |
| ngcdcsMPL115A | pressure |
| Pressure sensor (kPa) | |
| int | master |
| Synchronisation master flag. | |
| int | dataLink |
| Data-link to NGC-LLCU disabled/enabled flag. | |
| int | serialLink |
| Serial link to AO-system disabled/enabled flag. | |
| int | gain |
| Gain step. | |
| int | maxGain |
| Maximum gain. | |
| int | overIllumination |
| Over-illumination flag. | |
| int | rstStart |
| Reset at start. | |
| int | expAbort |
| Abort exposure on over-illumination. | |
| int | sensEnabled |
| Sensor interface disabled/enabled flag. | |
| int | sensPrefill |
| Prefill sensor filter windows. | |
| double | sensSettleTime |
| Sensor settling time. | |
| int | shpWidth |
| SHP-widht (ALICE) | |
| int | delay [42] |
| 42 delays (in ticks) | |
| double | reDelay [8] |
| Rising edge calibration delays (in ticks) | |
| double | feDelay [8] |
| Falling edge calibration delays (in ticks) | |
| double | vsph [4] |
| Multi-level-clock voltage levels S-phase. | |
| double | viph [4] |
| Multi-level-clock voltage levels I-phase. | |
| int | nx |
| Image transfer x-dimension. | |
| int | ny |
| Image transfer y-dimension. | |
| ngcdcsAO_RMP | rmp |
| ALICE rgions, masks, patterns. | |
| int | hvChan [4] |
| High-voltage channel. | |
| ngcdcs_aocal_t | calib [4] |
| High voltage calibration. | |
| char | pixMask [256] |
| Calibration pixel mask. | |
| ngcdcs_afe_t | afe |
| Analog Front End control (AFE) | |
| ngcdcsCLDC * | cldc |
| Assocoated clock- and bias-generator. | |
| ngcdcsSEQ * | seq |
| Associated sequencer. | |
Public Attributes inherited from ngcbMOD | |
| ngcbIFC * | dev |
| Interface device. | |
| ngcb_route_t | route |
| Local route to module (header) | |
| char | moduleName [64] |
| Module name. | |
| int | id |
| ID-register content. | |
| int | productCode |
| Product code. | |
| int | revision |
| HW revision number. | |
| int | firmware |
| Firmware revision. | |
| int | boardId |
| Physical board id. | |
| int | fitsHdr |
| Enable FITS-header for this module. | |
Public Attributes inherited from ngcbOBJ | |
| FILE * | watchdog |
| Watchdog stream. | |
| ngcbALARM_SYS * | alarmSystem |
| Alarm system. | |
| ngcbSERVICE * | services |
| 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. | |
Additional Inherited Members | |
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. | |
| virtual void virtual void virtual void virtual void virtual void void virtual void | SendFeedBack (const char *msg) |
| Feed-back sender implementation. | |
| 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. | |
NGC AO camera module class
|
explicit |
Constructor with route.
| ngcdcsAO::ngcdcsAO | ( | ngcbIFC * | ifc, |
| const ngcb_route_t & | r ) |
Constructor with interface device and route.
|
virtual |
Destructor.
|
virtual |
Function to be executed after read-out stop.
| int ngcdcsAO::AmpGain | ( | int | channel, |
| double | value ) |
Set amplifier gain (in dB - from 0.0 to 36.0 dB)
|
virtual |
Function to be executed before read-out start.
|
virtual |
Function to be executed before read-out stop.
|
virtual |
Function to be executed after read-out start.
| int ngcdcsAO::CheckOvrIllum | ( | ) |
Check over-illumination sensor.
|
virtual |
Check-address call-back for alignment.
Reimplemented from ngcbMOD.
| int ngcdcsAO::Clamp | ( | int | channel, |
| int | level ) |
Set clamp level (0 - 1020)
| int ngcdcsAO::ClampOn | ( | int | side, |
| int | flag ) |
Enable Clamp.
|
inline |
Return actual control register mirror.
| int ngcdcsAO::DataLink | ( | int | flag | ) |
Enable/disable data-link to NGC-LLCU.
| int ngcdcsAO::Delay | ( | int | idx, |
| int | ticks ) |
Set delay (in ticks)
| int ngcdcsAO::Dim | ( | int | x, |
| int | y ) |
Set image dimension.
| int ngcdcsAO::DimX | ( | int | x | ) |
Set image x-dimension.
| int ngcdcsAO::DimY | ( | int | y | ) |
Set image y-dimension.
|
virtual |
Call-back at transition to not operational state.
Reimplemented from ngcbMOD.
|
virtual |
Call-back at transition to operational state.
Reimplemented from ngcbMOD.
| unsigned int ngcdcsAO::FrameCnt | ( | ) |
Return current frame counter.
| double ngcdcsAO::FrameRate | ( | ) |
Return actual frame rate (Hz)
| int ngcdcsAO::Gain | ( | int | quadrant, |
| int | value ) |
Set gain per quadrant.
| int ngcdcsAO::Gain | ( | int | value | ) |
Set gain.
| int ngcdcsAO::GetClk | ( | int | clkNum, |
| int | patNum, | ||
| char * | clkString ) |
Get clock state values.
| int ngcdcsAO::Input | ( | int | channel, |
| int | input ) |
Select AFE input (0=CCD, 1=AUX1, 2=AUX2)
| int ngcdcsAO::Master | ( | int | flag | ) |
Enable/disable synchronisation master flag.
|
virtual |
Align software state after reset.
Reimplemented from ngcbMOD.
| int ngcdcsAO::ResetAfe | ( | int | update = 1 | ) |
Reset AFE interface.
| int ngcdcsAO::ResetHead | ( | ) |
Reset AO camera.
| int ngcdcsAO::ResetOvrIllum | ( | ) |
Reset over-illumination detection.
| int ngcdcsAO::ResetPressure | ( | ) |
Reset pressure sensor.
| int ngcdcsAO::ResetRHum | ( | ) |
Reset humidity sensor.
| int ngcdcsAO::ResetSensors | ( | int | errFlag = 0 | ) |
Reset all sensors.
| int ngcdcsAO::ResetTemp | ( | ) |
Reset temperature sensor.
| int ngcdcsAO::Selftest | ( | ) |
Execute selftest.
| int ngcdcsAO::SensorError | ( | int | sensor | ) |
Return sensor error state.
| int ngcdcsAO::SerialLink | ( | int | flag | ) |
Enable/disable serial link to AO-system.
| int ngcdcsAO::SetupKey | ( | const char * | key, |
| const int * | idx, | ||
| const char * | value, | ||
| int * | status = NULL ) |
Setup.
| int ngcdcsAO::Shift | ( | int | clkNum, |
| int | shift, | ||
| int | edge, | ||
| int | force = 0 ) |
Clock-shifter.
| int ngcdcsAO::StatusKey | ( | const char * | key, |
| const int * | idx, | ||
| char * | value, | ||
| int * | status = NULL ) |
Status.
|
virtual |
Run next sensor update cycle.
| int ngcdcsAO::VoltageIPhase | ( | int | idx, |
| double | volt ) |
Set multi-level-clock voltage levels (I-phase)
| int ngcdcsAO::VoltageSPhase | ( | int | idx, |
| double | volt ) |
Set multi-level-clock voltage levels (S-phase)
|
virtual |
Write-to-address call-back for alignment.
Reimplemented from ngcbMOD.
| ngcdcs_afe_t ngcdcsAO::afe |
Analog Front End control (AFE)
| int ngcdcsAO::autoStart |
Automatic immediate start.
| ngcdcs_aocal_t ngcdcsAO::calib[4] |
High voltage calibration.
| ngcdcsCLDC* ngcdcsAO::cldc |
Assocoated clock- and bias-generator.
| int ngcdcsAO::dataLink |
Data-link to NGC-LLCU disabled/enabled flag.
| int ngcdcsAO::delay[42] |
42 delays (in ticks)
| int ngcdcsAO::expAbort |
Abort exposure on over-illumination.
| double ngcdcsAO::feDelay[8] |
Falling edge calibration delays (in ticks)
| int ngcdcsAO::gain |
Gain step.
| int ngcdcsAO::hvChan[4] |
High-voltage channel.
| int ngcdcsAO::hwRev |
Hardware revision (0=protoype, 1=reshaped)
| char ngcdcsAO::initFile[ngcdcsAO_MAX_INITFILES][256] |
Register initialization files.
| int ngcdcsAO::master |
Synchronisation master flag.
| int ngcdcsAO::maxGain |
Maximum gain.
| int ngcdcsAO::nx |
Image transfer x-dimension.
| int ngcdcsAO::ny |
Image transfer y-dimension.
| int ngcdcsAO::overIllumination |
Over-illumination flag.
| char ngcdcsAO::pixMask[256] |
Calibration pixel mask.
| ngcdcsMPL115A ngcdcsAO::pressure |
Pressure sensor (kPa)
| double ngcdcsAO::reDelay[8] |
Rising edge calibration delays (in ticks)
| char ngcdcsAO::resetFile[ngcdcsAO_MAX_INITFILES][256] |
Register reset files.
| ngcdcsSHTx_RHUM ngcdcsAO::rhum |
Relative humidity sensor (%)
| ngcdcsAO_RMP ngcdcsAO::rmp |
ALICE rgions, masks, patterns.
| int ngcdcsAO::rstStart |
Reset at start.
| int ngcdcsAO::sensEnabled |
Sensor interface disabled/enabled flag.
| int ngcdcsAO::sensPrefill |
Prefill sensor filter windows.
| double ngcdcsAO::sensSettleTime |
Sensor settling time.
| ngcdcsSEQ* ngcdcsAO::seq |
Associated sequencer.
| int ngcdcsAO::serialLink |
Serial link to AO-system disabled/enabled flag.
| int ngcdcsAO::shpWidth |
SHP-widht (ALICE)
| ngcdcsSHTx_TEMP ngcdcsAO::temp |
Temperature sensor (degC)
| double ngcdcsAO::viph[4] |
Multi-level-clock voltage levels I-phase.
| double ngcdcsAO::vsph[4] |
Multi-level-clock voltage levels S-phase.