ChibiOS  21.6.0
nil/include/chmsg.h File Reference

Nil RTOS synchronous messages header file. More...

Go to the source code of this file.

Macros

Macro Functions
#define chMsgWaitS()   chMsgWaitTimeoutS(TIME_INFINITE)
 Suspends the thread and waits for an incoming message. More...
 
#define chMsgGet(tp)   ((tp)->sntmsg)
 Returns the message carried by the specified thread. More...
 
#define chMsgReleaseS(tp, msg)
 Releases the thread waiting on top of the messages queue. More...
 

Functions

msg_t chMsgSend (thread_t *tp, msg_t msg)
 Sends a message to the specified thread. More...
 
thread_tchMsgWait (void)
 Suspends the thread and waits for an incoming message. More...
 
thread_tchMsgWaitTimeout (sysinterval_t timeout)
 Suspends the thread and waits for an incoming message or a timeout to occur. More...
 
thread_tchMsgWaitTimeoutS (sysinterval_t timeout)
 Suspends the thread and waits for an incoming message or a timeout to occur. More...
 
void chMsgRelease (thread_t *tp, msg_t msg)
 Releases a sender thread specifying a response message. More...
 

Detailed Description

Nil RTOS synchronous messages header file.

Definition in file nil/include/chmsg.h.