-
Notifications
You must be signed in to change notification settings - Fork 0
Ext Int 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.
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.
Definition
void disable_Interrupt(Interrupt extInt);
Description:
This function simply disables the interrupt specified in the interrupt parameter.
Parameters:
Definition
void enable_Interrupt(Interrupt extInt);
Description: This function simply enables the interrupt specified in the interrupt parameter.
Parameters:
SUBLIBinal was created by the Palouse Robosub Club.