This commit is contained in:
2019-08-21 12:45:08 +02:00
parent 62c4bfab64
commit 4b0fb5029f
8 changed files with 48 additions and 39 deletions

View File

@@ -4,6 +4,8 @@
#include "multiSlsDetector.h"
#include "slsDetector.h"
#include "sls_detector_defs.h"
#include "detectorData.h"
namespace sls {
using defs = slsDetectorDefs;
@@ -82,6 +84,20 @@ void Detector::setSettings(defs::detectorSettings value, Positions pos) {
pimpl->Parallel(&slsDetector::setSettings, pos, value);
}
// Callback
void Detector::registerAcquisitionFinishedCallback(void (*func)(double, int,
void *),
void *pArg) {
pimpl->registerAcquisitionFinishedCallback(func, pArg);
}
void Detector::registerDataCallback(void (*func)(detectorData *, uint64_t,
uint32_t, void *),
void *pArg) {
pimpl->registerDataCallback(func, pArg);
}
// Acquisition Parameters
Result<int64_t> Detector::getNumberOfFrames() const {