Datasheet

PSoC Designer IDE Guide, Document # 001-42655 Rev *B 91
Code Editor
The registerName registers vary with the chip device description and include all registers associated
with the GPIO ports. For the CY8C25xxx/26xxx device family, registers include:
Bypass
DriveMode_0
DriveMode_1
IntCtrl_0
intCtrl_1
IntEn
For all other PSoC device families, registers include:
GlobalSelect
DriveMode_0
DriveMode_1
DriveMode_2
IntCtrl_0
IntCtrl_1
IntEn
The register shadow allocation is determined by user modules and Dynamic Reconfiguration. As the
register allocation changes, the macro generation changes accordingly.
Psocgpioint.h – This file contains the same information as Psocgpioint.inc except that it is in a form
needed for C code. In the case of the register shadows, this file does not generate macros, but
rather defines a symbol that allows manipulation of the shadow as a global variable. For each regis-
ter shadow associated with a custom pin definition, a variable named CustomName
_registerNameShadow
is defined, where CustomName and registerName are the same as
previously defined for Psocgpioint.inc. The variable name is then used to manipulate the shadow
register. For example, to set a pin value to ‘1’ within the port, do this:
CustomName_registerNameShadow |= CustomName_MASK;
CustomName_registerName_ADDR = CustomName_registerNameShadow;
Globalparams.h – This file has the same contents as globalparams.inc, except it also has #define
statements.