CC13xx Driver Library
[event] Event

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...
 

Detailed Description

Function Documentation

static void EventRegister ( uint32_t  ui32EventSubscriber,
uint32_t  ui32EventSource 
)
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:

Note
Each event subscriber can only receive a sub-set of the event sources!
Switching the event source is not glitch free, so it is imperative that the subscriber is disabled for interrupts when switching the event source. The behavior is undefined if not disabled.
Parameters
ui32EventSubscriberis the configurable event subscriber to receive the event. Click the event subscriber to see the list of valid event sources in the register description.
ui32EventSourceis the specific event that must be acted upon.
  • Format: EVENT_[subscriber_name]_EV_[event_enum] (see explanation above)
Returns
None

Definition at line 142 of file event.h.

static void EventSwEventClear ( uint32_t  ui32SwEvent)
inlinestatic

Clears software event.

Parameters
ui32SwEventis the software event number.
  • 0 : SW Event 0
  • 1 : SW Event 1
  • 2 : SW Event 2
  • 3 : SW Event 3
Returns
None

Definition at line 216 of file event.h.

static uint32_t EventSwEventGet ( uint32_t  ui32SwEvent)
inlinestatic

Gets software event status.

Parameters
ui32SwEventis the software event number.
  • 0 : SW Event 0
  • 1 : SW Event 1
  • 2 : SW Event 2
  • 3 : SW Event 3
Returns
Returns current value of requested software event.
  • 0 : Software event is de-asserted.
  • 1 : Software event is asserted.

Definition at line 241 of file event.h.

static void EventSwEventSet ( uint32_t  ui32SwEvent)
inlinestatic

Sets software event.

Setting a software event triggers the event if the value was 0 before.

Note
The software event must be cleared manually after the event has triggered the event subscriber.
Parameters
ui32SwEventis the software event number.
  • 0 : SW Event 0
  • 1 : SW Event 1
  • 2 : SW Event 2
  • 3 : SW Event 3
Returns
None
See also
EventSwEventClear()

Definition at line 193 of file event.h.