|
| << Previous | Next >> |
INT8U OSQPost (OS_EVENT *pevent, void *msg);
Description
- Sends a message to the specified queue.
Parameters
- pevent
- Pointer to message queue's event control block.
- msg
- Pointer to the message to send.
NULLpointer must not be sent.
Return value
- OS_NO_ERR
- The call was successful and the message was sent.
- OS_Q_FULL
- The queue cannot accept any more messages because it is full.
- OS_ERR_EVENT_TYPE
- If a pointer to a queue not passed.
- OS_ERR_PEVENT_NULL
- If
peventis aNULLpointer.
- OS_ERR_POST_NULL_PTR
- If attempting to post to a
NULLpointer.
Library
- OS_Q.C
See also
- OSQAccept, OSQCreate, OSQFlush, OSQPend, OSQPostFront, OSQQuery
| 020-0059 Rev. D | << Previous | Next >> | µC/OS-II |