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

get_tris_x( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

value = get_tris_A();<br />

value = get_tris_B();<br />

value = get_tris_C();<br />

value = get_tris_D();<br />

value = get_tris_E();<br />

value = get_tris_F();<br />

value = get_tris_G();<br />

value = get_tris_H();<br />

value = get_tris_J();<br />

value = get_tris_K()<br />

None<br />

int16, the value of TRIS register<br />

Returns the value of the TRIS register of port A, B, C, D, E, F, G, H, J, or<br />

K.<br />

All devices.<br />

Nothing<br />

tris_a = GET_TRIS_A();<br />

None<br />

input(), output_low(), output_high()<br />

setup_sd_adc( )<br />

Syntax:<br />

setup_sd_adc(settings1, settings 2, settings3);<br />

Parameters: settings1- settings for the SD1CON1 register of the SD ADC module. See the<br />

device's .h file for all options. Some options include:<br />

SDADC_ENABLED<br />

SDADC_NO_HALT<br />

SDADC_GAIN_1<br />

SDADC_NO_DITHER<br />

SDADC_SVDD_SVSS<br />

SDADC_BW_NORMAL<br />

193

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

Saved successfully!

Ooh no, something went wrong!