2.58 Interrupt Controller (INTC)
This Plib implements software abstraction for INTC Peripheral.
Library Interface
Interrupt Controller peripheral library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| INTC_Initialize | Configures and initializes the interrupt subsystem |
| INTC_SourceEnable | Enables the interrupt source |
| INTC_SourceDisable | Disables the interrupt source |
| INTC_SourceIsEnabled | Gets the enable state of the interrupt source |
| INTC_SourceStatusGet | Returns the status of the interrupt flag for the selected source |
| INTC_SourceStatusSet | Sets the status of the interrupt flag for the selected source |
| INTC_SourceStatusClear | Clears the status of the interrupt flag for the selected source |
| INTC_Enable | Enables all global interrupts. |
| INTC_Disable | Saves the current state of global interrupts and then disables all global interrupts. |
| INTC_Restore | Restores the state of global interrupts before the disable occurred. |
| INTC_ExternalInterruptCallbackRegister | Allows application to register callback for every external interrupt pin |
| INTC_ExternalInterruptEnable | Enables external interrupt on selected external interrupt pins |
| INTC_ExternalInterruptDisable | Disables external interrupt on selected external interrupt pins |
Data types and constants
| Name | Type | Description |
|---|---|---|
| INT_SOURCE | Enum | Identifies interrupt sources |
| EXTERNAL_INT_PIN | Enum | Identifies the active external interrupt pins |
| EXTERNAL_INT_PIN_CALLBACK | Typedef | Pointer to a external Pin-Event handler function |
Note: Not all APIs maybe implemented. See the specific device
family section for available APIs.
