File indexing completed on 2025-01-18 10:17:18
0001
0002
0003
0004
0005
0006 #ifndef _ADCSample_h_
0007 #define _ADCSample_h_
0008
0009 #include <JANA/JObject.h>
0010
0011 struct ADCSample : public JObject {
0012
0013
0014 uint32_t source_id;
0015 uint16_t channel_id;
0016 uint16_t sample_id;
0017 uint16_t adc_value;
0018
0019
0020 void Summarize(JObjectSummary& summary) const override {
0021 summary.add(source_id, NAME_OF(source_id), "%d");
0022 summary.add(sample_id, NAME_OF(sample_id), "%d");
0023 summary.add(channel_id, NAME_OF(channel_id), "%d");
0024 summary.add(adc_value, NAME_OF(adc_value), "%d");
0025 }
0026 };
0027
0028 #endif