|
28 | 28 | #include "ReadoutCard/ParameterTypes/PciAddress.h" |
29 | 29 | #include "ReadoutCard/ParameterTypes/PciSequenceNumber.h" |
30 | 30 | #include "ReadoutCard/ParameterTypes/ReadoutMode.h" |
| 31 | +#include "ReadoutCard/ParameterTypes/Address.h" |
31 | 32 |
|
32 | 33 | // CRU Specific |
33 | 34 | #include "ReadoutCard/ParameterTypes/Clock.h" |
@@ -115,6 +116,12 @@ class Parameters |
115 | 116 | /// Type for the link loopback enabled parameter |
116 | 117 | using LinkLoopbackEnabledType = bool; |
117 | 118 |
|
| 119 | + /// Type for the PON upstream enabled parameter |
| 120 | + using PonUpstreamEnabledType = bool; |
| 121 | + |
| 122 | + /// Type for the ONU address parameter |
| 123 | + using OnuAddressType = Address::type; |
| 124 | + |
118 | 125 | /// Type for the STBRD enabled parameter |
119 | 126 | using StbrdEnabledType = bool; |
120 | 127 |
|
@@ -176,6 +183,20 @@ class Parameters |
176 | 183 | /// \return Reference to this object for chaining calls |
177 | 184 | auto setLinkLoopbackEnabled(LinkLoopbackEnabledType value) -> Parameters&; |
178 | 185 |
|
| 186 | + /// Sets the PonUpstreamEnabled parameter |
| 187 | + /// |
| 188 | + /// If enabled the PON upstream is used. |
| 189 | + /// |
| 190 | + /// \param value The value to set |
| 191 | + /// \return Reference to this object for chaining calls |
| 192 | + auto setPonUpstreamEnabled(PonUpstreamEnabledType value) -> Parameters&; |
| 193 | + |
| 194 | + /// Sets the OnuAddress parameter |
| 195 | + /// |
| 196 | + /// \param value The value to set |
| 197 | + /// \return Reference to this object for chaining calls |
| 198 | + auto setOnuAddress(OnuAddressType value) -> Parameters&; |
| 199 | + |
179 | 200 | /// Sets the GeneratorDataSize parameter |
180 | 201 | /// |
181 | 202 | /// It controls the size in bytes of the generated data per DMA page. |
@@ -351,10 +372,18 @@ class Parameters |
351 | 372 | /// \return The value wrapped in an optional if it is present, or an empty optional if it was not |
352 | 373 | auto getGeneratorEnabled() const -> boost::optional<GeneratorEnabledType>; |
353 | 374 |
|
354 | | - /// Gets the LinkLoopbacknabled parameter |
| 375 | + /// Gets the LinkLoopbackEnabled parameter |
355 | 376 | /// \return The value wrapped in an optional if it is present, or an empty optional if it was not |
356 | 377 | auto getLinkLoopbackEnabled() const -> boost::optional<LinkLoopbackEnabledType>; |
357 | 378 |
|
| 379 | + /// Gets the PonUpstreamEnabled parameter |
| 380 | + /// \return The value wrapped in an optional if it is present, or an empty optional if it was not |
| 381 | + auto getPonUpstreamEnabled() const -> boost::optional<PonUpstreamEnabledType>; |
| 382 | + |
| 383 | + /// Gets the OnuAddress parameter |
| 384 | + /// \return The value wrapped in an optional if it is present, or an empty optional if it was not |
| 385 | + auto getOnuAddress() const -> boost::optional<OnuAddressType>; |
| 386 | + |
358 | 387 | /// Gets the GeneratorDataSize parameter |
359 | 388 | /// \return The value wrapped in an optional if it is present, or an empty optional if it was not |
360 | 389 | auto getGeneratorDataSize() const -> boost::optional<GeneratorDataSizeType>; |
@@ -438,6 +467,16 @@ class Parameters |
438 | 467 | /// \return The value |
439 | 468 | auto getLinkLoopbackEnabledRequired() const -> LinkLoopbackEnabledType; |
440 | 469 |
|
| 470 | + /// Gets the PonUpstreamEnabled parameter |
| 471 | + /// \exception ParameterException The parameter was not present |
| 472 | + /// \return The value |
| 473 | + auto getPonUpstreamEnabledRequired() const -> PonUpstreamEnabledType; |
| 474 | + |
| 475 | + /// Gets the OnuAddress parameter |
| 476 | + /// \exception ParameterException The parameter was not present |
| 477 | + /// \return The value |
| 478 | + auto getOnuAddressRequired() const -> OnuAddressType; |
| 479 | + |
441 | 480 | /// Gets the GeneratorDataSize parameter |
442 | 481 | /// \exception ParameterException The parameter was not present |
443 | 482 | /// \return The value |
|
0 commit comments