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::timingendpointinfo.
6 */
7#ifndef DUNEDAQ_TIMING_TIMINGENDPOINTINFO_STRUCTS_HPP
8#define DUNEDAQ_TIMING_TIMINGENDPOINTINFO_STRUCTS_HPP
9
10#include <cstdint>
11
12#include <string>
13
15
16 // @brief A bool
17 using BoolData = bool;
18
19 // @brief A double
20 using DoubleValue = double;
21
22
23 // @brief 64 bit uint
24 using LongInt = int64_t;
25
26
27 // @brief 64 bit uint
28 using LongUint = uint64_t; // NOLINT
29
30
31 // @brief 32 bit uint
32 using RegValue = uint32_t; // NOLINT
33
34
35 // @brief A string field
36 using TextData = std::string;
37
38 // @brief Timing endpoint monitor data
40 {
41
42 // @brief Endpoint state
44
45 // @brief Endpoint ready flag
46 BoolData ready = false;
47
48 // @brief Endpoint partition
50
51 // @brief Endpoint address
53
54 // @brief Endpoint timestamp
56
57 // @brief Endpoint in run flag
59
60 // @brief Endpoint in spill flag
62
63 // @brief Buffer warning flag
65
66 // @brief Buffer error flag
68
69 // @brief Buffer occupancy
71
72 // @brief Event counter
74
75 // @brief Endpoint out reset line
77
78 // @brief Endpoint SFP tx disable line
80
81 // @brief Configured coarse delay
83
84 // @brief Configured fine delay
86 };
87
88 // @brief Command counters list
90 {
91
92 // @brief TimeSync counters
94
95 // @brief Echo counters
97
98 // @brief SpillStart counters
100
101 // @brief SpillStop counters
103
104 // @brief RunStart counters
106
107 // @brief RunStop counters
109
110 // @brief WibCalib counters
112
113 // @brief SSPCalib counters
115
116 // @brief FakeTrig0 counters
118
119 // @brief FakeTrig1 counters
121
122 // @brief FakeTrig2 counters
124
125 // @brief FakeTrig3 counters
127
128 // @brief BeamTrig counters
130
131 // @brief NoBeamTrig counters
133
134 // @brief ExtFakeTrig counters
136 };
137
138} // namespace dunedaq::timing::timingendpointinfo
139
140#endif // DUNEDAQ_TIMING_TIMINGENDPOINTINFO_STRUCTS_HPP
Unknown serialization type<< t,((char) t)) template< typename T > inline std::string datatype_to_string() { return "Unknown";} namespace serialization { template< typename T > struct is_serializable :std::false_type {};enum SerializationType { kMsgPack };inline SerializationType from_string(const std::string s) { if(s=="msgpack") return kMsgPack;throw UnknownSerializationTypeString(ERS_HERE, s);} constexpr uint8_t serialization_type_byte(SerializationType stype) { switch(stype) { case kMsgPack:return 'M';default:throw UnknownSerializationTypeEnum(ERS_HERE);} } constexpr SerializationType DEFAULT_SERIALIZATION_TYPE=kMsgPack;template< class T > std::vector< uint8_t > serialize(const T &obj, SerializationType stype=DEFAULT_SERIALIZATION_TYPE) { switch(stype) { case kMsgPack:{ msgpack::sbuffer buf;msgpack::pack(buf, obj);std::vector< uint8_t > ret(buf.size()+1);ret[0]=serialization_type_byte(stype);std::copy(buf.data(), buf.data()+buf.size(), ret.begin()+1);return ret;} default:throw UnknownSerializationTypeEnum(ERS_HERE);} } template< class T, typename CharType=unsigned char > T deserialize(const std::vector< CharType > &v) { switch(v[0]) { case serialization_type_byte(kMsgPack):{ try { msgpack::object_handle oh=msgpack::unpack(const_cast< char * >(reinterpret_cast< const char * >(v.data()+1)), v.size() - 1,[](msgpack::type::object_type, std::size_t, void *) -> bool