2.56 Interprocessor Communication (IPC)

Interprocessor Communication module has 32 interrupt sources. Each source has a set of Enable, Disable, Clear, Set, Mask and Status registers. The interrupt sources are ORed and the IPC interrupt output line is connected to the interrupt controller input.

Using the Library

This library is used to configure 32 interrupt sources IRQ0 to IRQ31. Each source can be enabled or disabled using Enable/DisableIRQ function. Also, it is possible to set the interrupt source using SetIRQ function and clear the interrupt source using ClearIRQ function.

Library Interface

Interprocessor Communication peripheral library provides the following interfaces:

Functions

NameDescription
IPCx_InitializeInitializes IPC peripheral as per configurations
IPCx_SetIRQHandlerRegisters the callback function for interrupt handler
IPCx_EnableIRQEnables the given inteerupt
IPCx_DisableIRQClears the given interrupt
IPCx_SetIRQSets the given interrupt number
IPCx_ClearIRQClears the given interrupt
IPCx_GetPendingIRQsReads all the pending interrupts
IPCx_GetEnabledIRQsReads all the enabled interrupts
IPCx_GetIRQStatusReads status of all the interrupts

Data types and constants

NameTypeDescription
IPC_CALLBACKTypedefDefines the function pointer data type and function signature for the IPCx callback function
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.