02.01.2015 Views

CooCox CoOS User's Guide

CooCox CoOS User's Guide

CooCox CoOS User's Guide

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!