R_RTOS
0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
|
Message queue which contains publishers, subscribers, data as well as information about the queue. More...
#include <R_RTOS_msgQueuing.h>
Data Fields | |
MQData | dataQueue [MAX_MSGQ_SIZE] |
circular buffer of Data | |
MQPrtcpnts | pubs |
list of all publishers for the queue | |
MQPrtcpnts | subs |
list of all subscribers to the queue | |
QID | queueID |
identifier of the message queue | |
uint8_t | dataQueueStart |
first element in the queue ( ALSO THE OFFSET FOR THE CIRCULAR ARRAY BUFFER!!! ) | |
uint8_t | dataQueueEnd |
last element in the queue | |
uint8_t | subscbrCnt |
amount of subscribers to this queue | |
Message queue which contains publishers, subscribers, data as well as information about the queue.
A message queue keeps track of its publishers and subscribers. Also data which is published to the queue is stored in a circular buffer. Therefore the Queue keeps track of the buffer start and end. The start of the buffer is therefore the offset to the index of the array. The queue keeps track of the number of subscribers.