Template:Regsimple2/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Regsimple2 (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page |
This template can be used for simple registers with two fields, especially where the first field is just Unimplemented bits (i.e. registers where the top bits are unused).
Usage
{{regsimple2 | MAGIC_REGISTER | addr=0x1337 | bits=32 | split=24 | access = W}}
Gives:
MAGIC_REGISTER (0x1337) | ||
3124 | 230 | |
Access | U | W |
The width is adjusted automagically:
{{regsimple2 | MAGIC_REGISTER | addr=0x1337 | bits=32 | split=8 | access = W}}
MAGIC_REGISTER (0x1337) | ||
318 | 70 | |
Access | U | W |
See also