microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Attributes | List of all members
microfmt::reg_field Struct Reference

Describes a single bitfield within a register. More...

#include <register.hpp>

Collaboration diagram for microfmt::reg_field:
Collaboration graph
[legend]

Public Attributes

microfmt::string_view name
 Human-readable field name.
 
uint8_t bit_offset {}
 Bit offset of the field within the register word.
 
uint8_t bit_width {}
 Bit width of the field.
 
bool is_flag {false}
 When true (single-bit flag), render as +NAME/!NAME.
 

Detailed Description

Describes a single bitfield within a register.

Member Data Documentation

◆ bit_offset

uint8_t microfmt::reg_field::bit_offset {}

Bit offset of the field within the register word.

◆ bit_width

uint8_t microfmt::reg_field::bit_width {}

Bit width of the field.

◆ is_flag

bool microfmt::reg_field::is_flag {false}

When true (single-bit flag), render as +NAME/!NAME.

◆ name

microfmt::string_view microfmt::reg_field::name

Human-readable field name.


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