19.13 Message Buffer Information (message_buffer[])
Here, each message buffer is defined.

Format

Parentheses < >show the user input part.

 message_buffer[ <1. ID number> ] {
    name        = <2. ID name (name)>;
    mbf_size    = <3. Buffer size (mbf_size)>;
    mbf_section = <4. Section name assigned to the message buffer area (mbf_section)>;
    max_msgsz   = <5. Maximum message size (max_msgsz)>
 };


1 ) ID number

- Description
Define the message buffer ID number.


- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cfg600 assigns the ID number automatically.


- Note
The ID numbers must be assigned without an omission beginning with 1. Therefore, when specifying an ID number, be sure that the specified value is equal to or less than the number of objects defined.


2 ) ID name (name)

- Description
Define the ID name. The specified ID name is output to the system information header file (kernel_id.h) in the form of the following.


 #define   <ID name>   <ID number>
- Definition format
Symbol


- Definition range
-


- When omitting
Cannot be omitted.


3 ) Buffer size (mbf_size)

- Description
Define the size of the message buffer in bytes.


- Definition format
Numeric value


- Definition range
0, or multiple of 4 in the range from 8 to 65532


- When omitting
The set value in the default system configuration file (factory setting: 0) applied.


4 ) Section name assigned to the message buffer area (mbf_section)

- Description
Define the section name to be assigned to the message buffer area.
When mbf_size > 0, the cfg600 generates the message buffer area with the size specified by buffer_size to the section specified by mbf_section. The section attribute is "DATA", and the alignment number is 4.
When linking, be sure to locate this section in the RAM area. Note, this section must not be located to address 0.




- Definition format
Symbol


- Definition range
-


- When omitting
The set value in the default system configuration file (factory setting: "BRI_HEAP") applied.


5 ) Maximum message size (max_msgsz)

- Description
Define the maximum message size of the message buffer in bytes.
When mbf_size > 0, max_msgsz must be less than or equal to "mbf_size - 4".



- Definition format
Numeric value


- Definition range
From 1 to 65528


- When omitting
The set value in the default system configuration file (factory setting: 4) applied.