librfn
An ad-hoc utility library
Data Fields
regdump_desc Struct Reference

Register description structure. More...

#include <regdump.h>

Data Fields

const char * name
 
uintreg_t mask
 

Detailed Description

Register description structure.

The following example shows a simple UART RX register combining the received character with some flags:

static const regdump_desc_t uart_rx_desc = {
{ "UART_RX" },
{ "CH", 0x00ff },
{ "FRM", 0x2000 },
{ "OVF", 0x4000 },
{ "BRK", 0x8000 }
};
regdump(UART_RX(UART0), &uart_rx_desc);

Definition at line 55 of file regdump.h.

Field Documentation

uintreg_t mask

Definition at line 57 of file regdump.h.

const char* name

Definition at line 56 of file regdump.h.


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