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.

cwg_restart( )<br />

Syntax: cwg_restart( );<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Examples:<br />

None<br />

Nothing<br />

To restart the CWG module after an auto-shutdown event<br />

occurs, when not using auto-raster option of module.<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_status( )<br />

dac_write( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

dac_write (value)<br />

Value: 8-bit integer value to be written to the DAC module<br />

undefined<br />

This function will write a 8-bit integer to the specified DAC channel.<br />

Only available on devices with built in digital to analog converters.<br />

Nothing<br />

Examples:<br />

int i = 0;<br />

setup_dac(DAC_VDD | DAC_OUTPUT);<br />

while(1){<br />

i++;<br />

dac_write(i);<br />

}<br />

Also See:<br />

setup_dac( ), DAC Overview, see header file for device selected<br />

170

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

Saved successfully!

Ooh no, something went wrong!