simulavr
1.1.0
|
Represents a timer interrupt line, Frontend for timer interrupts. More...
#include <timerirq.h>
Public Member Functions | |
IRQLine () | |
IRQLine (const std::string &name, int irqvector) | |
Creates a IRQLine instance, to use in connection with TimerIRQRegister and timers. More... | |
void | fireInterrupt (void) |
inform interrupt system, that an interrupt occured More... | |
bool | active () |
Protected Attributes | |
int | irqvector |
the IRQ vector number in interrupt table, starting with 0 More... | |
std::string | name |
name of this IRQ line More... | |
TimerIRQRegister * | irqreg |
pointer to irq registers, where this line is hold More... | |
Friends | |
class | TimerIRQRegister |
Represents a timer interrupt line, Frontend for timer interrupts.
This class represents a interrupt line and holds the connection to interrupt system and mask/flag register. It handles set and clear functionality for the registers, takes respect of mask bits and allows to fire a interrupt, if necessary.
Definition at line 42 of file timerirq.h.
IRQLine::IRQLine | ( | ) |
Definition at line 30 of file timerirq.cpp.
References irqreg.
IRQLine::IRQLine | ( | const std::string & | name, |
int | irqvector | ||
) |
Creates a IRQLine instance, to use in connection with TimerIRQRegister and timers.
Definition at line 36 of file timerirq.cpp.
References irqreg.
bool IRQLine::active | ( | ) |
Definition at line 42 of file timerirq.cpp.
References irqvector.
void IRQLine::fireInterrupt | ( | void | ) |
inform interrupt system, that an interrupt occured
Definition at line 46 of file timerirq.cpp.
References TimerIRQRegister::fireInterrupt(), irqreg, and irqvector.
Referenced by BasicTimerUnit::InputCapture(), HWTimerTinyX5::TransferOutputValues(), BasicTimerUnit::WGMfunc_ctc(), BasicTimerUnit::WGMfunc_fastpwm(), BasicTimerUnit::WGMfunc_normal(), BasicTimerUnit::WGMfunc_pcpwm(), and BasicTimerUnit::WGMfunc_pfcpwm().
|
friend |
Definition at line 45 of file timerirq.h.
|
protected |
pointer to irq registers, where this line is hold
Definition at line 49 of file timerirq.h.
Referenced by fireInterrupt(), IRQLine(), and TimerIRQRegister::registerLine().
|
protected |
the IRQ vector number in interrupt table, starting with 0
Definition at line 47 of file timerirq.h.
Referenced by active(), fireInterrupt(), and TimerIRQRegister::registerLine().
|
protected |
name of this IRQ line
Definition at line 48 of file timerirq.h.
Referenced by TimerIRQRegister::registerLine().