129 uint8_t pull_mask
Definition: avr_ioport.h:113
Definition: avr_ioport.h:40
uint16_t port
port e.g. 'B'
Definition: avr_ioport.h:91
Definition: avr_ioport.h:37
avr_regbit_t bit
bit wanted
Definition: avr_ioport.h:55
unsigned long ddr
Definition: avr_ioport.h:73
avr_irq_t * irq[8]
result, terminated by NULL if < 8
Definition: avr_ioport.h:56
pin structure
Definition: avr_ioport.h:89
Definition: avr_ioport.h:38
uint16_t avr_io_addr_t
Definition: sim_avr_types.h:37
avr_io_addr_t r_port
Definition: avr_ioport.h:101
uint8_t pull_value
Definition: avr_ioport.h:113
Definition: avr_ioport.h:37
struct avr_ioport_t::@8 external
this represent the default IRQ value when the port is set as input.
Definition: avr_ioport.h:37
struct avr_iopin_t avr_iopin_t
pin structure
avr_t * avr
Definition: run_avr.c:54
Definition: avr_ioport.h:37
struct avr_ioport_state_t avr_ioport_state_t
ioctl used to get a port state.
unsigned long port
Definition: avr_ioport.h:73
Definition: avr_ioport.h:38
avr_io_addr_t r_pin
Definition: avr_ioport.h:103
Definition: avr_ioport.h:42
ioctl used to set default port state when set as input.
Definition: avr_ioport.h:80
unsigned long name
Definition: avr_ioport.h:73
unsigned long mask
Definition: avr_ioport.h:82
interrupt vector for the IO modules
Definition: sim_interrupts.h:37
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits)...
Definition: sim_avr_types.h:47
Definition: avr_ioport.h:43
this ioctl takes a avr_regbit_t, compares the register address to PORT/PIN/DDR and return the corresp...
Definition: avr_ioport.h:53
avr_io_addr_t r_ddr
Definition: avr_ioport.h:102
Definition: avr_ioport.h:38
struct avr_ioport_t avr_ioport_t
Definition for an IO port.
Definition: avr_ioport.h:39
void avr_ioport_init(avr_t *avr, avr_ioport_t *port)
Definition: avr_ioport.c:240
avr_io_t io
Definition: avr_ioport.h:99
unsigned long name
Definition: avr_ioport.h:82
ioctl used to get a port state.
Definition: avr_ioport.h:71
avr_io_addr_t r_pcint
pcint 8 pins mask
Definition: avr_ioport.h:106
unsigned long pin
Definition: avr_ioport.h:73
unsigned long value
Definition: avr_ioport.h:82
Definition: avr_ioport.h:38
avr_int_vector_t pcint
PCINT vector.
Definition: avr_ioport.h:105
char name
Definition: avr_ioport.h:100
uint16_t pin
pin number
Definition: avr_ioport.h:92
Main AVR instance.
Definition: sim_avr.h:142
IO module base struct Modules uses that as their first member in their own struct.
Definition: sim_io.h:42
struct avr_ioport_external_t avr_ioport_external_t
ioctl used to set default port state when set as input.
Public IRQ structure.
Definition: sim_irq.h:76
struct avr_ioport_getirq_t avr_ioport_getirq_t
this ioctl takes a avr_regbit_t, compares the register address to PORT/PIN/DDR and return the corresp...
Definition: avr_ioport.h:41
Definition for an IO port.
Definition: avr_ioport.h:97