extern RT_TASK* rt_receive
(RT_TASK* task, unsigned int* msg);
SYNOPSIS
#include "rtl_shed.h"
DESCRIPTION
Receives the message msg from the task task
and blocks itself until a message is received.
If task is 0 the task accept messages from any
other task, otherwise it will remained blocked untill task task
sends, send/rpc, a message.
RETURN VALUE
On success, the pointer to the task that sent message is
returned. On failure, a negative value is returned. Zero is returned if
the task is unblocked but no valid message has been received (e.g. the
task task has been killed before sending message)
ERRORS
task does not refer to a valid task
extern RT_TASK* rt_receive_if
(RT_TASK* task, unsigned int* msg);
SYNOPSIS
#include "rtl_shed.h"
DESCRIPTION
Receives the message msg from the task task
only if the latter is ready to send.
If task is 0 the task accept messages from any
other task, otherwise it will remained blocked untill task task
sends, send/rpc, a message.
RETURN VALUE
On success, the pointer to the task that sent message is
returned. On failure, a negative value is returned. Zero is returned if
the task is unblocked but no valid message has been received (e.g. the
task task has been killed before sending message)
ERRORS
task does not refer to a valid task
extern RT_TASK* rt_receive_until
(RT_TASK* task, unsigned int* msg,
RTIME time);
SYNOPSIS
#include "rtl_shed.h"
DESCRIPTION
Receives the message msg from the task task.
If task is not ready to send, blocks itself till the message is recived
or time is reached, whichever happens first.
If task is 0 the task accept messages from any
other task, otherwise it will remained blocked untill task task
sends, send/rpc, a message.
RETURN VALUE
On success, the pointer to the task that sent message is
returned. On failure, a negative value is returned. Zero is returned if
the task is unblocked but no valid message has been received (e.g. the
task task has been killed before sending message)
ERRORS
task does not refer to a valid task
extern RT_TASK* rt_receive_timed
(RT_TASK* task, unsigned int* msg,
RTIME delay);
SYNOPSIS
#include "rtl_shed.h"
DESCRIPTION
Receives the message msg from the task task.
If task is not ready to send, blocks itself till the message is received
or period delay is passed, whichever happens first.
If task is 0 the task accept messages from any
other task, otherwise it will remain blocked until task task
sends, send/rpc, a message.
RETURN VALUE
On success, the pointer to the task that sent message is
returned. On failure, a negative value is returned. Zero is returned if
the task is unblocked but no valid message has been received (e.g. the
task task has been killed before sending message)
ERRORS
task does not refer to a valid task