arch_avr_timer.h Source File
|
yasimavr
|
Loading...
Searching...
No Matches
arch_avr_timer.h
Go to the documentation of this file.
251 };
@ Signal_OVF
Raised on a overflow event, no data is carried.
Definition arch_avr_timer.h:237
Definition sim_signal.h:227
Definition sim_signal.h:137
Generic helper to manage a typical Interrupt Flag/Enable in a I/O register.
Definition sim_interrupt.h:324
virtual bool ctlreq(ctlreq_id_t req, ctlreq_data_t *data)
Definition sim_peripheral.cpp:79
virtual void ioreg_write_handler(reg_addr_t addr, const ioreg_write_t &data) override
Definition sim_peripheral.cpp:117
virtual uint8_t ioreg_read_handler(reg_addr_t addr, uint8_t value) override
Definition sim_peripheral.cpp:91
virtual uint8_t ioreg_peek_handler(reg_addr_t addr, uint8_t value) override
Definition sim_peripheral.cpp:106
Definition sim_types.h:431
Definition arch_avr_timer.cpp:38
Configuration structure for one COM setting.
Definition arch_avr_timer.h:147
Configuration structure for one compare channel.
Definition arch_avr_timer.h:137
Configuration structure for clock source/prescaler options.
Definition arch_avr_timer.h:121
TimerCounter::TickSource source
Definition arch_avr_timer.h:122
Configuration structure for timer modes.
Definition arch_avr_timer.h:157
bool double_slope
Controls the slope mode , false=single, true=double.
Definition arch_avr_timer.h:167
unsigned int com_variant
Controls which COM config variant is used.
Definition arch_avr_timer.h:171
Top top
Controls the counter value used for TOP.
Definition arch_avr_timer.h:161
OVF ovf
Controls when the OVerFlow interrupt flag is set.
Definition arch_avr_timer.h:159
unsigned int fixed_top_exp
Controls the fixed top value when top is set to Top_OnFixed. The fixed value is (2^n - 1),...
Definition arch_avr_timer.h:163
bool disable_foc
If true, a Forced Output Compare strobe has no effect.
Definition arch_avr_timer.h:169
OCR ocr
Controls when the OC compare values are updated from the registers.
Definition arch_avr_timer.h:165
Configuration structure for one interrupt vector.
Definition arch_avr_timer.h:129
reg_addr_t reg_icr
Input compare register address.
Definition arch_avr_timer.h:203
@ Top_OnMax
Maximum permitted value (0xFF for 8-bits counter, 0xFFFF for 16-bits counters)
Definition arch_avr_timer.h:85
regbit_compound_t rbc_mode
Regbit for the timer mode control register.
Definition arch_avr_timer.h:199
vector_config_t vect_icr
Input Capture Interrupt configuration.
Definition arch_avr_timer.h:211
regbit_t rb_clock
Regbit for the clock/prescaler configuration register.
Definition arch_avr_timer.h:197
std::vector< mode_config_t > modes
List of the timer mode configurations.
Definition arch_avr_timer.h:183
std::vector< OC_config_t > oc_channels
List of Output Compare channel configurations.
Definition arch_avr_timer.h:194
std::vector< COM_config_t > COM_variant_t
Array of COM variants.
Definition arch_avr_timer.h:175
@ OCR_UpdateOnTop
Update on TOP event.
Definition arch_avr_timer.h:101
@ OCR_UpdateOnBottom
Update on BOTTOM event.
Definition arch_avr_timer.h:103
bool is_16bits
Boolean indicating if the timer is 8-bits (false) or 16-bits (true)
Definition arch_avr_timer.h:178
@ COM_NoChange
No change to the output.
Definition arch_avr_timer.h:69
@ COM_ToggleA
Toggle the output for channel A, no change for other channels.
Definition arch_avr_timer.h:77
@ COM_Clear
Clear the output (set to zero)
Definition arch_avr_timer.h:73
reg_addr_t reg_int_flag
Interrupt flag register address.
Definition arch_avr_timer.h:207
vector_config_t vect_ovf
Overflow Interrupt configuration.
Definition arch_avr_timer.h:209
reg_addr_t reg_int_enable
Interrupt enable register address.
Definition arch_avr_timer.h:205
reg_addr_t reg_cnt
Counter register address.
Definition arch_avr_timer.h:201
std::vector< clock_config_t > clocks
List of clock source configurations.
Definition arch_avr_timer.h:181
Definition sim_peripheral.h:252
Definition sim_peripheral.h:237
Definition sim_ioreg.h:39
Definition sim_signal.h:39
Generated by