R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_events.h
Go to the documentation of this file.
1 
13 #ifndef HEADERS_R_RTOS_EVENTS_H_
14 #define HEADERS_R_RTOS_EVENTS_H_
15 
16 #include "R_RTOS_inc.h"
17 
18 
31 typedef struct evtQueue
32 {
33  struct evtQueue *ptrNxtEvtQ;
35 } EVTQueue;
36 
44 void evt_INIT( void );
45 
58  PTskTCB const tsk,
59  EVTQSlots evtMask,
60  const SysTicks maxWaitTime );
61 
71 RetCode evt_SendEvt( const EvtNr evtNr );
72 
82 RetCode evt_GiveUpOnEvts( PTskTCB const tsk );
83 
88 #endif /* HEADERS_R_RTOS_EVENTS_H_ */
uint8_t SysTicks
Amount of SysTicks.
Definition: R_RTOS_inc.h:511
TskID tskID
TskID stored with the event queue.
Definition: R_RTOS_events.h:34
uint32_t EVTQSlots
Used as a bitarry for slots of an event queue.
Definition: R_RTOS_inc.h:490
Defines, Typedefs and Macros for the whole system.
void evt_INIT(void)
Initialize the event service.
Definition: R_RTOS_events.c:28
A simple singly linked list serving as one event queue.
Definition: R_RTOS_events.h:31
uint8_t TskID
Task identification number (ID).
Definition: R_RTOS_inc.h:532
struct evtQueue * ptrNxtEvtQ
Pointer to next event queue.
Definition: R_RTOS_events.h:33
RetCode evt_WaitForEvts(PTskTCB const tsk, EVTQSlots evtMask, const SysTicks maxWaitTime)
Sets the task up to wait for the events specified by evtMask.
Definition: R_RTOS_events.c:44
RetCode evt_GiveUpOnEvts(PTskTCB const tsk)
Removes the specified task from all event queues it was queued into.
Definition: R_RTOS_events.c:128
Task Control Block.
Definition: R_RTOS_inc.h:1322
struct evtQueue EVTQueue
evtQueue
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424
uint8_t EvtNr
Number of an event.
Definition: R_RTOS_inc.h:481
RetCode evt_SendEvt(const EvtNr evtNr)
Sends the event specified by evtNr to all entities in the corresponding event queue.
Definition: R_RTOS_events.c:93