Skip to content
bkallaher edited this page Sep 6, 2015 · 7 revisions

External Interrupt Structures

This page contains information about the internal structures used for external interrupt configuration. Please refer to the following links to be redirected to the appropriate documentation.

Structures:


Interrupt Config

Definition

    typedef struct INTERRUPT_CONFIG{
        Interrupt extInt;
        Pin pin;
        Polarity polarity;
        int enable;
        Resistor resistor;
        void *callback;
    } Interrupt_Config;

The Interrupt_Config structure is used for interrupt initialization and updating.

Parameters

  • extInt: extInt specifies which interrupt should be modified.
  • pin: pin specifies which pin should be used as the interrupt trigger.
  • polarity: this specifies what type of edge an interrupt should be triggered on.
  • enable: this defines whether an interrupt is enabled on initialization or not.
  • resistor: this specifies whether a pull-up or pull-down resistor should be used internally.
  • callback: This is the callback function that will be triggered when an interrupt is generated. Please refer to the callback function for more information.

top

Clone this wiki locally