mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
changed gain mode. dynamic_gain_mode to dynamic only. binaries in
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1103,7 +1103,7 @@ enum gainMode getGainMode() {
|
||||
|
||||
// dynamic gain, when nothing is set
|
||||
if (retval_force == 0 && retval_fix == 0 && retval_cmp_rst == 0) {
|
||||
return DYNAMIC_GAIN_MODE;
|
||||
return DYNAMIC;
|
||||
}
|
||||
|
||||
switch (retval_force) {
|
||||
@ -1137,7 +1137,7 @@ void setGainMode(enum gainMode mode) {
|
||||
uint32_t value = bus_r(addr);
|
||||
|
||||
switch (mode) {
|
||||
case DYNAMIC_GAIN_MODE:
|
||||
case DYNAMIC:
|
||||
value &= ~(DAQ_GAIN_MODE_MASK);
|
||||
bus_w(addr, value);
|
||||
LOG(logINFO,
|
||||
|
@ -98,7 +98,7 @@ enum CLKINDEX { RUN_CLK, ADC_CLK, DBIT_CLK, NUM_CLOCKS };
|
||||
#define DEFAULT_HIGH_VOLTAGE (0)
|
||||
#define DEFAULT_TIMING_MODE (AUTO_TIMING)
|
||||
#define DEFAULT_SETTINGS (GAIN0)
|
||||
#define DEFAULT_GAINMODE (DYNAMIC_GAIN_MODE)
|
||||
#define DEFAULT_GAINMODE (DYNAMIC)
|
||||
#define DEFAULT_TX_UDP_PORT (0x7e9a)
|
||||
#define DEFAULT_TMP_THRSHLD (65 * 1000) // milli degree Celsius
|
||||
#define DEFAULT_NUM_STRG_CLLS (0)
|
||||
|
Binary file not shown.
@ -8560,7 +8560,7 @@ int set_default_dac(int file_des) {
|
||||
int get_gain_mode(int file_des) {
|
||||
ret = OK;
|
||||
memset(mess, 0, sizeof(mess));
|
||||
enum gainMode retval = DYNAMIC_GAIN_MODE;
|
||||
enum gainMode retval = DYNAMIC;
|
||||
LOG(logDEBUG1, ("Getting gain mode\n"));
|
||||
|
||||
#ifndef JUNGFRAUD
|
||||
@ -8593,7 +8593,7 @@ int set_gain_mode(int file_des) {
|
||||
// only set
|
||||
if (Server_VerifyLock() == OK) {
|
||||
switch (gainmode) {
|
||||
case DYNAMIC_GAIN_MODE:
|
||||
case DYNAMIC:
|
||||
case FORCE_SWITCH_G1:
|
||||
case FORCE_SWITCH_G2:
|
||||
case FIX_G1:
|
||||
|
Reference in New Issue
Block a user