17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

tos_msg_poll( )<br />

The RTOS is only included in the PCW, PCWH and PCWHD software packages.<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Also See:<br />

i = rtos_msg_poll()<br />

None<br />

An integer that specifies how many messages are in the queue.<br />

This function can only be used inside an RTOS task. This function<br />

returns the number of messages that are in the queue for the task that<br />

the rtos_msg_poll() function is used in.<br />

All devices<br />

#USE RTOS<br />

if(rtos_msg_poll())<br />

rtos msg send(), rtos msg read()<br />

rtos_overrun( )<br />

The RTOS is only included in the PCW, PCWH and PCWHD software packages.<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Also See:<br />

rtos_overrun([task])<br />

task is an optional parameter that is the identifier of a function that is<br />

being used as an RTOS task<br />

A 0 (FALSE) or 1 (TRUE)<br />

This function returns TRUE if the specified task took more time to<br />

execute than it was allocated. If no task was specified, then it returns<br />

TRUE if any task ran over it's alloted execution time.<br />

All devices<br />

#USE RTOS(statistics)<br />

rtos_overrun()<br />

None<br />

260

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

Saved successfully!

Ooh no, something went wrong!