mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
eiger server compiles, client side of interface to do
This commit is contained in:
@ -448,7 +448,7 @@ void setupDetector() {
|
||||
|
||||
bus_w(DAQ_REG, 0x0); /* Only once at server startup */
|
||||
|
||||
setSpeed(CLOCK_DIVIDER, HALF_SPEED);
|
||||
setSpeed(HALF_SPEED);
|
||||
cleanFifos();
|
||||
resetCore();
|
||||
|
||||
@ -465,7 +465,7 @@ void setupDetector() {
|
||||
setTimer(DELAY_AFTER_TRIGGER, DEFAULT_DELAY);
|
||||
setTimer(STORAGE_CELL_NUMBER, DEFAULT_NUM_STRG_CLLS);
|
||||
selectStoragecellStart(DEFAULT_STRG_CLL_STRT);
|
||||
/*setSpeed(CLOCK_DIVIDER, HALF_SPEED); depends if all the previous stuff works*/
|
||||
/*setSpeed(HALF_SPEED); depends if all the previous stuff works*/
|
||||
setTiming(DEFAULT_TIMING_MODE);
|
||||
setHighVoltage(DEFAULT_HIGH_VOLTAGE);
|
||||
|
||||
@ -611,10 +611,7 @@ int setDynamicRange(int dr){
|
||||
|
||||
/* parameters - readout */
|
||||
|
||||
int setSpeed(enum speedVariable arg, int val) {
|
||||
|
||||
if (arg != CLOCK_DIVIDER)
|
||||
return -1;
|
||||
enum speedVariable setSpeed(int val) {
|
||||
|
||||
// setting
|
||||
if(val >= 0) {
|
||||
@ -1620,7 +1617,7 @@ void readFrame(int *ret, char *mess){
|
||||
} else {
|
||||
*ret = (int)FINISHED;
|
||||
sprintf(mess,"acquisition successfully finished\n");
|
||||
printf("%s",mess);
|
||||
cprintf(GREEN, "%s",mess);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user