Template:Regsimple2
This is an old revision of this page, as edited by Marcan (talk | contribs) at 17:44, 27 February 2009. It may differ significantly from the current revision. |
REG_FOO (0xADDRESS) | ||
3116 | 150 | |
Access | U | {{{access}}} |
[edit] Template documentation
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 |