
SCIOPTA - Real-Time Kernel
6-4 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
6 Messages
6.6 Message Declaration
The following method for declaring, accessing and writing message buffers minimizes the risk for bad message
accesses and provides standardized code which is easy to read and to reuse.
Very often designers of message passing real-time systems are using for each message type a separate message file
as include file. Every process can use specific messages by just using a simple include statement for this message.
You could use the extension .msg for such include files.
The SCIOPTA message declaration syntax can be divided into three parts:
• Message number definition
• Message structure definition
• Message union declaration
6.6.1 Message Number
6.6.1.1 Description
The declaration of the message number is usually the first line in a message declaration file. The message number
can also be described as message class. Each message class should have a unique message number for identification
purposes.
We recommend to write the message name in upper case letters.
6.6.1.2 Syntax
#define MESSAGE_NAME (<msg_nr>)
6.6.1.3 Parameter
msg_nr Message number (ID)
Message number which should be unique for each message class.
Comentarios a estos manuales