Functions | |
static void | EventRegister (uint32_t ui32EventSubscriber, uint32_t ui32EventSource) |
Connects an event to an event subscriber via Event Fabric. More... | |
static void | EventSwEventSet (uint32_t ui32SwEvent) |
Sets software event. More... | |
static void | EventSwEventClear (uint32_t ui32SwEvent) |
Clears software event. More... | |
static uint32_t | EventSwEventGet (uint32_t ui32SwEvent) |
Gets software event status. More... | |
The event fabric consists of two event modules. One in the MCU power domain (MCU event fabric) and the other in the AON power domain (AON event fabric). The MCU event fabric is one of the subscribers to the AON event fabric. For more information on AON event fabric, see AON event API.
The MCU event fabric is a combinational router between event sources and event subscribers. Most event subscribers have statically routed event sources but several event subscribers have configurable event sources which is configured in the MCU event fabric through this API. Although configurable only a subset of event sources are available to each of the configurable event subscribers. This is explained in more details in the function EventRegister() which does all the event routing configuration.
MCU event fabric also contains four software events which allow software to trigger certain event subscribers. Each of the four software events is an independent event source which must be set and cleared in the MCU event fabric through the functions:
|
inlinestatic |
Connects an event to an event subscriber via Event Fabric.
This function connects event sources to event subscribers.
It is not possible to read event status in this module (except software events). Event status must be read in the module that contains the event source. How a specific event subscriber reacts to an event is configured and documented in the respective modules.
For a full list of configurable and constant mapped event sources to event subscribers see the register descriptions for Event Fabric.
Defines for event subscriber argument (ui32EventSubscriber
) have the format:
EVENT_O_[subscriber_name]
Defines for event source argument (ui32EventSource
) must have the following format where valid event_enum
values are found in the register description :
EVENT_[subscriber_name]_EV_[event_enum]
Examples of valid defines for ui32EventSource:
ui32EventSubscriber | is the configurable event subscriber to receive the event. Click the event subscriber to see the list of valid event sources in the register description.
|
ui32EventSource | is the specific event that must be acted upon.
|
|
inlinestatic |
Clears software event.
ui32SwEvent | is the software event number.
|
|
inlinestatic |
Gets software event status.
ui32SwEvent | is the software event number.
|
|
inlinestatic |
Sets software event.
Setting a software event triggers the event if the value was 0 before.
ui32SwEvent | is the software event number.
|