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.

6.10 Flags<br />

6.10.1 CoCreateFlag()<br />

Function Prototype:<br />

OS_FlagID CoCreateFlag(<br />

Description:<br />

Create a flag.<br />

Parameters:<br />

BOOL<br />

BOOL<br />

);<br />

[in] bAutoReset<br />

Reset mode:<br />

1, Reset automatically<br />

0, Reset manually<br />

[in] bInitialState<br />

Returns:<br />

Initial State:<br />

1, The ready state<br />

0, Non-ready state<br />

The ID of the flag,<br />

bAutoReset,<br />

bInitialState<br />

Create successfully.<br />

-1, Failed to create.<br />

107

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

Saved successfully!

Ooh no, something went wrong!