mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
client: update roi on updatedetector, (ctb, moench)moved nchans and databyte calculated to updatenumberofchannels and called for any update in roi, readoutflag or #samples changed (get should not update). ctb,moench server: roi fixed, . gotthard server: bug fix waiting to finish, ad9252 spi call fix. receiver: updated for moench and 10g
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
Path: slsDetectorPackage/slsDetectorServers/moenchDetectorServer
|
||||
URL: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
|
||||
Repository Root: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
|
||||
Repsitory UUID: 08bd2378f4956ea9a0b75381872854b3b129288f
|
||||
Revision: 9
|
||||
Repsitory UUID: 0765b330f116fd47b84c065d89789f4996573f23
|
||||
Revision: 13
|
||||
Branch: refactor
|
||||
Last Changed Author: Dhanya_Thattil
|
||||
Last Changed Rev: 4372
|
||||
Last Changed Date: 2019-03-05 09:35:29.000000002 +0100 ./RegisterDefs.h
|
||||
Last Changed Rev: 4381
|
||||
Last Changed Date: 2019-03-06 13:42:29.000000002 +0100 ./RegisterDefs.h
|
||||
|
@ -1,6 +1,6 @@
|
||||
#define GITURL "git@github.com:slsdetectorgroup/slsDetectorPackage.git"
|
||||
#define GITREPUUID "08bd2378f4956ea9a0b75381872854b3b129288f"
|
||||
#define GITREPUUID "0765b330f116fd47b84c065d89789f4996573f23"
|
||||
#define GITAUTH "Dhanya_Thattil"
|
||||
#define GITREV 0x4372
|
||||
#define GITDATE 0x20190305
|
||||
#define GITREV 0x4381
|
||||
#define GITDATE 0x20190306
|
||||
#define GITBRANCH "refactor"
|
||||
|
@ -533,12 +533,12 @@ void setupDetector() {
|
||||
setTiming(DEFAULT_TIMING_MODE);
|
||||
|
||||
// ensuring normal readout (only option for moench)
|
||||
bus_w(addr, bus_r(addr) & (~CONFIG_DSBL_ANLG_OTPT_MSK) & (~CONFIG_ENBLE_DGTL_OTPT_MSK));
|
||||
bus_w(CONFIG_REG, bus_r(CONFIG_REG) & (~CONFIG_DSBL_ANLG_OTPT_MSK) & (~CONFIG_ENBLE_DGTL_OTPT_MSK));
|
||||
|
||||
// clear roi
|
||||
{
|
||||
int ret = OK, retvalsize = 0;
|
||||
setROI(0, rois, &ret, &retvalsize);
|
||||
setROI(0, rois, &retvalsize, &ret);
|
||||
}
|
||||
}
|
||||
|
||||
@ -600,6 +600,7 @@ int getChannels() {
|
||||
}
|
||||
if (digitalEnable)
|
||||
nchans += NCHAN_DIGITAL;
|
||||
FILE_LOG(logINFO, ("\tNumber of Channels calculated: %d\n", nchans))
|
||||
return nchans;
|
||||
}
|
||||
|
||||
@ -657,13 +658,13 @@ ROI* setROI(int n, ROI arg[], int *retvalsize, int *ret) {
|
||||
int iroi = 0;
|
||||
// for every roi
|
||||
for (iroi = 0; iroi < n; ++iroi) {
|
||||
FILE_LOG(logINFO, ("\t%d: (%d, %d)\n", arg[iroi].xmin, arg[iroi].xmax));
|
||||
FILE_LOG(logINFO, ("\t%d: (%d, %d)\n", iroi, arg[iroi].xmin, arg[iroi].xmax));
|
||||
// swap if xmin > xmax
|
||||
if (arg[iroi].xmin > arg[iroi].xmax) {
|
||||
int temp = arg[iroi].xmin;
|
||||
arg[iroi].xmin = arg[iroi].xmax;
|
||||
arg[iroi].xmax = temp;
|
||||
FILE_LOG(logINFORED, ("\tCorrected %d: (%d, %d)\n", arg[iroi].xmin, arg[iroi].xmax));
|
||||
FILE_LOG(logINFORED, ("\tCorrected %d: (%d, %d)\n", iroi, arg[iroi].xmin, arg[iroi].xmax));
|
||||
}
|
||||
int ich = 0;
|
||||
// for the roi specified
|
||||
|
Reference in New Issue
Block a user