mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
added enum left right top bottom
This commit is contained in:
@ -2051,15 +2051,11 @@ int getActivate(int *retval) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
int setDataStream(enum portPositiion port, int enable) {
|
||||
int setDataStream(enum portPosition port, int enable) {
|
||||
if (enable < 0) {
|
||||
LOG(logERROR, ("Invalid setDataStream enable argument: %d\n", enable));
|
||||
return FAIL;
|
||||
}
|
||||
if (left < 0) {
|
||||
LOG(logERROR, ("Invalid setDataStream port argument: %d\n", port));
|
||||
return FAIL;
|
||||
}
|
||||
#ifdef VIRTUAL
|
||||
if (port == LEFT) {
|
||||
eiger_virtual_left_datastream = enable;
|
||||
@ -2074,7 +2070,7 @@ int setDataStream(enum portPositiion port, int enable) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
int getDataStream(enum portPositiion port, int *retval) {
|
||||
int getDataStream(enum portPosition port, int *retval) {
|
||||
#ifdef VIRTUAL
|
||||
if (port == LEFT) {
|
||||
*retval = eiger_virtual_left_datastream;
|
||||
|
@ -474,8 +474,8 @@ int getAllTrimbits();
|
||||
int getBebFPGATemp();
|
||||
int setActivate(int enable);
|
||||
int getActivate(int *retval);
|
||||
int getDataStream(enum portPositiion port, int *retval);
|
||||
int setDataStream(enum portPositiion port, int enable);
|
||||
int getDataStream(enum portPosition port, int *retval);
|
||||
int setDataStream(enum portPosition port, int enable);
|
||||
|
||||
// gotthard specific - adc phase
|
||||
#elif GOTTHARDD
|
||||
|
@ -8298,7 +8298,7 @@ int set_datastream(int file_des) {
|
||||
#else
|
||||
// only set
|
||||
if (Server_VerifyLock() == OK) {
|
||||
enum portPosition port = static_cast<portPosition>(args[0]);
|
||||
enum portPosition port = args[0];
|
||||
int enable = args[1];
|
||||
char msg[256];
|
||||
memset(msg, 0, sizeof(msg));
|
||||
|
Reference in New Issue
Block a user