mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00
m3, individual chip index back in for hw 1.2, need the linux drivers for chipdac0-9 (#685)
This commit is contained in:
parent
403989e2f8
commit
a74c9498e2
@ -2393,8 +2393,7 @@ std::string CmdProxy::ConfigureADC(int action) {
|
|||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
os << cmd << ' ';
|
os << cmd << ' ';
|
||||||
if (action == defs::HELP_ACTION) {
|
if (action == defs::HELP_ACTION) {
|
||||||
os << "[chip index 0-9 [setting individual chips not yet implemented], "
|
os << "[chip index 0-9, -1 for all] [adc index 0-31, -1 for all] [7 "
|
||||||
"-1 for all] [adc index 0-31, -1 for all] [7 "
|
|
||||||
"bit configuration value in hex]\n\t[Gotthard2] Sets "
|
"bit configuration value in hex]\n\t[Gotthard2] Sets "
|
||||||
"configuration for specific chip and adc, but configures 1 chip "
|
"configuration for specific chip and adc, but configures 1 chip "
|
||||||
"(all adcs for that chip) at a time."
|
"(all adcs for that chip) at a time."
|
||||||
|
@ -719,13 +719,12 @@ TEST_CASE("confadc", "[.cmd]") {
|
|||||||
REQUIRE(oss.str() == "confadc 0x11\n");
|
REQUIRE(oss.str() == "confadc 0x11\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// doesnt exist in hw yet to set individual chips (no file)
|
|
||||||
for (int i = 0; i != ndet; ++i) {
|
for (int i = 0; i != ndet; ++i) {
|
||||||
// for (int j = 0; j != nchip; ++j) {
|
for (int j = 0; j != nchip; ++j) {
|
||||||
for (int k = 0; k != nadc; ++k) {
|
for (int k = 0; k != nadc; ++k) {
|
||||||
det.setADCConfiguration(-1, k, prev_val[i][0][k], {i});
|
det.setADCConfiguration(-1, k, prev_val[i][j][k], {i});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
REQUIRE_THROWS(proxy.Call("confadc", {}, -1, GET));
|
REQUIRE_THROWS(proxy.Call("confadc", {}, -1, GET));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user