161 static uint8_t avr_regbit_setto_raw(avr_t *avr, avr_regbit_t rb, uint8_t v)
Set the 'raw' bits, if 'v' is the unshifted value of the bits.
Definition: sim_regbit.h:70
uint32_t reg
Definition: sim_avr_types.h:49
uint8_t * data
SRAM memory, starting by the general purpose registers, and IO registers.
Definition: sim_avr.h:265
avr_t * avr
Definition: run_avr.c:54
static uint8_t avr_regbit_get_raw(avr_t *avr, avr_regbit_t rb)
Return the bit(s) 'in position' instead of zero based.
Definition: sim_regbit.h:102
uint32_t bit
Definition: sim_avr_types.h:49
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits)...
Definition: sim_avr_types.h:47
static void avr_regbit_set_array_from_value(avr_t *avr, avr_regbit_t *rb, uint8_t count, uint8_t value)
Does the reverse of avr_regbit_get_array.
Definition: sim_regbit.h:137
static uint8_t avr_regbit_get(avr_t *avr, avr_regbit_t rb)
Definition: sim_regbit.h:82
uint32_t mask
Definition: sim_avr_types.h:49
static uint8_t avr_regbit_clear(avr_t *avr, avr_regbit_t rb)
Definition: sim_regbit.h:111
static uint8_t avr_regbit_from_value(avr_t *avr, avr_regbit_t rb, uint8_t value)
Using regbit from value eliminates some of the set to test then clear register operations.
Definition: sim_regbit.h:93
static uint8_t avr_regbit_set(avr_t *avr, avr_regbit_t rb)
Set/get/clear io register bits in one operation.
Definition: sim_regbit.h:45
static uint8_t avr_regbit_setto(avr_t *avr, avr_regbit_t rb, uint8_t v)
Definition: sim_regbit.h:57
Main AVR instance.
Definition: sim_avr.h:142
static uint8_t avr_regbit_get_array(avr_t *avr, avr_regbit_t *rb, int count)
This reads the bits for an array of avr_regbit_t, make up a "byte" with them.
Definition: sim_regbit.h:122
void avr_core_watch_write(avr_t *avr, uint16_t addr, uint8_t v)
These are accessors for avr->data but allows watchpoints to be set for gdb IO modules use that to set...
Definition: sim_core.c:156