mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
setbit and clear bit moved to slsdet, readreg, writereg,setbit,clearbit in multi cannot give -1, instead api gives error if checked
This commit is contained in:
@ -878,6 +878,27 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
|
||||
*/
|
||||
int readRegister(int addr);
|
||||
|
||||
/**
|
||||
sets a bit in a register
|
||||
\param addr address
|
||||
\param n nth bit ranging from 0 to 31
|
||||
\returns current register value
|
||||
|
||||
DO NOT USE!!! ONLY EXPERT USER!!!
|
||||
*/
|
||||
int setBit(int addr, int n);
|
||||
|
||||
|
||||
/**
|
||||
clear a bit in a register
|
||||
\param addr address
|
||||
\param n nth bit ranging from 0 to 31
|
||||
\returns current register value
|
||||
|
||||
DO NOT USE!!! ONLY EXPERT USER!!!
|
||||
*/
|
||||
int clearBit(int addr, int n);
|
||||
|
||||
/**
|
||||
set dacs value
|
||||
\param val value (in V)
|
||||
|
Reference in New Issue
Block a user