SimAVR
AVR Simulator
|
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits). More...
#include <sim_avr_types.h>
Data Fields | |
uint32_t | reg:9 |
uint32_t | bit:3 |
uint32_t | mask:8 |
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits).
This allows a way to set/get/clear them. GCC is happy passing these as register value, so you don't need to use a pointer when passing them along to functions.
9 bits ought to be enough, as it's the maximum I've seen (atmega2560)
uint32_t bit |
uint32_t mask |
uint32_t reg |