2.58 Interrupt Controller (INTC)

This Plib implements software abstraction for INTC Peripheral.

Library Interface

Interrupt Controller peripheral library provides the following interfaces:

Functions

NameDescription
INTC_InitializeConfigures and initializes the interrupt subsystem
INTC_SourceEnableEnables the interrupt source
INTC_SourceDisableDisables the interrupt source
INTC_SourceIsEnabledGets the enable state of the interrupt source
INTC_SourceStatusGetReturns the status of the interrupt flag for the selected source
INTC_SourceStatusSetSets the status of the interrupt flag for the selected source
INTC_SourceStatusClearClears the status of the interrupt flag for the selected source
INTC_EnableEnables all global interrupts.
INTC_DisableSaves the current state of global interrupts and then disables all global interrupts.
INTC_RestoreRestores the state of global interrupts before the disable occurred.
INTC_ExternalInterruptCallbackRegisterAllows application to register callback for every external interrupt pin
INTC_ExternalInterruptEnableEnables external interrupt on selected external interrupt pins
INTC_ExternalInterruptDisableDisables external interrupt on selected external interrupt pins

Data types and constants

NameTypeDescription
INT_SOURCEEnumIdentifies interrupt sources
EXTERNAL_INT_PINEnumIdentifies the active external interrupt pins
EXTERNAL_INT_PIN_CALLBACKTypedefPointer to a external Pin-Event handler function
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.