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.

if(scanf("%u%s%ld",&number,name,&time))<br />

printf"\r\nName: %s, Number: %u, Time: %ld",name,number,time);<br />

Example<br />

Files:<br />

Also See:<br />

None<br />

RS232 I/O Overview, getc(), putc(), printf()<br />

get_capture( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

value = get_capture(x)<br />

x defines which ccp module to read from.<br />

A 16-bit timer value.<br />

This function obtains the last capture time from the indicated CCP module<br />

Only available on devices with Input Capture modules<br />

None<br />

Examples:<br />

Example Files: ex_ccpmp.c<br />

Also See: setup_ccpx( )<br />

get_capture_event()<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

result = get_capture_event([stream]);<br />

stream – optional parameter specifying the stream defined in #USE<br />

CAPTURE.<br />

TRUE if a capture event occurred, FALSE otherwise.<br />

To determine if a capture event occurred.<br />

All devices.<br />

188

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

Saved successfully!

Ooh no, something went wrong!