VCSBC64XX_HW.pdf – Hardware Documentation VCSBC64XX Smart Cameras
31
6.5.4
IO Ports Functions
The SCB64XX camera features 8 IO ports on the Extension Connector ST7. These ports can be
programmed with the following functions.
io_port_init
intialize io ports to all input
synopsis
I32
io_port_init
(
void
)
description
The
function
io_port_init
()
initializes all IO ports and sets them all to
INPUT. This function is called automatically at camera startup.
io_port_in
read
inputs
synopsis
I32
io_port_in
(
void
)
description
The
function
io_port_in
()
returns the input values. Only the 8 last bits of
the integer value are relevant. IO_0 corresponds to the least significant bit.
Input is high when bit set to 1, low when bit set to 0.
io_port_dir
set port direction (input or output)
synopsis
I32
io_port_dir
(
int
direction)
description
The
function
io_port_dir
()
sets the direction of the IOs. Only the 8 last
bits of the integer value are relevant. IO_0 corresponds to the least significant
bit. The IO is an input when bit set to 0, and an output when bit set to 1.
io_port_out
set
outputs
synopsis
I32
io_port_out
(
int
out)
description
The
function
io_port_out
()
sets or resets the outputs. Only the 8 last bits
of the integer value are relevant. IO_0 corresponds to the least significant bit.
The output is low when bit set to 0, and high when bit set to 1.
io_port_int_enable
enable IOPORT interrupt
synopsis
I32
io_port_int_enable
(
void
)
description
The
function
io_port_int_enable
()enables the IOPORT
interrupt
.
©
1996-2011 Vision Components GmbH Ettlingen, Germany