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 />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

value is a 16 bit signed long int<br />

A 16 bit signed long int<br />

Computes the absolute value of a long integer.<br />

All devices.<br />

#INCLUDE <br />

Examples:<br />

if(labs( target_value - actual_value ) > 500)<br />

printf("Error is over 500 points\r\n");<br />

Example Files:<br />

Also See:<br />

None<br />

abs()<br />

lcd_contrast( )<br />

Syntax: lcd_contrast ( contrast )<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

contrast is used to set the internal contrast control resistance ladder.<br />

undefined.<br />

This function controls the contrast of the LCD segments with a value<br />

passed in between 0 and 7. A value of 0 will produce the minimum<br />

contrast, 7 will produce the maximum contrast.<br />

Only on select devices with built-in LCD Driver Module hardware.<br />

None.<br />

Examples:<br />

lcd_contrast( 0 ); // Minimum Contrast<br />

lcd_contrast( 7 ); // Maximum Contrast<br />

Example Files:<br />

Also See:<br />

None.<br />

lcd_load( ), lcd_symbol( ), setup_lcd( ), Internal LCD Overview<br />

213

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

Saved successfully!

Ooh no, something went wrong!