Nut/OS  4.10.3
API Reference
msg.c File Reference
#include <sys/heap.h>
#include <sys/event.h>
#include <sys/atom.h>
#include <sys/thread.h>
#include <sys/msg.h>
#include <stddef.h>
Include dependency graph for msg.c:

Go to the source code of this file.

Data Structures

struct  _NUTMSGTMR


#define ASSERT(x)


NUTMSGQNutMsgQCreate (uint8_t bits)
 Allocate a new message que.
int NutMsgQBroadcast (uint8_t id, int param, void *data)
 Send a message to all message ques.
int NutMsgQPost (NUTMSGQ *que, uint8_t id, int param, void *data)
 Send a message to a que and return immediately.
int NutMsgQSend (NUTMSGQ *que, uint8_t id, int param, void *data)
 Send a message to a que and yields so that a waiting thread can act on the message.
int NutMsgQFull (NUTMSGQ *que)
 Checks the state of a que.
HANDLE NutMsgQStartTimer (NUTMSGQ *que, uint32_t ms, int param, void *data, uint8_t flags)
 Starts a periodic or one-shot timer on the given que.
void NutMsgQStopTimer (HANDLE timer)
 Stops a timer.
int NutMsgQGetMessage (NUTMSGQ *que, NUTMSG *msg, uint32_t timeout)
 Gets the next message from the que.
void NutMsgQFlush (NUTMSGQ *que)
 Removes all entries from a que.


 global list of ques

Define Documentation

#define ASSERT (   x)

Definition at line 67 of file msg.c.

Referenced by NutMsgQCreate(), NutMsgQGetMessage(), and NutMsgQStartTimer().