DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::hermesmodules::python Namespace Reference

Functions

void register_hermescorecontroller (py::module &m)
 
 PYBIND11_MODULE (_daq_hermesmodules_py, m)
 

Function Documentation

◆ PYBIND11_MODULE()

dunedaq::hermesmodules::python::PYBIND11_MODULE ( _daq_hermesmodules_py ,
m  )

Definition at line 19 of file module.cpp.

20{
21
22 m.doc() = "C++ implementation of the hermesmodules modules";
23
24 // You'd want to change renameme to the name of a function which
25 // you'd like to have a python binding to
26
28}
void register_hermescorecontroller(py::module &m)

◆ register_hermescorecontroller()

void dunedaq::hermesmodules::python::register_hermescorecontroller ( py::module & m)

Definition at line 24 of file hermescorecontroller.cpp.

25{
26 py::class_<HermesCoreController>(m, "HermesCoreController")
27 .def(py::init<uhal::HwInterface>())
28 // .def("load_hw_info", &HermesCoreController::load_hw_info)
29 .def("sel_tx_mux", &HermesCoreController::sel_tx_mux)
30 .def("sel_tx_mux_buf", &HermesCoreController::sel_tx_mux_buf)
31 .def("reset", &HermesCoreController::reset)
32 .def("is_link_in_error", &HermesCoreController::is_link_in_error, "link"_a, "do_throw"_a = false)
33 .def("enable", &HermesCoreController::enable)
34 .def("config_mux", &HermesCoreController::config_mux)
35 .def("config_udp", &HermesCoreController::config_udp)
36 .def("config_fake_src", &HermesCoreController::config_fake_src)
37
38 //.def("read_link_stats", &HermesCoreController::read_link_stats) //opmon
39
40 // .def("get_attribute",
41 // py::overload_cast<const std::string&>
42 // (&HDF5RawDataFile::get_attribute<std::string>),
43 // "Get attribute")
44 ;
45}