msg.h File Reference

Go to the source code of this file.

Data Structures

struct  _NUTMSG
struct  _NUTMSGQ

Defines

#define MSG_TIMER   0xfe
#define MSG_NULL   0xff

Typedefs

typedef _NUTMSG NUTMSG
typedef _NUTMSGTMR NUTMSGTMR
typedef _NUTMSGQ NUTMSGQ

Functions

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


Define Documentation

#define MSG_TIMER   0xfe

Definition at line 88 of file msg.h.

Referenced by NutMsgQGetMessage(), and NutMsgQStopTimer().

#define MSG_NULL   0xff

Definition at line 89 of file msg.h.

Referenced by NutMsgQStopTimer().


Typedef Documentation

typedef struct _NUTMSG NUTMSG

Definition at line 56 of file msg.h.

typedef struct _NUTMSGTMR NUTMSGTMR

Definition at line 63 of file msg.h.

typedef struct _NUTMSGQ NUTMSGQ

Definition at line 66 of file msg.h.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/