mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
servers, setupdetector
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@588 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -13,6 +13,11 @@ OBJS = $(SRC_CLNT:.cpp=.o)
|
||||
|
||||
all: clean $(PROGS)
|
||||
|
||||
pc: clean pccompile $(PROGS)
|
||||
|
||||
pccompile:
|
||||
CC := gcc
|
||||
|
||||
boot: $(OBJS)
|
||||
|
||||
$(PROGS):
|
||||
|
@ -36,7 +36,19 @@ int nModBoard;
|
||||
extern int dataBytes;
|
||||
|
||||
|
||||
int initializeDetector(){
|
||||
/** temporary */
|
||||
u_int32_t CSP0BASE;
|
||||
int mapCSP0(void) {
|
||||
CSP0BASE = (u_int32_t)malloc(0xFFFFFFF);
|
||||
printf("memory allocated\n");
|
||||
printf("CSPOBASE is 0x%x \n",CSP0BASE);
|
||||
printf("CSPOBASE=from %08x to %x\n",CSP0BASE,CSP0BASE+0xFFFFFFF);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int initializeDetectorStructure(){
|
||||
|
||||
int imod;
|
||||
int n=getNModBoard(X)*getNModBoard(Y);
|
||||
@ -82,6 +94,31 @@ int initializeDetector(){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int setupDetector(){
|
||||
//testFpga();
|
||||
//testRAM();
|
||||
|
||||
//setSettings(GET_SETTINGS,-1);
|
||||
//setFrames(1);
|
||||
//setTrains(1);
|
||||
//setExposureTime(1e6);
|
||||
//setPeriod(1e9);
|
||||
//setDelay(0);
|
||||
//setGates(0);
|
||||
|
||||
//setTiming(GET_EXTERNAL_COMMUNICATION_MODE);
|
||||
//setMaster(GET_MASTER);
|
||||
//setSynchronization(GET_SYNCHRONIZATION_MODE);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int setNMod(int nm, enum dimension dim){
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user