mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-07 14:58:41 +01:00
Read and write SPI for Xilinx CTB (#1381)
All checks were successful
Build on RHEL9 / build (push) Successful in 3m25s
Build on RHEL8 / build (push) Successful in 4m37s
Run Simulator Tests on local RHEL9 / build (push) Successful in 14m42s
Build on local RHEL9 / build (push) Successful in 1m26s
Run Simulator Tests on local RHEL8 / build (push) Successful in 17m0s
Build on local RHEL8 / build (push) Successful in 3m32s
All checks were successful
Build on RHEL9 / build (push) Successful in 3m25s
Build on RHEL8 / build (push) Successful in 4m37s
Run Simulator Tests on local RHEL9 / build (push) Successful in 14m42s
Build on local RHEL9 / build (push) Successful in 1m26s
Run Simulator Tests on local RHEL8 / build (push) Successful in 17m0s
Build on local RHEL8 / build (push) Successful in 3m32s
-readSpi and writeSpi in C++ and Python API
This commit is contained in:
@@ -2198,5 +2198,17 @@ void init_det(py::module &m) {
|
||||
(Result<sls::ns>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getMeasurementTime,
|
||||
py::arg() = Positions{});
|
||||
CppDetectorApi.def("readSpi",
|
||||
(Result<std::vector<uint8_t>>(Detector::*)(
|
||||
int, int, int, sls::Positions) const) &
|
||||
Detector::readSpi,
|
||||
py::arg(), py::arg(), py::arg(),
|
||||
py::arg() = Positions{});
|
||||
CppDetectorApi.def(
|
||||
"writeSpi",
|
||||
(void (Detector::*)(int, int, const std::vector<uint8_t> &,
|
||||
sls::Positions)) &
|
||||
Detector::writeSpi,
|
||||
py::arg(), py::arg(), py::arg(), py::arg() = Positions{});
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user