std1.0.0-beta-7 SafeC docs

std :: interrupt::vector_table

Struct std::VectorTable

#include <std/interrupt/vector_table.h> source

struct VectorTable {
    IrqHandler handlers[VTABLE_MAX_VECTORS];
    int count;
}

Fields

§int countsource

number of valid slots installed

Methods

§void install(int index, IrqHandler handler)source · definition

Install a handler for vector index.

§void remove(int index)source · definition

Remove handler for vector index (replaces with default_handler).

§IrqHandler get(int index) constsource · definition

Return the handler at index, or NULL if not installed.

§void dispatch(int index)source · definition

Dispatch vector index (calls installed handler or default).

§void set_default(IrqHandler handler)source · definition

Set the default handler called for unregistered vectors.