ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

Defines | Functions

chmsg.h File Reference

Messages macros and structures. More...

Go to the source code of this file.

Defines

#define chMsgIsPendingI(tp)   ((tp)->p_msgqueue.p_next != (Thread *)&(tp)->p_msgqueue)
 Evaluates to TRUE if the thread has pending messages.
#define chMsgGetI(tp)   ((tp)->p_msgqueue.p_next->p_msg)
 Returns the first message in the queue.

Functions

msg_t chMsgSend (Thread *tp, msg_t msg)
 Sends a message to the specified thread.
msg_t chMsgWait (void)
 Suspends the thread and waits for an incoming message.
msg_t chMsgGet (void)
 Returns the next message in the queue.
void chMsgRelease (msg_t msg)
 Releases the thread waiting on top of the messages queue.

Detailed Description

Messages macros and structures.

Definition in file chmsg.h.


Generated on Sun Oct 24 2010 09:40:38 for ChibiOS/RT by doxygen 1.7.1