17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Built-in Functions<br />

Requires:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

#USE CAPTURE<br />

#USE CAPTURE(INPUT=PIN_C2,CAPTURE_RISING,TIMER=1,FASTEST)<br />

if(get_capture_event())<br />

result = get_capture_time();<br />

None<br />

#use_capture, get_capture_time()<br />

get_capture_time()<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

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

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

CAPTURE.<br />

An int16 value representing the last capture time.<br />

To get the last capture time.<br />

All devices.<br />

#USE CAPTURE<br />

#USE CAPTURE(INPUT=PIN_C2,CAPTURE_RISING,TIMER=1,FASTEST)<br />

result = get_capture_time();<br />

None<br />

#use_capture, get_capture_event()<br />

get_nco_accumulator( )<br />

Syntax: value =get_nco_accumulator( );<br />

Parameters:<br />

Returns:<br />

Availability:<br />

none<br />

current value of accumulator.<br />

On devices with a NCO module.<br />

Examples:<br />

value = get_nco_accumulator( );<br />

189

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

Saved successfully!

Ooh no, something went wrong!