regmask_t Struct Reference

yasimavr: regmask_t Struct Reference
yasimavr
Loading...
Searching...
No Matches

Address + bit mask structure. More...

#include <sim_types.h>

Public Member Functions

constexpr regmask_t operator| (const regmask_t &other) const
 
constexpr bool operator== (reg_addr_t a) const
 Returns true if the regmask_t objects have the same address.
 
constexpr bool operator!= (reg_addr_t a) const
 Returns true if the regmask_t objects have a different address.
 

Public Attributes

reg_addr_t addr
 
bitmask_t mask
 

Detailed Description

Address + bit mask structure.

Member Function Documentation

◆ operator!=()

constexpr bool regmask_t::operator!= ( reg_addr_t  a) const
inlineconstexpr

Returns true if the regmask_t objects have a different address.

◆ operator==()

constexpr bool regmask_t::operator== ( reg_addr_t  a) const
inlineconstexpr

Returns true if the regmask_t objects have the same address.

◆ operator|()

constexpr regmask_t regmask_t::operator| ( const regmask_t other) const
inlineconstexpr

if the two regmasks have the same address, returns a bitwise OR of the bitmasks. Otherwise returns an invalid object.

Member Data Documentation

◆ addr

reg_addr_t regmask_t::addr

◆ mask

bitmask_t regmask_t::mask

The documentation for this struct was generated from the following file: