Skip to content

Ext Int Enumerations

Ryan Summers edited this page Dec 31, 2015 · 3 revisions

External Interrupt Enumerations

This page contains information about the external interrupt enumerations that are used within the SUBLIBinal External Interrupt peripheral library. Please refer to the following links to be redirected to documentation on the appropriate enumeration.

External Interrupt Enumerations


Interrupt

Definition

    typedef enum {
        Interrupt_0,
        Interrupt_1,
        Interrupt_2,
        Interrupt_3,
        Interrupt_4
    }Interrupt;

The Interrupt enumeration is simply used to determine which interrupt will be configured.

top


Polarity

Definition

    typedef enum {
        falling,
        rising
    } Polarity;

The Polarity enumeration is used to specify whether an interrupt will be triggered on either a rising or a falling edge. The microcontroller does not support trigger on multiple edges.

top


Resistor

Definition

    typedef enum {
        none,
        pullup,
        pulldown
    } Resistor;

The Resistor enumeration is used to determine whether an internal pull-up, pull-down, or no internal resistor should be used. A pull-up resistor will pull a signal high when nothing is connected to a pin, while a pull-down will pull a line low when nothing is connected. Pull-up or pull-down resistors should be used if an input may leave a pin "floating".

top

Clone this wiki locally