8 #include "STest/Random/Random.hpp" 12 namespace CcsdsTestUtils {
23 constexpr
auto ccsdsBound =
static_cast<SerialType>((1 << 11) - 1);
24 constexpr
auto serialTypeBound = std::numeric_limits<SerialType>::max();
25 constexpr
auto bound =
std::min(ccsdsBound, serialTypeBound);
30 for (
SerialType candidateApid = 0; candidateApid <= bound; candidateApid++) {
34 if (idx == selectedIdx) {
The number of enumerated constants.
Fw::Optional< ComCfg::Apid::T > ApidOption
U16 SerialType
The serial representation type.
ApidOption getRandomApid()
constexpr None_t NONE
Global constant representing an absent/empty optional value.
static U32 min(const U32 a, const U32 b)
RateGroupDivider component implementation.
bool isValid() const
Check raw enum value for validity.
ComCfg::Apid::SerialType SerialType
A type-safe container for an optional value.