mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
Changed everywhere from float to double, even mythenDetectorServer and the standalone files
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@206 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -58,8 +58,8 @@ int bus_w(int addr,int val);
|
||||
//read register
|
||||
int bus_r(int addr);
|
||||
|
||||
float setDAC(enum dacIndex ind, float val, int imod);
|
||||
float getADC(enum dacIndex ind, int imod);
|
||||
double setDAC(enum dacIndex ind, double val, int imod);
|
||||
double getADC(enum dacIndex ind, int imod);
|
||||
|
||||
int setChannel(sls_detector_channel myChan);
|
||||
int getChannel(sls_detector_channel *myChan);
|
||||
|
@ -776,13 +776,13 @@ int read_register(int file_des) {
|
||||
|
||||
int set_dac(int file_des) {
|
||||
|
||||
float retval;
|
||||
double retval;
|
||||
int ret=OK;
|
||||
int arg[2];
|
||||
enum dacIndex ind;
|
||||
int imod;
|
||||
int n;
|
||||
float val;
|
||||
double val;
|
||||
|
||||
sprintf(mess,"Can't set DAC\n");
|
||||
|
||||
@ -880,7 +880,7 @@ int set_dac(int file_des) {
|
||||
|
||||
int get_adc(int file_des) {
|
||||
|
||||
float retval;
|
||||
double retval;
|
||||
int ret=OK;
|
||||
int arg[2];
|
||||
enum dacIndex ind;
|
||||
@ -1239,8 +1239,8 @@ int set_module(int file_des) {
|
||||
sls_detector_module myModule;
|
||||
int *myChip=malloc(getNumberOfChipsPerModule()*sizeof(int));
|
||||
int *myChan=malloc(getNumberOfChannelsPerModule()*sizeof(int));
|
||||
float *myDac=malloc(getNumberOfDACsPerModule()*sizeof(int));
|
||||
float *myAdc=malloc(getNumberOfADCsPerModule()*sizeof(int));
|
||||
double *myDac=malloc(getNumberOfDACsPerModule()*sizeof(int));
|
||||
double *myAdc=malloc(getNumberOfADCsPerModule()*sizeof(int));
|
||||
int retval, n;
|
||||
int ret=OK;
|
||||
int dr;//, ow;
|
||||
@ -1343,8 +1343,8 @@ int get_module(int file_des) {
|
||||
sls_detector_module myModule;
|
||||
int *myChip=malloc(getNumberOfChipsPerModule()*sizeof(int));
|
||||
int *myChan=malloc(getNumberOfChannelsPerModule()*sizeof(int));
|
||||
float *myDac=malloc(getNumberOfDACsPerModule()*sizeof(int));
|
||||
float *myAdc=malloc(getNumberOfADCsPerModule()*sizeof(int));
|
||||
double *myDac=malloc(getNumberOfDACsPerModule()*sizeof(int));
|
||||
double *myAdc=malloc(getNumberOfADCsPerModule()*sizeof(int));
|
||||
|
||||
|
||||
if (myDac)
|
||||
|
Reference in New Issue
Block a user