-
Notifications
You must be signed in to change notification settings - Fork 0
Ext Int Structures
bkallaher edited this page Sep 6, 2015
·
7 revisions
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.
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:
extIntspecifies which interrupt should be modified. -
pin:
pinspecifies 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.
SUBLIBinal was created by the Palouse Robosub Club.