IRQLine Class Reference

Represents a timer interrupt line, Frontend for timer interrupts. More...

#include <timerirq.h>

Collaboration diagram for IRQLine:
Collaboration graph
[legend]

List of all members.

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
TimerIRQRegisterirqreg
 pointer to irq registers, where this line is hold

Friends

class TimerIRQRegister

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class TimerIRQRegister [friend]

Definition at line 45 of file timerirq.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:48 2012 for Simulavr by  doxygen 1.6.3