mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
@ -210,6 +210,8 @@
|
||||
|
||||
#define EXT_SIGNAL_OFST (0)
|
||||
#define EXT_SIGNAL_MSK (0x00000001 << EXT_SIGNAL_OFST)
|
||||
#define EXT_SYNC_OFST (4)
|
||||
#define EXT_SYNC_MSK (0x00000001 << EXT_SYNC_OFST)
|
||||
|
||||
/* Control Register */
|
||||
#define CONTROL_REG (0x4F << MEM_MAP_SHIFT)
|
||||
|
Binary file not shown.
@ -1380,6 +1380,19 @@ int isMaster(int *retval) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
int getSynchronization() {
|
||||
return ((bus_r(EXT_SIGNAL_REG) & EXT_SYNC_MSK) >> EXT_SYNC_OFST);
|
||||
}
|
||||
|
||||
void setSynchronization(int enable) {
|
||||
LOG(logINFOBLUE,
|
||||
("%s Synchronization\n", (enable ? "Enabling" : "Disabling")));
|
||||
if (enable)
|
||||
bus_w(EXT_SIGNAL_REG, bus_r(EXT_SIGNAL_REG) | EXT_SYNC_MSK);
|
||||
else
|
||||
bus_w(EXT_SIGNAL_REG, bus_r(EXT_SIGNAL_REG) & ~EXT_SYNC_MSK);
|
||||
}
|
||||
|
||||
void setTiming(enum timingMode arg) {
|
||||
switch (arg) {
|
||||
case AUTO_TIMING:
|
||||
|
Reference in New Issue
Block a user