mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 02:31:30 +01:00
almost done with ctb update, need to do slow adcs, split to moench and ctb
This commit is contained in:
@@ -125,6 +125,13 @@
|
||||
#define AD9257_VREF_1_6_VAL ((0x3 << AD9257_VREF_OFST) & AD9257_VREF_MSK)
|
||||
#define AD9257_VREF_2_0_VAL ((0x4 << AD9257_VREF_OFST) & AD9257_VREF_MSK)
|
||||
|
||||
int getMaxValidVref() {
|
||||
return 0x4;
|
||||
}
|
||||
|
||||
void setVrefVoltage(int val) {
|
||||
setAdc9257(AD9257_VREF_REG, val);
|
||||
}
|
||||
|
||||
void setAdc9257(int addr, int val) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user