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 />
Release the resources that the mailbox occupied if delete it<br />
successfully,then run a task sheduling and give the system execution time<br />
to the highest priority task.<br />
6.8.3 CoAcceptMail()<br />
Function Prototype:<br />
void* CoAcceptMail(<br />
Descriptions:<br />
OS_EventID id,<br />
StatusType* perr<br />
);<br />
To obtain mailbox message whose ID was designated.<br />
Parameters:<br />
[in] id<br />
the designated mailbox ID<br />
[in] perr<br />
error returned types:<br />
E_INVALID_ID, the mailbox ID that was<br />
incomed is invalid<br />
Returns:<br />
E_MBOX_EMPTY,<br />
E_OK,<br />
To get the pointer of the mailbox message.<br />
the mailbox message whose ID<br />
was designated is empty<br />
to obtain the message successfully<br />
90