Represents a timer interrupt line, Frontend for timer interrupts. More...
#include <timerirq.h>
Public Member Functions | |
IRQLine (const std::string &name, int irqvector) | |
Creates a IRQLine instance, to use in connection with TimerIRQRegister and timers. | |
void | fireInterrupt (void) |
inform interrupt system, that an interrupt occured | |
Protected Attributes | |
int | irqvector |
the IRQ vector number in interrupt table, starting with 0 | |
std::string | name |
name of this IRQ line | |
TimerIRQRegister * | irqreg |
pointer to irq registers, where this line is hold | |
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 | ( | const std::string & | name, | |
int | irqvector | |||
) |
Creates a IRQLine instance, to use in connection with TimerIRQRegister and timers.
Definition at line 30 of file timerirq.cpp.
References irqreg.
void IRQLine::fireInterrupt | ( | void | ) |
inform interrupt system, that an interrupt occured
Definition at line 36 of file timerirq.cpp.
References TimerIRQRegister::fireInterrupt(), irqreg, and irqvector.
Referenced by BasicTimerUnit::InputCapture(), BasicTimerUnit::WGMfunc_ctc(), BasicTimerUnit::WGMfunc_fastpwm(), BasicTimerUnit::WGMfunc_normal(), BasicTimerUnit::WGMfunc_pcpwm(), and BasicTimerUnit::WGMfunc_pfcpwm().
friend class TimerIRQRegister [friend] |
Definition at line 45 of file timerirq.h.
TimerIRQRegister* IRQLine::irqreg [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().
int IRQLine::irqvector [protected] |
the IRQ vector number in interrupt table, starting with 0
Definition at line 47 of file timerirq.h.
Referenced by fireInterrupt(), and TimerIRQRegister::registerLine().
std::string IRQLine::name [protected] |
name of this IRQ line
Definition at line 48 of file timerirq.h.
Referenced by TimerIRQRegister::registerLine().