interrupt

package
v0.5.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package interrupt provides access to hardware interrupts. It provides a way to define interrupts and to enable/disable them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interrupt

type Interrupt struct {
	// contains filtered or unexported fields
}

Interrupt provides direct access to hardware interrupts. You can configure this interrupt through this interface.

Do not use the zero value of an Interrupt object. Instead, call New to obtain an interrupt handle.

func New

func New(id int, handler func(Interrupt)) Interrupt

New is a compiler intrinsic that creates a new Interrupt object. You may call it only once, and must pass constant parameters to it. That means that the interrupt ID must be a Go constant and that the handler must be a simple function: closures are not supported.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL