DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Structs.hpp
Go to the documentation of this file.
1/*
2 * This file is 100% generated. Any manual edits will likely be lost.
3 *
4 * This contains struct and other type definitions for shema in
5 * namespace dunedaq::timing::timingfirmwareinfo.
6 */
7#ifndef DUNEDAQ_TIMING_TIMINGFIRMWAREINFO_STRUCTS_HPP
8#define DUNEDAQ_TIMING_TIMINGFIRMWAREINFO_STRUCTS_HPP
9
10#include <cstdint>
13
14#include <string>
15
17
18 // @brief A bool
19 using BoolData = bool;
20
21 // @brief A double
22 using DoubleValue = double;
23
24
25 // @brief 32 bit uint
26 using RegValue = uint32_t; // NOLINT
27
28
29 // @brief HSI monitor data
31 {
32
33 // @brief Source of HSI data
34 RegValue source = 0;
35
36 // @brief Rising edge mask
37 RegValue re_mask = 0;
38
39 // @brief Falling edge mask
40 RegValue fe_mask = 0;
41
42 // @brief Inverted mask
43 RegValue inv_mask = 0;
44
45 // @brief Buffer enable flag
46 BoolData buffer_enabled = false;
47
48 // @brief Buffer enable flag
49 BoolData buffer_error = false;
50
51 // @brief Buffer enable flag
52 BoolData buffer_warning = false;
53
54 // @brief Number of words in buffer
55 RegValue buffer_occupancy = 0;
56
57 // @brief HSI triggering enabled
58 BoolData enabled = false;
59 };
60
61 // @brief 64 bit uint
62 using LongInt = int64_t;
63
64
65 // @brief 64 bit uint
66 using LongUint = uint64_t; // NOLINT
67
68
69 // @brief master monitor data
71 {
72
73 // @brief Timestamp
74 LongUint timestamp = 0;
75
76 // @brief Timestamp bcast enable
77 RegValue ts_bcast_enable = 0;
78
79 // @brief Timestamp valid
80 RegValue ts_valid = 0;
81
82 // @brief Timestamp transmit error
83 RegValue ts_tx_err = 0;
84
85 // @brief Tx error
86 RegValue tx_err = 0;
87
88 // @brief Counters ready
89 RegValue ctrs_rdy = 0;
90 };
91
92 // @brief Sent command counters structure
94 {
95
96 // @brief Number of commands sent
97 RegValue counts = 0;
98 };
99
100 // @brief A string field
101 using TextData = std::string;
102
103 // @brief Timing hw cmd structure
105 {
106
107 // @brief Device name
108 TextData device = "";
109
110 // @brief IO info payload
112
113 // @brief Master info payload
115
116 // @brief Endpoint info payload
118
119 // @brief HSI info payload
121 };
122
123 // @brief Fixed length command counters structure
125 {
126
127 // @brief Number of commands accepted
128 RegValue accepted = 0;
129
130 // @brief Number of commands rejected
131 RegValue rejected = 0;
132 };
133
134} // namespace dunedaq::timing::timingfirmwareinfo
135
136#endif // DUNEDAQ_TIMING_TIMINGFIRMWAREINFO_STRUCTS_HPP
timinghardwareinfo::TimingPLLMonitorData pll_info
Definition Structs.hpp:111
timingendpointinfo::TimingEndpointInfo endpoint_info
Definition Structs.hpp:117