Class Interrupt

    • Field Detail

      • nofUnexpInterrupts

        public static int nofUnexpInterrupts
        Each interrupt request, which cannot be handled by a registered interrupt handler increments this counter
      • nofInterrupts

        static int nofInterrupts
      • enableRegAdr

        public int enableRegAdr
        An interrupt handler must specify the address of the register which contains its enable bit or bits. The enable bit will be set whenever this interrupt should be active.
      • enBitMask

        public int enBitMask
        The enable bit mask gives the position of the enable bit (or bits if several are present).
      • flagRegAdr

        public int flagRegAdr
        An interrupt handler must specify the address of the register which contains its flag bit or bits. The flag bit will indicate, whether a interrupt has occurred.
      • flagMask

        public int flagMask
        The flag mask gives the position of the flag (or flags if several are present).
    • Constructor Detail

      • Interrupt

        public Interrupt()
    • Method Detail

      • action

        public void action()
        This is the interrupt handler. Please make sure to overwrite this method for your own interrupt handlers.
      • interrupt

        static void interrupt()
      • install

        public static void install​(Interrupt interrupt,
                                   int level,
                                   boolean internal)
        Used to install user defined interrupt handlers.
        Parameters:
        interrupt - Instance of user defined interrupt handler
        level - One of the 16 allowed hardware levels for interrupts
        internal - true: this is a handler for one of the internal peripherals interrupts. false: this is a handler for one of the external interrupts.