2.42 Event System Interface (EVSYS)

The Event System (EVSYS) allows autonomous, low-latency and configurable communication between peripherals. Several peripherals can be configured to generate and/or respond to signals known as events. The exact condition to generate an event, or the action taken upon receiving an event, is specific to each peripheral. Peripherals that respond to events are called event users. Peripherals that generate events are called event generators. A peripheral can have one or more event generators and can have one or more event users. Communication is made without CPU intervention and without consuming system resources such as bus or RAM bandwidth. This reduces the load on the CPU and other system resources, compared to a traditional interrupt-based system.

Using The Library

Configure the EVSYS in MCC by adding a EVSYS channel and configuring the appropriate event generator. Add a event user and configure it to listen to the configured EVSYS channel. Make sure the involved peripherals are correctly configured to enable event generation and using the events in their respective peripheral configurations.

Library Interface

Event System Interface peripheral library provides the following interfaces:

Functions

NameDescription
EVSYS_InitializeInitializes EVSYS module
EVSYS_GeneratorEnableEnables EVSYS generator
EVSYS_GeneratorDisableDisables EVSYS generator
EVSYS_UserEnableEnables EVSYS user
EVSYS_UserDisableDisables EVSYS user
EVSYS_InterruptEnableEnables EVSYS interrupt
EVSYS_InterruptDisableDisables EVSYS interrupt
EVSYS_CallbackRegisterAllows application to register a callback function

Data types and constants

NameTypeDescription
EVSYS_INT_MASKEnumIdentifies the Event system interrupt to be enabled or disabled
EVSYS_CHANNELEnumIdentifies the channel to be used
EVSYS_CALLBACKTypedefPointer to a EVSYS CallBack function
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.