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.

clear_interrupt( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

clear_interrupt(level)<br />

level - a constant defined in the devices.h file<br />

undefined<br />

Clears the interrupt flag for the given level. This function is designed for<br />

use with a specific interrupt, thus eliminating the GLOBAL level as a<br />

possible parameter. Some chips that have interrupt on change for<br />

individual pins allow the pin to be specified like INT_RA1.<br />

All devices<br />

Nothing<br />

clear_interrupt(int_timer1);<br />

None<br />

enable_interrupts() , #INT , Interrupts Overview<br />

disable_interrupts(), interrupt_actvie()<br />

cog_status( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

value=cog_status();<br />

None<br />

value - the status of the COG module<br />

To determine if a shutdown event occurred on the Complementary Output Gen<br />

(COG) module.<br />

All devices with a COG module.<br />

if(cog_status()==COG_AUTO_SHUTDOWN)<br />

cog_restart();<br />

None<br />

setup_cog(), set_cog_dead_band(), set_cog_blanking(), set_cog_phase(), cog<br />

168

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

Saved successfully!

Ooh no, something went wrong!