Template:Regsimple2
		
		
		
		Jump to navigation
		Jump to search
		
| REG_FOO (0xADDRESS) | ||
| 3116 | 150 | |
| Access | U | {{{access}}} | 
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 |