mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 14:38:14 +02:00
adc sync val if used with gotthard module
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@563 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
95b76ffa9a
commit
a4d99004f7
@ -257,15 +257,20 @@ int setPhaseShiftOnce(){
|
|||||||
|
|
||||||
|
|
||||||
int cleanFifo(){
|
int cleanFifo(){
|
||||||
u_int32_t addr, reg, val;
|
u_int32_t addr, reg, val, adc_sync;
|
||||||
printf("Cleaning FIFO\n");
|
printf("Cleaning FIFO\n");
|
||||||
addr=ADC_SYNC_REG;
|
addr=ADC_SYNC_REG;
|
||||||
|
|
||||||
|
if(withGotthard)
|
||||||
|
adc_sync = GOTTHARD_ADCSYNC_VAL;
|
||||||
|
else
|
||||||
|
adc_sync = ADCSYNC_VAL;
|
||||||
|
|
||||||
|
|
||||||
reg = bus_r(addr) & CLEAN_FIFO_MASK;
|
reg = bus_r(addr) & CLEAN_FIFO_MASK;
|
||||||
|
|
||||||
//only for start up
|
//only for start up
|
||||||
if(!reg) reg = ADCSYNC_VAL;
|
if(!reg) reg = adc_sync;
|
||||||
|
|
||||||
// 88 3 02111
|
// 88 3 02111
|
||||||
if (ROI_flag==0) {
|
if (ROI_flag==0) {
|
||||||
|
Binary file not shown.
@ -40,7 +40,7 @@
|
|||||||
#define ALLMOD 0xffff
|
#define ALLMOD 0xffff
|
||||||
#define ALLFIFO 0xffff
|
#define ALLFIFO 0xffff
|
||||||
|
|
||||||
|
#define GOTTHARD_ADCSYNC_VAL 0x32214
|
||||||
#define ADCSYNC_VAL 0x02111
|
#define ADCSYNC_VAL 0x02111
|
||||||
#define TOKEN_RESTART_DELAY 0x88000000
|
#define TOKEN_RESTART_DELAY 0x88000000
|
||||||
#define TOKEN_RESTART_DELAY_ROI 0x1b000000
|
#define TOKEN_RESTART_DELAY_ROI 0x1b000000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user