User`s manual

PK220054 s Software Reference
Digital Output Drivers
Following are the digital output drivers for the PK2200:
int up
_
setout( int channel, int value )
Sets the state of digital output.
PARAMETER1: The digital output channel to set.
PARAMETER2: The state to set. 1 (active) or 0 (inactive).
RETURN VALUE: None.
Pass channel (114) and value: 0 for OFF, 1 for ON.
OUT1, OUT2, ..., OUT14
Set the virtual driver variables OUT1, OUT2, OUT3, ... OUT13,
OUT14 to a value of 0 to turn off the output, or 1 to turn on the output.
void outport(unsigned port, unsigned value);
Writes value to I/O port.
PARAMETER1: The output port.
PARAMETER2: The value to be written.
RETURN VALUE: None
The addresses DRV1 - DRV14 are the port addresses for the digital
ouputs. Writing 0 to any of these ports will turn the ouput OFF. To
turn ON digital ouputs 1 through 8 write 0x20 to the corresponding
port. For digital outputs 9 through 14 write 0x40 to turn the ouput ON.
The digital outputs are individually addressed and must be set
one at a time.
!