Skip to content
Ryan Summers edited this page Dec 31, 2015 · 5 revisions

External Interrupt Functions

This page outlines the functions provided in the external interrupt peripheral library in SUBLIBinal. Please select the relevant function from the list below to be redirected to documentation.

Functions:


initialize_Interrupt

Definition

Error initialize_Interrupt(Interrupt_Config config);

Description:
This function initializes an interrupt with the supplied configuration. Resistor configuration and tristate variables are contained within this function and do not need to be implemented externally.

Parameters:

  • Interrupt_Config config: this parameter is a completely filled out Interrupt_Config structure. All parameters should be initialized to some known value to ensure desired interrupt functionality is achieved.

Return

This function will return an error code associated with its success:

  • ERR_INVALID_ENUM: This will be returned if the enumeration was not a valid enumeration for an external interrupt.
  • ERR_INVALID_PIN: This will be returned if the specified pin is not available for the specified interrupt.
  • ERR_INVALID_POLARITY: This will be returned if the polarity is specified as rising_or_falling. External interrupts only support single edge triggers.

top


disable_Interrupt

Definition

void disable_Interrupt(Interrupt extInt);

Description:
This function simply disables the interrupt specified in the interrupt parameter.

Parameters:

top


enable_Interrupt

Definition

void enable_Interrupt(Interrupt extInt);

Description: This function simply enables the interrupt specified in the interrupt parameter.

Parameters:

top


Clone this wiki locally