R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
mqData Struct Reference

Circular array backed fixed size buffer for data entities. More...

#include <R_RTOS_inc.h>

Data Fields

CData data
 Data stored within the message.
 
PartID pubID
 PartiID of the publisher.
 
DataType dataType
 Type of the given data.
 
DataSize dataSize
 size of the data in the message
 

Detailed Description

Circular array backed fixed size buffer for data entities.

Data is stored alongside the PartiID of the publisher, its size and the type the data. The Data in a queue is stored as a circular buffer.

Benefits of this method include:

  • Reliability, because there is defined behavior in case of an overflow
  • Data can be allocated beforehand, thus the data queue is effectively immortal
  • An array has constant time for accessing an element
  • Deletion(head/tail) or insertion(head/tail) of a new data element are also constant time operations

The documentation for this struct was generated from the following file: