2.40 External Interrupt Controller (EIC)
This Plib implements software abstraction for EIC Peripheral.
Library Interface
External Interrupt Controller peripheral library provides the following interfaces:
Functions
Name | Description |
---|---|
EIC_Initialize | Initializes given instance of EIC peripheral |
EIC_InterruptEnable | Enable external interrupt on the specified pin |
EIC_InterruptDisable | Disable external interrupt on the specified pin |
EIC_CallbackRegister | Registers the function to be called when an interrupt condition has been sensed on the pin |
EIC_SetPolarity | Sets the polarity of detection |
EIC_FreezeConfiguration | Freeze EIC configuration |
EIC_NMICallbackRegister | Registers the function to be called when an interrupt condition has been sensed on the NMI pin |
Data types and constants
Name | Type | Description |
---|---|---|
EIC_PIN | Enum | Identifies the available EIC pins |
EIC_POLARITY | Enum | Identifies all possible EIC polarities |
EIC_CALLBACK | Typedef | Defines the data type and function signature of the EIC peripheral callback function |
EIC_NMI_CALLBACK | Typedef | Defines the data type and function signature of the EIC peripheral NMI callback function |
Note: Not all APIs maybe implemented. See the specific device family
section for available APIs.