From f0450fbf5e17c1795330fe4a35661fa1376b2a16 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Thu, 18 Oct 2012 09:07:55 +0000 Subject: [PATCH] included DAQ reg editing in configuremac function git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@299 951219d9-93cf-4727-9268-0efd64621fa3 --- .../gotthardDetectorServer/firmware_funcs.c | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c index c8d619c8d..63ea1b0ee 100755 --- a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c +++ b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c @@ -1225,7 +1225,7 @@ int initConfGain(int isettings,int val,int imod){ int configureMAC(int ipad,long long int macad,long long int servermacad,int ival, int adc){ - //setting adc mask + //setting adc mask and DAQ_REG int reg; int udpPacketSize=0x050E; int ipPacketSize=0x0522; @@ -1235,34 +1235,30 @@ int configureMAC(int ipad,long long int macad,long long int servermacad,int ival case 2: case 3: case 4: + bus_w(DAQ_REG,0x7f2a22); reg = (NCHAN*2)<