qualcomm/qbox
Loading...
Searching...
No Matches
gs::gs_field< TYPE > Class Template Reference

fields within registered encapsulated using a bitfield proxy. This field is constructed from a specific bit field in a specific register. The bitfield itself may be re-used to use the same field in another register. More...

#include <registers.h>

Public Member Functions

template<class REG>
 gs_field (REG &reg, std::string name, uint32_t bit_start=0, uint32_t bit_length=sizeof(TYPE) *8)
void operator= (TYPE value)
void operator= (gs_field< TYPE > &value)
 operator TYPE ()
 operator gs::gs_bitfield< TYPE > & ()
uint32_t bit_start () const
uint32_t bit_length () const

Detailed Description

template<class TYPE>
class gs::gs_field< TYPE >

fields within registered encapsulated using a bitfield proxy. This field is constructed from a specific bit field in a specific register. The bitfield itself may be re-used to use the same field in another register.

Constructor & Destructor Documentation

◆ gs_field()

template<class TYPE>
template<class REG>
gs::gs_field< TYPE >::gs_field ( REG & reg,
std::string name,
uint32_t bit_start = 0,
uint32_t bit_length = sizeof(TYPE) * 8 )
inline

Construct a field for either a scalar register or a register bank. For a bank, the register argument keeps declaration and initialization uniform; the bank element supplies the actual storage on access.


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