PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 123

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
#DEFINEDINC
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
_DEVICE_
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
__DEVICE__
None
This pre-processor identifier is defined by the compiler with the base number of the
current device (from a #DEVICE). The base number is usually the number after the
C in the part number. For example the PIC16C622 has a base number of 622.
#if __device__==71
SETUP_ADC_PORTS( ALL_DIGITAL );
#endif
None
#DEVICE
value = definedinc( variable );
variable is the name of the variable, function, or type to be checked.
A C status for the type of id entered as follows:
0 – not known
1 – typedef or enum
2 – struct or union type
3 – typemod qualifier
4 – function prototype
5 – defined function
6 – compiler built-in function
7 – local variable
8 – global variable
This function checks the type of the variable or function being passed in and
returns a specific C status based on the type.
All devices
None.
int x, y = 0;
y = definedinc( x );
None
None
// y will return 7 – x is a local variable
109

Related parts for PCDIDE COMPILER