cz.zcu.fav.kiv.jsimcasestudies.watersystem
Interface InterruptControllerInterface

All Known Implementing Classes:
InterruptController

public interface InterruptControllerInterface

An interface shared between the control program and the model of its environment. Methods of the interface are aimed to be called from the control program side. The interface must be implemented at the environment model side. Then it serves as a model of HW interrupt controller, i.e. a device that passes interrupts (events to be served) from the environment to the control program.

Version:
1.0 from 2004-04-30
Author:
St.R.

Method Summary
 void bindInterrupt(int level, InterruptEntryInterface ie)
          Binds the address of an interrupt service routine to a level of interrupt.
 void maskInterrupt(int level, boolean mask)
          It sets mask of the given level of interrupts.
 

Method Detail

bindInterrupt

public void bindInterrupt(int level,
                          InterruptEntryInterface ie)
Binds the address of an interrupt service routine to a level of interrupt. It has to be called from the control program side to define the function that will serve the given level of interrupts.

Parameters:
level - Level of interrupts.
ie - Interrupt entry (it contains the service routine)

maskInterrupt

public void maskInterrupt(int level,
                          boolean mask)
It sets mask of the given level of interrupts. Value "true" of the mask means that interrupts are not served on the contrary to the "false" value.

Parameters:
level - Level of interrupts.
mask - Value of the mask to be set


Copyright © 2000-2004 University of West Bohemia, FAV-KIV. All Rights Reserved. Build date 20040510