152 Definition: avr_timer.h:78
Definition: avr_timer.h:62
Definition: avr_timer.h:47
avr_io_addr_t r_tcnth
Definition: avr_timer.h:119
avr_io_t io
Definition: avr_timer.h:113
avr_int_vector_t icr
input capture
Definition: avr_timer.h:138
uint32_t cs_div_clock
Definition: avr_timer.h:130
Definition: avr_timer.h:60
uint16_t avr_io_addr_t
Definition: sim_avr_types.h:37
avr_regbit_t disabled
bit in the PRR
Definition: avr_timer.h:116
avr_regbit_t cs[4]
Definition: avr_timer.h:128
avr_t * avr
Definition: run_avr.c:54
Toggle OCnx on compare match.
Definition: avr_timer.h:71
uint32_t kind
Definition: avr_timer.h:84
struct avr_timer_comp_t * avr_timer_comp_p
avr_io_addr_t r_ocrh
comparator register hi byte
Definition: avr_timer.h:105
uint64_t tov_base
when we last were called
Definition: avr_timer.h:141
avr_io_addr_t r_ocr
comparator register low byte
Definition: avr_timer.h:104
Definition: avr_timer.h:39
Definition: avr_timer.h:63
avr_regbit_t com
comparator output mode registers
Definition: avr_timer.h:106
set OCnx on compare match
Definition: avr_timer.h:73
interrupt vector for the IO modules
Definition: sim_interrupts.h:37
avr_regbit_t ices
input capture edge select
Definition: avr_timer.h:133
uint8_t cs_div[16]
Definition: avr_timer.h:129
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits)...
Definition: sim_avr_types.h:47
struct avr_timer_t avr_timer_t
Definition: avr_timer.h:59
int wgm_op_mode_kind
Definition: avr_timer.h:124
avr_regbit_t as2
asynchronous clock 32khz
Definition: avr_timer.h:127
Definition: avr_timer.h:80
Definition: avr_timer.h:46
avr_regbit_t icp
input capture pin, to link IRQs
Definition: avr_timer.h:132
Definition: avr_timer.h:64
avr_regbit_t com_pin
where comparator output is connected
Definition: avr_timer.h:107
uint64_t comp_cycles
Definition: avr_timer.h:108
avr_regbit_t wgm[4]
Definition: avr_timer.h:121
uint64_t tov_cycles
Definition: avr_timer.h:140
Definition: avr_timer.h:61
struct avr_timer_wgm_t avr_timer_wgm_t
Definition: avr_timer.h:79
uint32_t top
Definition: avr_timer.h:84
Definition: avr_timer.h:100
avr_timer_comp_t comp[AVR_TIMER_COMP_COUNT]
Definition: avr_timer.h:135
avr_io_addr_t r_icrh
Definition: avr_timer.h:119
struct avr_timer_comp_t avr_timer_comp_t
uint32_t size
Definition: avr_timer.h:84
Definition: avr_timer.h:37
Definition: avr_timer.h:111
uint32_t wgm_op_mode_size
Definition: avr_timer.h:125
comparator pins output IRQ
Definition: avr_timer.h:48
avr_io_addr_t r_icr
Definition: avr_timer.h:118
avr_timer_wgm_t mode
Definition: avr_timer.h:123
Definition: avr_timer.h:82
avr_io_addr_t r_tcnt
Definition: avr_timer.h:118
char name
Definition: avr_timer.h:114
uint16_t tov_top
current top value to calculate tnct
Definition: avr_timer.h:142
uint32_t bottom
Definition: avr_timer.h:84
Normal mode, OCnx disconnected.
Definition: avr_timer.h:70
struct avr_timer_t * timer
parent timer
Definition: avr_timer.h:103
avr_int_vector_t overflow
overflow
Definition: avr_timer.h:137
avr_int_vector_t interrupt
interrupt vector
Definition: avr_timer.h:102
Definition: avr_timer.h:38
avr_timer_wgm_t wgm_op[16]
Definition: avr_timer.h:122
clear OCnx on compare match
Definition: avr_timer.h:72
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
Definition: avr_timer.h:41
void avr_timer_init(avr_t *avr, avr_timer_t *port)
Definition: avr_timer.c:673
Definition: avr_timer.h:50