simulavr  1.1.0
IRQLine Class Reference

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

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() [1/2]

IRQLine::IRQLine ( )

Definition at line 30 of file timerirq.cpp.

References irqreg.

◆ IRQLine() [2/2]

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.

Member Function Documentation

◆ active()

bool IRQLine::active ( )

Definition at line 42 of file timerirq.cpp.

References irqvector.

◆ fireInterrupt()

Friends And Related Function Documentation

◆ TimerIRQRegister

friend class TimerIRQRegister
friend

Definition at line 45 of file timerirq.h.

Member Data Documentation

◆ irqreg

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

◆ irqvector

int IRQLine::irqvector
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().

◆ name

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: