mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 07:19:07 +01:00
added gated clk for another pll for ctb
This commit is contained in:
@@ -1562,6 +1562,12 @@ class Detector {
|
||||
/** [CTB][Moench] */
|
||||
void setRUNClock(int value_in_MHz, Positions pos = {});
|
||||
|
||||
/** [CTB] */
|
||||
Result<int> getGatedClock(Positions pos = {}) const;
|
||||
|
||||
/** [CTB] */
|
||||
void setGatedClock(int value_in_MHz, Positions pos = {});
|
||||
|
||||
/** [CTB][Moench] in MHZ */
|
||||
Result<int> getSYNCClock(Positions pos = {}) const;
|
||||
|
||||
|
||||
@@ -1008,6 +1008,7 @@ class CmdProxy {
|
||||
{"asamples", &CmdProxy::asamples},
|
||||
{"adcclk", &CmdProxy::adcclk},
|
||||
{"runclk", &CmdProxy::runclk},
|
||||
{"gatedclk", &CmdProxy::gatedclk},
|
||||
{"syncclk", &CmdProxy::syncclk},
|
||||
{"adcpipeline", &CmdProxy::adcpipeline},
|
||||
{"v_limit", &CmdProxy::v_limit},
|
||||
@@ -2091,6 +2092,10 @@ class CmdProxy {
|
||||
INTEGER_COMMAND_VEC_ID(runclk, getRUNClock, setRUNClock, StringTo<int>,
|
||||
"[n_clk in MHz]\n\t[Ctb][Moench] Run clock in MHz.");
|
||||
|
||||
INTEGER_COMMAND_VEC_ID(gatedclk, getGatedClock, setGatedClock,
|
||||
StringTo<int>,
|
||||
"[n_clk in MHz]\n\t[Ctb] Gated clock in MHz.");
|
||||
|
||||
GET_COMMAND(syncclk, getSYNCClock,
|
||||
"[n_clk in MHz]\n\t[Ctb][Moench] Sync clock in MHz.");
|
||||
|
||||
|
||||
@@ -1950,6 +1950,15 @@ void Detector::setRUNClock(int value_in_MHz, Positions pos) {
|
||||
value_in_MHz);
|
||||
}
|
||||
|
||||
Result<int> Detector::getGatedClock(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getClockFrequency, pos, defs::GATED_CLOCK);
|
||||
}
|
||||
|
||||
void Detector::setGatedClock(int value_in_MHz, Positions pos) {
|
||||
pimpl->Parallel(&Module::setClockFrequency, pos, defs::GATED_CLOCK,
|
||||
value_in_MHz);
|
||||
}
|
||||
|
||||
Result<int> Detector::getSYNCClock(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getClockFrequency, pos, defs::SYNC_CLOCK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user