template <class RegType>

class RegisterAddr

Defined at line 242 of file ../../zircon/system/ulib/hwreg/include/hwreg/bitfields.h

An instance of RegisterAddr represents a typed register address: It

knows the address of the register (within the MMIO address space) and

the type of its contents, RegType. RegType represents the register's

bitfields. RegType should be a subclass of RegisterBase.

Public Methods

void RegisterAddr<RegType> (uint32_t reg_addr)

Defined at line 244 of file ../../zircon/system/ulib/hwreg/include/hwreg/bitfields.h

template <typename T>
RegType ReadFrom (T * reg_io)

Instantiate a RegisterBase using the value of the register read from

MMIO.

Defined at line 254 of file ../../zircon/system/ulib/hwreg/include/hwreg/bitfields.h

RegType FromValue (typename RegType::ValueType value)

Instantiate a RegisterBase using the given value for the register.

Defined at line 262 of file ../../zircon/system/ulib/hwreg/include/hwreg/bitfields.h

uint32_t addr ()

Defined at line 269 of file ../../zircon/system/ulib/hwreg/include/hwreg/bitfields.h