mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
Moench dacs defaults (#788)
* merge fix from 7.0.2: new jungfrau fw versions, incremented binary, hdf5 and json versions * moench: changed dac names and default values to old moench values * moench: remove interface clk polarity at start up * moench: default speed is half speed, default values for adc offset and adc phase for different speeds (only half speed confirmed), adc vref voltage to 2.0 like G1 * moench: connected adc pipeline to client * moench: receiver- default frames per file is 100k and discard partial frames as default * moench binary in * using tostring in gui for dacs * moved frame discard policy as a parameter to be configured with a default depending on detector * moench: 300 degrees for adc phase in full speed
This commit is contained in:
@ -2370,14 +2370,6 @@ void Module::setNumberOfAnalogSamples(int value) {
|
||||
}
|
||||
}
|
||||
|
||||
int Module::getADCPipeline() const {
|
||||
return sendToDetector<int>(F_GET_ADC_PIPELINE);
|
||||
}
|
||||
|
||||
void Module::setADCPipeline(int value) {
|
||||
sendToDetector(F_SET_ADC_PIPELINE, value, nullptr);
|
||||
}
|
||||
|
||||
uint32_t Module::getADCEnableMask() const {
|
||||
return sendToDetector<uint32_t>(F_GET_ADC_ENABLE_MASK);
|
||||
}
|
||||
@ -2630,6 +2622,8 @@ void Module::setPatternBitMask(uint64_t mask) {
|
||||
|
||||
void Module::startPattern() { sendToDetector(F_START_PATTERN); }
|
||||
|
||||
// Json Header specific
|
||||
|
||||
std::map<std::string, std::string> Module::getAdditionalJsonHeader() const {
|
||||
// TODO, refactor this function with a more robust sending.
|
||||
// Now assuming whitespace separated key value
|
||||
@ -2718,6 +2712,15 @@ void Module::setAdditionalJsonParameter(const std::string &key,
|
||||
}
|
||||
|
||||
// Advanced
|
||||
|
||||
int Module::getADCPipeline() const {
|
||||
return sendToDetector<int>(F_GET_ADC_PIPELINE);
|
||||
}
|
||||
|
||||
void Module::setADCPipeline(int value) {
|
||||
sendToDetector(F_SET_ADC_PIPELINE, value, nullptr);
|
||||
}
|
||||
|
||||
void Module::programFPGA(std::vector<char> buffer,
|
||||
const bool forceDeleteNormalFile) {
|
||||
switch (shm()->detType) {
|
||||
|
Reference in New Issue
Block a user