Jump to main content

##

# 1.2.8 Interrupt System Service

This library provides a low-level abstraction of the Interrupt System Service Library that is available on the Microchip family micro-controllers with a convenient C language interface. It can be used to simplify low-level access to the module without the necessity of interacting directly with the module's registers/PLIB, thereby hiding differences from one micro-controller variant to another.

Library Interface

INT system service provides the following interfaces:

Functions

Name | Description
--- | ---
SYS_INT_Enable | Enable Global Interrupt
SYS_INT_Disable | Disable Global Interrupt
SYS_INT_IsEnabled | Returns the interrupt controller's global enable/disable status
SYS_INT_Restore | Restores the interrupt controller to the state specified in the parameter
SYS_INT_SourceEnable | Enables the specified interrupt source
SYS_INT_SourceDisable | Disables the specified interrupt source
SYS_INT_SourceRestore | Restores an interrupt vector to the state specified in the parameter
SYS_INT_SourceIsEnabled | Gets the enable/disable status of the specified interrupt source
SYS_INT_SourceStatusGet | Gets the pending status of the specified interrupt source
SYS_INT_SourceStatusSet | Sets the pending status of the specified interrupt source manually
SYS_INT_SourceStatusClear | Clears the pending status of the specified interrupt source

Data types and constants

Name | Type | Description
--- | --- | ---
INT_SOURCE | Typedef | Defines the data type for all the interrupt sources associated with the interrupt controller of the device