Skip to content

Ext Int Enumerations

Ryan Summers edited this page Sep 6, 2015 · 3 revisions

External Interrupt Enumerations

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

External Interrupt Enumerations


Interrupt

Definition

    typedef enum {
        INT0,
        INT1,
        INT2,
        INT3,
        INT4
    }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 pullup, pulldown, or no internal resistor should be used. A pullup resistor will pull a signal high when nothing is connected to a pin, while a pulldown will pull a line low when nothing is connected. Pullup or pulldown resistors should be used if an input may leave a pin "floating".

top

Clone this wiki locally