20.13 Data Queue Information (dataqueue[])
Here, each data queue is defined.

Format

Parentheses < >show the user input part.

 dataqueue[ <1. ID number> ] {
     name          = <2. ID name (name)>;
     buffer_size   = <3. Data count (buffer_size)>;
     wait_queue    = <4. Wait queue attribute (wait_queue)>;
 };


1 ) ID number

- Description
Define the data queue ID number.


- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cfg600px assigns the ID number automatically.


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 ) Data count (buffer_size)

- Description
Define the number of data that the data queue can be stored.


- Definition format
Numeric value


- Definition range
From 0 to 65535


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


4 ) Wait queue attribute (wait_queue)

- Description
Define the wait queue attribute for sending.
Note, task wait queue for receiving is managed in FIFO order.



- Definition format
Symbol


- Definition range
Select either of the following:


TA_TFIFO: FIFO order

TA_TPRI: Task current priority order
Among tasks with the same current priority, they are queued in FIFO order.


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