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.

value = input_e()<br />

value = input_f()<br />

value = input_g()<br />

value = input_h()<br />

value = input_j()<br />

value = input_k()<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

None<br />

An 8 bit int representing the port input data.<br />

Inputs an entire byte from a port. The direction register is changed in accordance with<br />

the last specified #USE *_IO directive. By default with standard I/O before the input is<br />

done the data direction is set to input.<br />

All devices.<br />

Nothing<br />

data = input_b();<br />

ex_psp.c<br />

input(), output_x(), #USE FIXED_IO, #USE FAST_IO, #USE STANDARD_IO<br />

interrupt_active( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

interrupt_active (interrupt)<br />

Interrupt – constant specifying the interrupt<br />

Boolean value<br />

The function checks the interrupt flag of the specified interrupt and<br />

returns true in case the flag is set.<br />

Device with interrupts<br />

Should have a #INT_xxxx, Constants are defined in the devices .h file.<br />

interrupt_active(INT_TIMER0);<br />

interrupt_active(INT_TIMER1);<br />

None<br />

disable_interrupts() , #INT , Interrupts Overview<br />

208

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

Saved successfully!

Ooh no, something went wrong!