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

INT:iiiii<br />

ID<br />

DEVICE<br />

CLOCK<br />

VERSION<br />

VERSION_STRING<br />

PROGRAM_MEMORY<br />

STACK<br />

SCRATCH<br />

DATA_EEPROM<br />

EEPROM_ADDRESS<br />

READ_PROGRAM<br />

ADC_CHANNELS<br />

ADC_RESOLUTION<br />

ICD<br />

SPI<br />

USB<br />

CAN<br />

I2C_SLAVE<br />

I2C_MASTER<br />

PSP<br />

COMP<br />

VREF<br />

LCD<br />

UART<br />

Returns 1 if the interrupt iiiii is valid<br />

Returns the device ID (set by #ID)<br />

Returns the device name string (like<br />

"PIC16C74")<br />

Returns the MPU FOSC<br />

Returns the compiler version as a float<br />

Returns the compiler version as a string<br />

Returns the size of memory for code (in<br />

words)<br />

Returns the stack size<br />

Returns the start of the compiler scratch<br />

area<br />

Returns the number of bytes of data<br />

EEPROM<br />

Returns the address of the start of<br />

EEPROM. 0 if not supported by the device.<br />

Returns a 1 if the code memory can be read<br />

Returns the number of A/D channels<br />

Returns the number of bits returned from<br />

READ_ADC()<br />

Returns a 1 if this is being compiled for a<br />

ICD<br />

Returns a 1 if the device has SPI<br />

Returns a 1 if the device has USB<br />

Returns a 1 if the device has CAN<br />

Returns a 1 if the device has I2C slave H/W<br />

Returns a 1 if the device has I2C master<br />

H/W<br />

Returns a 1 if the device has PSP<br />

Returns a 1 if the device has a comparator<br />

Returns a 1 if the device has a voltage<br />

reference<br />

Returns a 1 if the device has direct LCD<br />

H/W<br />

Returns the number of H/W UARTs<br />

195

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

Saved successfully!

Ooh no, something went wrong!