3434#include " ReadoutCard/ParameterTypes/Clock.h"
3535#include " ReadoutCard/ParameterTypes/DatapathMode.h"
3636#include " ReadoutCard/ParameterTypes/DownstreamData.h"
37+ #include " ReadoutCard/ParameterTypes/GbtCounterType.h"
3738#include " ReadoutCard/ParameterTypes/GbtMode.h"
3839#include " ReadoutCard/ParameterTypes/GbtMux.h"
40+ #include " ReadoutCard/ParameterTypes/GbtPatternMode.h"
41+ #include " ReadoutCard/ParameterTypes/GbtStatsMode.h"
3942
4043namespace o2
4144{
@@ -102,12 +105,26 @@ class Parameters
102105 // / Type for the downstream data parameter
103106 using DownstreamDataType = DownstreamData::type;
104107
105- // / Type for the gbt mux parameter
106- using GbtMuxType = GbtMux ::type;
108+ // / Type for the gbt counter type parameter
109+ using GbtCounterTypeType = GbtCounterType ::type;
107110
108111 // / Type for the gbt mode parameter
109112 using GbtModeType = GbtMode::type;
110113
114+ // / Type for the gbt mux parameter
115+ using GbtMuxType = GbtMux::type;
116+
117+ // / Type for the gbt pattern mode parameter
118+ using GbtPatternModeType = GbtPatternMode::type;
119+
120+ // / Type for the gbt stats mode parameter
121+ using GbtStatsModeType = GbtStatsMode::type;
122+
123+ // / Types for the gbt masks
124+ using GbtHighMaskType = uint32_t ;
125+ using GbtMedMaskType = uint32_t ;
126+ using GbtLowMaskType = uint32_t ;
127+
111128 // / Type for the link loopback enabled parameter
112129 using LinkLoopbackEnabledType = bool ;
113130
@@ -362,6 +379,15 @@ class Parameters
362379 // / \return Reference to this object for chaining calls
363380 auto setDownstreamData (DownstreamDataType value) -> Parameters&;
364381
382+ // / Sets the GbtCounterType Parameter
383+ // /
384+ // / The GBT Counter Type parameter refers to the counter type used to collect loopback stats
385+ // / The GBT Counter Type may be 30 or 8 bit
386+ // /
387+ // / \param value The value to set
388+ // / \return Reference to this object for chaining calls
389+ auto setGbtCounterType (GbtCounterTypeType value) -> Parameters&;
390+
365391 // / Sets the GbtMode Parameter
366392 // /
367393 // / The GBT Mode parameter refers to the selection of the GBT Mode for the CRU configuration
@@ -388,6 +414,48 @@ class Parameters
388414 // / \return Reference to this object for chaining calls
389415 auto setGbtMuxMap (GbtMuxMapType value) -> Parameters&;
390416
417+ // / Sets the GbtPatternMode Parameter
418+ // /
419+ // / The GBT Pattern Mode parameter refers to the pattern mode used to collect loopback stats
420+ // / The GBT Pattern Mode may be Counter or Static
421+ // /
422+ // / \param value The value to set
423+ // / \return Reference to this object for chaining calls
424+ auto setGbtPatternMode (GbtPatternModeType value) -> Parameters&;
425+
426+ // / Sets the GbtStatsMode Parameter
427+ // /
428+ // / The GBT Stats Mode parameter refers to the selection of the GBT Loopback Stats to be reported
429+ // / The GBT Stats Mode may be Counter, Fec, or All
430+ // /
431+ // / \param value The value to set
432+ // / \return Reference to this object for chaining calls
433+ auto setGbtStatsMode (GbtStatsModeType value) -> Parameters&;
434+
435+ // / Sets the GbtHighMask Parameter
436+ // /
437+ // / The GBT High mask parameter is used to report GBT loopback stats
438+ // /
439+ // / \param value The value to set
440+ // / \return Reference to this object for chaining calls
441+ auto setGbtHighMask (GbtHighMaskType value) -> Parameters&;
442+
443+ // / Sets the GbtMedMask Parameter
444+ // /
445+ // / The GBT Med mask parameter is used to report GBT loopback stats
446+ // /
447+ // / \param value The value to set
448+ // / \return Reference to this object for chaining calls
449+ auto setGbtMedMask (GbtMedMaskType value) -> Parameters&;
450+
451+ // / Sets the GbtLowMask Parameter
452+ // /
453+ // / The GBT Low mask parameter is used to report GBT loopback stats
454+ // /
455+ // / \param value The value to set
456+ // / \return Reference to this object for chaining calls
457+ auto setGbtLowMask (GbtLowMaskType value) -> Parameters&;
458+
391459 // / Sets the StbrdEnabled parameter
392460 // /
393461 // / If enabled the STBRD command is used to start the CRORC trigger.
@@ -517,6 +585,10 @@ class Parameters
517585 // / \return The value
518586 auto getDownstreamData () const -> boost::optional<DownstreamDataType>;
519587
588+ // / Gets the GbtCounterType Parameter
589+ // / \return The value
590+ auto getGbtCounterType () const -> boost::optional<GbtCounterTypeType>;
591+
520592 // / Gets the GbtMode Parameter
521593 // / \return The value
522594 auto getGbtMode () const -> boost::optional<GbtModeType>;
@@ -529,6 +601,26 @@ class Parameters
529601 // / \return The value
530602 auto getGbtMuxMap () const -> boost::optional<GbtMuxMapType>;
531603
604+ // / Gets the GbtPatternMode Parameter
605+ // / \return The value
606+ auto getGbtPatternMode () const -> boost::optional<GbtPatternModeType>;
607+
608+ // / Gets the GbtStatsMode Parameter
609+ // / \return The value
610+ auto getGbtStatsMode () const -> boost::optional<GbtStatsModeType>;
611+
612+ // / Gets the GbtHighMask Parameter
613+ // / \return The value
614+ auto getGbtHighMask () const -> boost::optional<GbtHighMaskType>;
615+
616+ // / Gets the GbtMedMask Parameter
617+ // / \return The value
618+ auto getGbtMedMask () const -> boost::optional<GbtMedMaskType>;
619+
620+ // / Gets the GbtLowMask Parameter
621+ // / \return The value
622+ auto getGbtLowMask () const -> boost::optional<GbtLowMaskType>;
623+
532624 // / Gets the StbrdEnabled parameter
533625 // / \return The value wrapped in an optional if it is present, or an empty optional if it was not
534626 auto getStbrdEnabled () const -> boost::optional<StbrdEnabledType>;
@@ -664,6 +756,11 @@ class Parameters
664756 // / \return The value
665757 auto getDownstreamDataRequired () const -> DownstreamDataType;
666758
759+ // / Gets the GbtCounterType Parameter
760+ // / \exception ParameterException The parameter was not present
761+ // / \return The value
762+ auto getGbtCounterTypeRequired () const -> GbtCounterTypeType;
763+
667764 // / Gets the GbtMode Parameter
668765 // / \exception ParameterException The parameter was not present
669766 // / \return The value
@@ -679,6 +776,31 @@ class Parameters
679776 // / \return The value
680777 auto getGbtMuxMapRequired () const -> GbtMuxMapType;
681778
779+ // / Gets the GbtPatternMode Parameter
780+ // / \exception ParameterException The parameter was not present
781+ // / \return The value
782+ auto getGbtPatternModeRequired () const -> GbtPatternModeType;
783+
784+ // / Gets the GbtStatsMode Parameter
785+ // / \exception ParameterException The parameter was not present
786+ // / \return The value
787+ auto getGbtStatsModeRequired () const -> GbtStatsModeType;
788+
789+ // / Gets the GbtHighMask Parameter
790+ // / \exception ParameterException The parameter was not present
791+ // / \return The value
792+ auto getGbtHighMaskRequired () const -> GbtHighMaskType;
793+
794+ // / Gets the GbtMedMask Parameter
795+ // / \exception ParameterException The parameter was not present
796+ // / \return The value
797+ auto getGbtMedMaskRequired () const -> GbtMedMaskType;
798+
799+ // / Gets the GbtLowMask Parameter
800+ // / \exception ParameterException The parameter was not present
801+ // / \return The value
802+ auto getGbtLowMaskRequired () const -> GbtLowMaskType;
803+
682804 // / Gets the StbrdEnabled parameter
683805 // / \exception ParameterException The parameter was not present
684806 // / \return The value
0 commit comments