DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Class for HSI nodes. More...
#include <HSINode.hpp>
Public Member Functions | |
HSINode (const uhal::Node &node) | |
virtual | ~HSINode () |
std::string | get_status (bool print_out=false) const override |
Print the status of the timing node. | |
uint32_t | read_buffer_count () const |
Read the number of words in the data buffer. | |
uhal::ValVector< uint32_t > | read_data_buffer (uint16_t &n_words, bool read_all=false, bool fail_on_error=false) const |
Read the contents of the endpoint data buffer. | |
uhal::ValVector< uint32_t > | read_data_buffer (bool read_all=false, bool fail_on_error=false) const |
std::string | get_data_buffer_table (bool read_all=false, bool print_out=false) const |
Print the contents of the endpoint data buffer. | |
void | configure_hsi (uint32_t src, uint32_t re_mask, uint32_t fe_mask, uint32_t inv_mask, double rate, uint32_t clock_frequency_hz, bool dispatch=true) const |
Configure HSI triggering. | |
void | start_hsi (bool dispatch=true) const |
Start HSI triggering. | |
void | stop_hsi (bool dispatch=true) const |
Stop HSI triggering. | |
void | reset_hsi (bool dispatch=true) const |
Reset HSI. | |
bool | read_buffer_warning () const |
Read butffer warning flag. | |
bool | read_buffer_error () const |
Read butffer error flag. | |
uint32_t | read_buffer_state () const |
Read butffer error/warning/word count. | |
uint32_t | read_signal_source_mode () const |
Read signal source, 0 - hardware, 1 - internal emulation. | |
void | get_info (timingfirmwareinfo::HSIFirmwareMonitorData &mon_data) const |
Collect monitoring information for timing endpoint. | |
![]() | |
TimingNode (const uhal::Node &node) | |
virtual | ~TimingNode () |
std::map< std::string, uhal::ValWord< uint32_t > > | read_sub_nodes (const uhal::Node &node, bool dispatch=true) const |
Read subnodes. | |
void | reset_sub_nodes (const uhal::Node &node, uint32_t aValue=0x0, bool dispatch=true) const |
Reset subnodes. | |
Static Public Attributes | |
static constexpr size_t | hsi_buffer_event_words_number = 5 |
Class for HSI nodes.
Definition at line 36 of file HSINode.hpp.
|
explicit |
Definition at line 25 of file HSINode.cpp.
|
virtual |
Definition at line 31 of file HSINode.cpp.
void dunedaq::timing::HSINode::configure_hsi | ( | uint32_t | src, |
uint32_t | re_mask, | ||
uint32_t | fe_mask, | ||
uint32_t | inv_mask, | ||
double | rate, | ||
uint32_t | clock_frequency_hz, | ||
bool | dispatch = true ) const |
Configure HSI triggering.
Definition at line 174 of file HSINode.cpp.
std::string dunedaq::timing::HSINode::get_data_buffer_table | ( | bool | read_all = false, |
bool | print_out = false ) const |
Print the contents of the endpoint data buffer.
Definition at line 150 of file HSINode.cpp.
void dunedaq::timing::HSINode::get_info | ( | timingfirmwareinfo::HSIFirmwareMonitorData & | mon_data | ) | const |
Collect monitoring information for timing endpoint.
Definition at line 315 of file HSINode.cpp.
|
overridevirtual |
Print the status of the timing node.
Implements dunedaq::timing::TimingNode.
Definition at line 36 of file HSINode.cpp.
uint32_t dunedaq::timing::HSINode::read_buffer_count | ( | ) | const |
Read the number of words in the data buffer.
Definition at line 80 of file HSINode.cpp.
bool dunedaq::timing::HSINode::read_buffer_error | ( | ) | const |
Read butffer error flag.
Definition at line 277 of file HSINode.cpp.
uint32_t dunedaq::timing::HSINode::read_buffer_state | ( | ) | const |
Read butffer error/warning/word count.
Definition at line 287 of file HSINode.cpp.
bool dunedaq::timing::HSINode::read_buffer_warning | ( | ) | const |
Read butffer warning flag.
Definition at line 267 of file HSINode.cpp.
uhal::ValVector< uint32_t > dunedaq::timing::HSINode::read_data_buffer | ( | bool | read_all = false, |
bool | fail_on_error = false ) const |
Definition at line 142 of file HSINode.cpp.
uhal::ValVector< uint32_t > dunedaq::timing::HSINode::read_data_buffer | ( | uint16_t & | n_words, |
bool | read_all = false, | ||
bool | fail_on_error = false ) const |
Read the contents of the endpoint data buffer.
Definition at line 90 of file HSINode.cpp.
uint32_t dunedaq::timing::HSINode::read_signal_source_mode | ( | ) | const |
Read signal source, 0 - hardware, 1 - internal emulation.
Definition at line 305 of file HSINode.cpp.
void dunedaq::timing::HSINode::reset_hsi | ( | bool | dispatch = true | ) | const |
Reset HSI.
Definition at line 248 of file HSINode.cpp.
void dunedaq::timing::HSINode::start_hsi | ( | bool | dispatch = true | ) | const |
Start HSI triggering.
Definition at line 228 of file HSINode.cpp.
void dunedaq::timing::HSINode::stop_hsi | ( | bool | dispatch = true | ) | const |
Stop HSI triggering.
Definition at line 238 of file HSINode.cpp.
|
inlinestaticconstexpr |
Definition at line 133 of file HSINode.hpp.