CooCox CoOS User's Guide
CooCox CoOS User's Guide
CooCox CoOS User's Guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Note:<br />
If the number of the message in designated message queue is equal to<br />
the maximum number of messages, then discard the message and return<br />
error.<br />
6.9.6 isr_PostQueueMail()<br />
Function Prototype:<br />
StatusType isr_PostQueueMail(<br />
Descriptions:<br />
OS_EventID id,<br />
void*<br />
);<br />
pmail<br />
Send message to the message queue that designated in the inturrupt<br />
service program.<br />
Parameters:<br />
[IN] id<br />
Message Queue ID<br />
[IN] pmail<br />
Returns:<br />
the pointer of the message<br />
E_SEV_REQ_FULL,<br />
E_INVALID_ID,<br />
E_MBOX_FULL,<br />
E_OK,<br />
interrupt service requests is full<br />
the message queue ID that was incomed is invalid<br />
the message queue has been full<br />
send message to message queue successfully<br />
105