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.

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

Pin constants are defined in the devices .h file<br />

output_low(PIN_A0);<br />

Int16i=PIN_A1;<br />

output_low(PIN_A1);<br />

ex_sqw.c<br />

input(), output_high(), output_float(), output_bit(), output_x(), #USE<br />

FIXED_IO, #USE FAST_IO, #USE STANDARD_IO, General Purpose I/O<br />

output_toggle( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

output_toggle(pin)<br />

Pins are defined in the devices .h file. The actual value is a bit<br />

address. For example, port a (byte 5 ) bit 3 would have a value of 5*8+3<br />

or 43 . This is defined as follows: #DEFINE PIN_A3 43 .<br />

Undefined<br />

Toggles the high/low state of the specified pin.<br />

All devices.<br />

Pin constants are defined in the devices .h file<br />

output_toggle(PIN_B4);<br />

None<br />

Input(), output_high(), output_low(), output_bit(), output_x()<br />

perror( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

perror(string);<br />

string is a constant string or array of characters (null terminated).<br />

Nothing<br />

230

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

Saved successfully!

Ooh no, something went wrong!