User`s manual
54 • Part I: PC2-CamLink Board PC2-CamLink User's Manual
Sapera support for Parallel I/O:
Access to Parallel I/O is achieved using members of the SapGio class. Refer to
Sapera++ Programmer’s manual for a complete description of the SapGio functions.
The resource indexes for the Parallel I/O are:
0: 8-bit output resource
1: 8-bit input resource
2: 1-bit interrupt resource
Example:
// Assert output pin 0 of Parallel I/O
m_pGioOutput = new SapGio(SapLocation("PC2-CamLink_1", 0));
m_pGioOutput->Create();
m_pGioOutput->SetPinConfig(dwBitScan, SapGio::PinOutput);
m_pGioOutput->SetPinState (0, SapGio::PinHigh);
Note: Sapera LT 5.0 does not support the input strobe and output strobe pins.
CamExpert does not provide direct access to the I/O. It must be activated
programmatically from your Sapera application using the SapGio class.
IFC
IFC Support for Parallel I/O:
Access to Parallel I/O is achieved using members of the CICapMod Class:
CICapMod::InportInterruptPolarity
CICapMod::InportMode
CICapMod::InportVal
CICapMod::OutportStrobeVal
CICapMod::OutportVal