|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <CardControllerWrapper.hpp>
Public Types | |
| using | data_t = nlohmann::json |
| Public Types inherited from dunedaq::opmonlib::MonitorableObject | |
| using | NodePtr = std::weak_ptr<MonitorableObject> |
| using | NewNodePtr = std::shared_ptr<MonitorableObject> |
| using | ElementId = std::string |
Public Member Functions | |
| CardControllerWrapper (uint32_t device_id, const appmodel::FelixInterface *flx_cfg, const std::vector< const appmodel::FelixDataSender * > &flx_senders) | |
| CardControllerWrapper Constructor. | |
| ~CardControllerWrapper () | |
| CardControllerWrapper (const CardControllerWrapper &)=delete | |
| Not copy-constructible. | |
| CardControllerWrapper & | operator= (const CardControllerWrapper &)=delete |
| Not copy-assignable. | |
| CardControllerWrapper (CardControllerWrapper &&)=delete | |
| Not move-constructible. | |
| CardControllerWrapper & | operator= (CardControllerWrapper &&)=delete |
| Not move-assignable. | |
| void | init () |
| void | configure (uint16_t super_chunk_size, bool emu_fanout) |
| uint64_t | get_register (std::string key) |
| void | set_register (std::string key, uint64_t value) |
| uint64_t | get_bitfield (std::string key) |
| void | set_bitfield (std::string key, uint64_t value) |
| void | gth_reset () |
| void | check_alignment (uint64_t aligned) |
| Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject (const MonitorableObject &)=delete | |
| MonitorableObject & | operator= (const MonitorableObject &)=delete |
| MonitorableObject (MonitorableObject &&)=delete | |
| MonitorableObject & | operator= (MonitorableObject &&)=delete |
| virtual | ~MonitorableObject ()=default |
| auto | get_opmon_id () const noexcept |
| auto | get_opmon_level () const noexcept |
Protected Member Functions | |
| void | generate_opmon_data () override |
| Protected Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject ()=default | |
| void | register_node (ElementId name, NewNodePtr) |
| void | publish (google::protobuf::Message &&, CustomOrigin &&co={}, OpMonLevel l=to_level(EntryOpMonLevel::kDefault)) const noexcept |
Private Types | |
| using | UniqueFlxCard = std::unique_ptr<FlxCard> |
Private Member Functions | |
| void | open_card () |
| void | close_card () |
Private Attributes | |
| uint32_t | m_device_id |
| const appmodel::FelixInterface * | m_flx_cfg |
| const std::vector< const appmodel::FelixDataSender * > | m_flx_senders |
| UniqueFlxCard | m_flx_card |
| std::mutex | m_card_mutex |
Additional Inherited Members | |
| Static Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| static bool | publishable_metric (OpMonLevel entry, OpMonLevel system) noexcept |
Definition at line 27 of file CardControllerWrapper.hpp.
| using dunedaq::flxlibs::CardControllerWrapper::data_t = nlohmann::json |
Definition at line 40 of file CardControllerWrapper.hpp.
|
private |
Definition at line 64 of file CardControllerWrapper.hpp.
| dunedaq::flxlibs::CardControllerWrapper::CardControllerWrapper | ( | uint32_t | device_id, |
| const appmodel::FelixInterface * | flx_cfg, | ||
| const std::vector< const appmodel::FelixDataSender * > & | flx_senders ) |
CardControllerWrapper Constructor.
Definition at line 40 of file CardControllerWrapper.cpp.
| dunedaq::flxlibs::CardControllerWrapper::~CardControllerWrapper | ( | ) |
Definition at line 58 of file CardControllerWrapper.cpp.
|
delete |
Not copy-constructible.
|
delete |
Not move-constructible.
| void dunedaq::flxlibs::CardControllerWrapper::check_alignment | ( | uint64_t | aligned | ) |
Definition at line 200 of file CardControllerWrapper.cpp.
|
private |
Definition at line 143 of file CardControllerWrapper.cpp.
| void dunedaq::flxlibs::CardControllerWrapper::configure | ( | uint16_t | super_chunk_size, |
| bool | emu_fanout ) |
Definition at line 89 of file CardControllerWrapper.cpp.
|
overrideprotectedvirtual |
Hook for customisable pubblication. The function can throw, exception will be caught by the monitoring thread
Reimplemented from dunedaq::opmonlib::MonitorableObject.
Definition at line 225 of file CardControllerWrapper.cpp.
| uint64_t dunedaq::flxlibs::CardControllerWrapper::get_bitfield | ( | std::string | key | ) |
Definition at line 173 of file CardControllerWrapper.cpp.
| uint64_t dunedaq::flxlibs::CardControllerWrapper::get_register | ( | std::string | key | ) |
Definition at line 156 of file CardControllerWrapper.cpp.
| void dunedaq::flxlibs::CardControllerWrapper::gth_reset | ( | ) |
Definition at line 190 of file CardControllerWrapper.cpp.
| void dunedaq::flxlibs::CardControllerWrapper::init | ( | ) |
Definition at line 67 of file CardControllerWrapper.cpp.
|
private |
Definition at line 130 of file CardControllerWrapper.cpp.
|
delete |
Not move-assignable.
|
delete |
Not copy-assignable.
| void dunedaq::flxlibs::CardControllerWrapper::set_bitfield | ( | std::string | key, |
| uint64_t | value ) |
Definition at line 182 of file CardControllerWrapper.cpp.
| void dunedaq::flxlibs::CardControllerWrapper::set_register | ( | std::string | key, |
| uint64_t | value ) |
Definition at line 165 of file CardControllerWrapper.cpp.
|
private |
Definition at line 70 of file CardControllerWrapper.hpp.
|
private |
Definition at line 61 of file CardControllerWrapper.hpp.
|
private |
Definition at line 69 of file CardControllerWrapper.hpp.
|
private |
Definition at line 66 of file CardControllerWrapper.hpp.
|
private |
Definition at line 67 of file CardControllerWrapper.hpp.