RTEMS: cpukit/include/rtems/rtems/message.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
message.h
Go to the documentation of this file.
1
9/* COPYRIGHT (c) 1989-2013.
10 * On-Line Applications Research Corporation (OAR).
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef _RTEMS_RTEMS_MESSAGE_H
18#define _RTEMS_RTEMS_MESSAGE_H
19
20#include <rtems/rtems/attr.h>
21#include <rtems/rtems/options.h>
22#include <rtems/rtems/status.h>
23#include <rtems/rtems/types.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
60 rtems_status_code rtems_message_queue_create(
61 rtems_name name,
62 uint32_t count,
63 size_t max_message_size,
64 rtems_attribute attribute_set,
65 rtems_id *id
66);
67
86 rtems_status_code rtems_message_queue_ident(
87 rtems_name name,
88 uint32_t node,
89 rtems_id *id
90);
91
102 rtems_status_code rtems_message_queue_delete(
103 rtems_id id
104);
105
129 rtems_status_code rtems_message_queue_send(
130 rtems_id id,
131 const void *buffer,
132 size_t size
133);
134
150 rtems_status_code rtems_message_queue_urgent(
151 rtems_id id,
152 const void *buffer,
153 size_t size
154);
155
172 rtems_status_code rtems_message_queue_broadcast(
173 rtems_id id,
174 const void *buffer,
175 size_t size,
176 uint32_t *count
177);
178
202 rtems_status_code rtems_message_queue_receive(
203 rtems_id id,
204 void *buffer,
205 size_t *size,
206 rtems_option option_set,
207 rtems_interval timeout
208);
209
220 rtems_status_code rtems_message_queue_flush(
221 rtems_id id,
222 uint32_t *count
223);
224
235 rtems_status_code rtems_message_queue_get_number_pending(
236 rtems_id id,
237 uint32_t *count
238);
239
242#ifdef __cplusplus
243}
244#endif
245
246#endif
247/* end of include file */
attr.h
types.h
rtems_attribute
uint32_t rtems_attribute
Definition: attr.h:41
rtems_message_queue_send
rtems_status_code rtems_message_queue_send(rtems_id id, const void *buffer, size_t size)
Sends a message to the message queue.
Definition: msgqsend.c:25
rtems_message_queue_delete
rtems_status_code rtems_message_queue_delete(rtems_id id)
RTEMS Delete Message Queue.
Definition: msgqdelete.c:24
rtems_message_queue_broadcast
rtems_status_code rtems_message_queue_broadcast(rtems_id id, const void *buffer, size_t size, uint32_t *count)
RTEMS Broadcast Message Queue.
Definition: msgqbroadcast.c:24
rtems_message_queue_flush
rtems_status_code rtems_message_queue_flush(rtems_id id, uint32_t *count)
rtems_message_queue_flush
Definition: msgqflush.c:24
rtems_message_queue_ident
rtems_status_code rtems_message_queue_ident(rtems_name name, uint32_t node, rtems_id *id)
RTEMS Message Queue Name to Id.
Definition: msgqident.c:32
rtems_message_queue_receive
rtems_status_code rtems_message_queue_receive(rtems_id id, void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout)
Receives a message from the message queue.
Definition: msgqreceive.c:31
rtems_message_queue_get_number_pending
rtems_status_code rtems_message_queue_get_number_pending(rtems_id id, uint32_t *count)
RTEMS Message Queue Get Number Pending.
Definition: msgqgetnumberpending.c:24
rtems_message_queue_urgent
rtems_status_code rtems_message_queue_urgent(rtems_id id, const void *buffer, size_t size)
RTEMS Urgent Message Queue.
Definition: msgqurgent.c:24
rtems_message_queue_create
rtems_status_code rtems_message_queue_create(rtems_name name, uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id)
RTEMS Create Message Queue.
Definition: msgqcreate.c:34
rtems_option
uint32_t rtems_option
Definition: options.h:42
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_name
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
rtems_id
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
rtems_interval
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:127
options.h
status.h