CooCox CoOS User's Guide
CooCox CoOS User's Guide
CooCox CoOS User's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Note:<br />
1)This function runs a task sheduling while waiting and give the system<br />
execution time to the highest priority task.<br />
2) It will do substrct 1 operation to the current message in message queue<br />
after get the message in the message queue successfully.<br />
3) The function cann’t be used in the interrupt service program.<br />
6.9.5 CoPostQueueMail()<br />
Function Prototype:<br />
StatusType CoPostQueueMail(<br />
Descriptions:<br />
);<br />
OS_EventID id,<br />
void*<br />
pmail<br />
Send message to the message queue that designated.<br />
Parameters:<br />
[in] id<br />
Message Queue ID<br />
[in] pmail<br />
Returns:<br />
the pointer of the message<br />
E_INVALID_ID,<br />
E_QUEUE_FULL,<br />
E_OK,<br />
the message queue ID that<br />
was incomed is invalid<br />
the message queue is full<br />
the message is send successfully<br />
103