R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_msgQueuing.c File Reference
#include "R_RTOS_msgQueuing.h"
#include "R_RTOS_memMngr.h"
#include "R_RTOS_monitor.h"
#include "R_RTOS_BitMagic.h"

Functions

static RetCode msgQ_emptyMsgQ (MsgQ *const queue)
 Empty and clean up the whole message queue. More...
 
static RetCode msgQ_notifySubscrbrs (MQPrtcpnts subLst)
 Notify all subscribers to the message queue about a new message. More...
 
RetCode msgQ_initQueue (QID msgQID)
 Initialize the message queue with the given QID. More...
 
RetCode msgQ_delQueue (const QID msgQID)
 Delete the message queue with the given QID. More...
 
RetCode msgQ_regTskPub (PTskTCB const pubTsk, const QID msgQID)
 Register a task to the message queue related to the QID as a publisher. More...
 
RetCode msgQ_regTskSub (PTskTCB const subTsk, const QID msgQID)
 Register a task to the message queue related to the QID as a subscriber. More...
 
RetCode msgQ_regSysSub (const SysFktID subSysFktID, const QID msgQID)
 Register a system function to the message queue related to the QID as a subscriber. More...
 
RetCode msgQ_unSub (const QID msgQID, const uint16_t id)
 Unsubscribe the participant specified by id from the message queue related to the QID. More...
 
RetCode msgQ_pubDataToQ (const QID msgQID, const DataSize size, const DataType type, CData const data)
 Publish constant data of a given size and type to the message queue related to the QID. More...
 
RetCode msgQ_readDataFrmQ (const QID msgQID, const TskID tskID, PMQData *data)
 Read the most recent unread data from the message queue related to QID. More...
 
RetCode msgQ_takeDataFrmQ (const QID msgQID, const TskID tskID, PMQData *data)
 

Variables

SysFkt sys_SysFkt []
 System function array to hold various kinds of system functions. System functions can be referenced by their index in this array.
 
static MsgQ msgQ_AR [AMOUNT_OF_MSGQ]
 Array of all message queues. More...
 

Detailed Description