# hwreg::BitfieldRef

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/hwreg/bitfield-ref#classhwreg_1_1_bitfield_ref_1aa85f5933555a3088069fa0519fa2d127(IntType *value_ptr, uint32_t bit_high_incl, uint32_t bit_low)` ||
| `https://fuchsia.dev/reference/cpp/class/hwreg/bitfield-ref#classhwreg_1_1_bitfield_ref_1afa18d7d7e53f8e1f58a46abadd3bee14(IntType *value_ptr, uint32_t bit_high_incl, uint32_t bit_low, bool unshifted)` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/hwreg/bitfield-ref#classhwreg_1_1_bitfield_ref_1a888186e5ca915faf6fbf1d6bd65f26f4() const ` | `constexpr IntType` |
| `https://fuchsia.dev/reference/cpp/class/hwreg/bitfield-ref#classhwreg_1_1_bitfield_ref_1a3898263a47e41d64cb5a193839f4ff7c(IntType field_val)` | `constexpr void` |

## Public functions

### BitfieldRef

```c++
constexpr BitfieldRef(
  IntType *value_ptr,
  uint32_t bit_high_incl,
  uint32_t bit_low
)
```

### BitfieldRef

```c++
constexpr BitfieldRef(
  IntType *value_ptr,
  uint32_t bit_high_incl,
  uint32_t bit_low,
  bool unshifted
)
```

### get

```c++
constexpr IntType get() const 
```

### set

```c++
constexpr void set(
  IntType field_val
)
```