The way that tasks communicate with each other is by exchanging messages. Lightweight message queues are a simpler, low-overhead, implementation of standard MQX messages. Tasks send messages to lightweight message queues and receive messages from lightweight message queues. A message in the message pool has a fixed size, which is a multiple of 32 bits. Blocking reads and blocking writes are provided.
To use a lightweight message queue, a task executes the following steps:
There is no difference between the Lightweight Message Queue in the standard MQX and the MQX Lite. The list of Lightweight Message Queue component API functions ( _lwmsgq_ prefix) is provided together with detailed description of each function in the Freescale MQX™ Lite RTOS Reference Manual (MQXLITERM).
See the LWDEMO MQX Lite example code for the demonstration of the correct Lightweight Message Queue component usage. See MQX Lite Demo Applications for information about location of MQX Lite examples.