42 explicit constexpr
Type(u8 val)
44 explicit constexpr
Type(u16 val)
46 explicit constexpr
Type(u32 val)
51 explicit constexpr
Type(u16 val1, u16 val2)
55 explicit constexpr
Type(u32 val, u32 mask)
60 Type& operator=(
const Type& t) =
default;
The "Dispatch" is a generic interface that knows how to read a designated protocol layer and sort inc...
constexpr satcat5::net::Type TYPE_NONE
The TYPE_NONE mask blocks all incoming frames.
constexpr satcat5::net::Type TYPE_ANY
The TYPE_ANY mask accepts any incoming frame.
Multipurpose filter for matching fields in network packets.
void as_u16(u16 &a) const
Sets the given parameter to m_value.
constexpr Type(u8 val)
Construct a Type from a single value.
constexpr Type(u32 val)
Construct a Type from a single value.
void as_u32(u32 &a) const
Sets the given parameter to m_value.
constexpr Type(u32 val, u32 mask)
Construct a Type with a custom bitwise filter-mask.
bool match(const Type &other) const
Check if this Type matches other.
void as_u8(u8 &a) const
Sets the given parameter to m_value.
u16 as_u16() const
Accessors for m_value.
u32 m_mask
32-bit mask for m_value.
void as_pair(u16 &a, u16 &b) const
Sets the given parameter to m_value.
u32 m_value
Underlying value to check for a match.
constexpr Type(u16 val1, u16 val2)
Construct a Type from a pair of values, concatenated.
bool bound() const
Is this Type actively filtering or is it TYPE_NONE?
constexpr Type(u16 val)
Construct a Type from a single value.
u8 as_u8() const
Accessors for m_value.
u32 as_u32() const
Accessors for m_value.
Basic type aliases and prototypes used throughout SatCat5.