mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
jungfrau server: chip configuration only for chip v 1.1
This commit is contained in:
@ -387,6 +387,7 @@ void setupDetector() {
|
||||
for (int i = 0; i < NUM_CLOCKS; ++i) {
|
||||
clkPhase[i] = 0;
|
||||
}
|
||||
chipConfigured = 0;
|
||||
#ifdef VIRTUAL
|
||||
sharedMemory_setStatus(IDLE);
|
||||
#endif
|
||||
@ -1440,9 +1441,12 @@ int isChipConfigured() {
|
||||
}
|
||||
|
||||
void configureChip() {
|
||||
LOG(logINFOBLUE, ("Configuring chip\n"));
|
||||
bus_w(CONFIG_V11_REG, bus_r(CONFIG_V11_REG) & CONFIG_V11_WR_CHIP_CNFG_MSK);
|
||||
chipConfigured = 1;
|
||||
// only for chipv1.1
|
||||
if (chipVersion == 11) {
|
||||
LOG(logINFOBLUE, ("Configuring chip\n"));
|
||||
bus_w(CONFIG_V11_REG, bus_r(CONFIG_V11_REG) & CONFIG_V11_WR_CHIP_CNFG_MSK);
|
||||
chipConfigured = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include "sls/sls_detector_defs.h"
|
||||
|
||||
#define MIN_REQRD_VRSN_T_RD_API 0x171220
|
||||
#define REQRD_FRMWRE_VRSN_BOARD2 0x210621 // 1.0 pcb
|
||||
#define REQRD_FRMWRE_VRSN 0x210622 // 2.0 pcb
|
||||
#define REQRD_FRMWRE_VRSN_BOARD2 0x210621 // 1.0 pcb (version = 010)
|
||||
#define REQRD_FRMWRE_VRSN 0x210622 // 2.0 pcb (version = 011)
|
||||
|
||||
#define CTRL_SRVR_INIT_TIME_US (300 * 1000)
|
||||
|
||||
|
@ -1695,7 +1695,8 @@ int acquire(int blocking, int file_des) {
|
||||
// only set
|
||||
if (Server_VerifyLock() == OK) {
|
||||
#ifdef JUNGFRAUD
|
||||
if (!isChipConfigured()) {
|
||||
// chipv1.1 has to be configured before acquisition
|
||||
if (getChipVersion() == 11 && !isChipConfigured()) {
|
||||
ret = FAIL;
|
||||
strcpy(mess,
|
||||
"Could not start acquisition. Chip is not configured.\n");
|
||||
|
Reference in New Issue
Block a user