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.

Built-in Functions<br />

.<br />

cog_restart( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

cog_restart();<br />

None<br />

Nothing<br />

To restart the Complementary Output Generator (COG) module after an auto-s<br />

event occurs, when not using auto-restart option of 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 />

cwg_status( )<br />

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

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Examples:<br />

None<br />

the status of the CWG module<br />

To determine if a shutdown event occured causing the<br />

module to auto-shutdown<br />

On devices with a CWG module.<br />

if(cwg_status( ) == CWG_AUTO_SHUTDOWN)<br />

cwg_restart( );<br />

Example<br />

None<br />

Files:<br />

Also See: setup_cwg( ), cwg_restart( )<br />

169

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

Saved successfully!

Ooh no, something went wrong!