13#error This is a C++ include file and cannot be used from plain C
21#define ngcdcsAPD_ERR_PROTECTION 0x1
72 int VoltageClk(
int num,
int l,
double volt,
int rangeCheck = 1);
75 int VoltageDC(
int num,
double volt,
int rangeCheck = 1);
80 strcpy(
ErrMsg(),
"function not available");
87 strcpy(
ErrMsg(),
"function not available");
101 int Monitor(
int num,
int clkChan);
146 int TelDC(
int num,
double *volt);
149 int TelClk(
int num,
int l,
double *volt);
194 int SetupKey(
const char *key,
const int *idx,
const char *value,
198 int StatusKey(
const char *key,
const int *idx,
char *value,
Definition ngcbIFC.hpp:760
virtual int Success()
Return success.
Definition ngcbOBJ.cpp:68
virtual char * ErrMsg()
Error message.
Definition ngcbOBJ.cpp:66
int Snapshot()
Telemetry snapshot.
Definition ngcdcsAPD.cpp:913
void ClkMap(ngcdcs_clk_t *cv)
Clock channel mapping.
Definition ngcdcsAPD.cpp:558
void DcMap(ngcdcs_dc_t *dv)
Bias channel mapping.
Definition ngcdcsAPD.cpp:582
virtual ~ngcdcsAPD()
Destructor.
Definition ngcdcsAPD.cpp:45
int DiodeBias(double volt)
Diode bias dummy function.
Definition ngcdcsAPD.hpp:125
int OffsetDC(double volt)
Bias offset dummy function.
Definition ngcdcsAPD.hpp:110
void DefaultSetup(const char *keyWord=NULL)
Default setup.
Definition ngcdcsAPD.cpp:612
int TelClk(int num, ngcdcs_clkv_t *cv)
Telemetry for clock (dummy, all levels)
Definition ngcdcsAPD.hpp:152
double OffsetClk()
Return offset for clocks.
Definition ngcdcsAPD.hpp:131
int Monitor(int num, int clkChan)
Clock-monitor dummy function.
Definition ngcdcsAPD.cpp:697
int VideoOffset(double *volt)
Video offset dummy function.
Definition ngcdcsAPD.hpp:119
void ClearCalibration()
Clear calibration.
Definition ngcdcsAPD.hpp:188
char * VStatusString()
Get voltage status string.
Definition ngcdcsAPD.hpp:98
int VStatus(int *s)
Get voltage HW-status.
Definition ngcdcsAPD.cpp:372
int Protection(int flag)
Enable/disable protection circuit.
Definition ngcdcsAPD.hpp:173
int Enable(int check=1)
Call-back at transition to operational state.
Definition ngcdcsAPD.cpp:95
int TelIntern(int sel=-1)
Update internal telemetry.
Definition ngcdcsAPD.cpp:876
ngcdcsAPD(const ngcb_route_t &r, int nb)
Constructor with route and number of biases.
Definition ngcdcsAPD.cpp:30
double OffsetDC()
Return offset for DC-biases.
Definition ngcdcsAPD.hpp:134
int TelDC(int num, double *volt)
Telemetry for DC-bias.
Definition ngcdcsAPD.cpp:851
int SetupKey(const char *key, const int *idx, const char *value, int *status=NULL)
Setup.
Definition ngcdcsAPD.cpp:1022
int Calibrate(int noSetup=0)
Calibrate.
Definition ngcdcsAPD.hpp:182
int Zero()
Set all voltages to zero.
Definition ngcdcsAPD.cpp:362
int OutputDisable()
Disable output.
Definition ngcdcsAPD.cpp:322
ngcdcs_apd_t chan[2]
APD channels.
Definition ngcdcsAPD.hpp:42
double TelCurrent(int chan)
Return value of last current-telemetry.
Definition ngcdcsAPD.cpp:864
int VoltageRegDC(int num, int value, int rangeCheck=1)
Direct bias register setup (not applicable)
Definition ngcdcsAPD.hpp:78
int OutputEnable()
Enable output.
Definition ngcdcsAPD.cpp:216
int Calibrated()
Check if calibration has been done.
Definition ngcdcsAPD.hpp:191
int PreampOffset(double volt)
Preamplifier offset/supply.
Definition ngcdcsAPD.cpp:1017
int TelClk(int num, int l, double *volt)
Telemetry for clock level (dummy)
Definition ngcdcsAPD.cpp:839
int VoltageRegClk(int num, int l, int value, int rangeCheck=1)
Direct clock register setup (not applicable)
Definition ngcdcsAPD.hpp:85
int Disable()
Disable call back.
Definition ngcdcsAPD.cpp:201
int VoltageClk(int num, int l, double volt, int rangeCheck=1)
Clock setup.
Definition ngcdcsAPD.cpp:716
int VoltageDC(int num, double volt, int rangeCheck=1)
Bias setup.
Definition ngcdcsAPD.cpp:722
int StatusKey(const char *key, const int *idx, char *value, int *status=NULL)
Status.
Definition ngcdcsAPD.cpp:1038
int OffsetClk(double volt)
Clock offset dummy function.
Definition ngcdcsAPD.hpp:104
int protectionOn
Flag indicating whether protection is enabled.
Definition ngcdcsCLDC.hpp:150
int TelChan()
Return actual telemetry channel.
Definition ngcdcsCldcTel.cpp:81
ngcdcsCLDC(const ngcb_route_t &r, int nc, int nb)
Constructor with route, number of clocks and number of biases.
Definition ngcdcsCLDC.cpp:29
#define ngcbCLDC_MAX_DC
Definition ngcbAddr.h:334
#define ngcbMOD_ERR
Definition ngcbOBJ.hpp:23
#define USE(x)
Definition ngcb.h:29
#define ngcdcsCLDC_DCLK
Definition ngcdcsCLDC.hpp:39
Definition ngcbIFC.hpp:78
Definition ngcdcsAPD.hpp:26
int feedback
Definition ngcdcsAPD.hpp:28
ngcdcs_apd_t()
Constructor.
Definition ngcdcsAPD.hpp:32
int fault
Definition ngcdcsAPD.hpp:29
int enabled
Definition ngcdcsAPD.hpp:27
Definition ngcdcsCLDC.hpp:104
Definition ngcdcsCLDC.hpp:115
double volt[ngcdcsCLDC_DCLK]
Definition ngcdcsCLDC.hpp:116
Definition ngcdcsCLDC.hpp:64