Download My Document - Point Grey

Transcript
Point Grey Grasshopper2 Technical Reference
5.4.1.2
5 Image Acquisition and Transmission
Example: Setting a GPIO Pin to Strobe (Using the FlyCapture API)
The following FlyCapture 2.x code sample uses the C++ interface to do the following:
l
l
l
l
l
Configures GPIO1 as the strobe output pin.
Enables strobe output.
Specifies an active high (rising edge) strobe signal.
Specifies that the strobe signal begin 1 ms after the shutter opens.
Specifies the duration of the strobe as 1.5 ms.
Assuming a Camera object cam:
StrobeControl mStrobe;
mStrobe.source = 1;
mStrobe.parameter = 0;
mStrobe.onOff = true;
mStrobe.polarity = 1;
mStrobe.delay = 1.0f;
mStrobe.duration = 1.5f
cam.SetStrobeControl(&mStrobe);
5.4.1.3
Strobe Signal Output Registers
This section describes the control and inquiry registers for the Strobe Signal functionality.
Inquiry Register for Strobe Output CSR Offset Addresses
The following register indicates the locations of the Strobe Output CSR registers. These offsets are
relative to the base offset 0xFFFF F0F0 0000.
Offset
Name
Field
Bit
Description
48Ch
STROBE_ OUTPUT_ Strobe_ Output_ [0-31]
CSR_INQ
Quadlet_Offset
Quadlet offset of the Strobe output
signal CSRs from the base address
of initial register space
Current Strobe Output Register Offsets
(Bit values = 0: Not Available, 1: Available)
Format:
Offset
Name
Field
Bit
Description
1300h
STROBE_
CTRL_INQ
Strobe_0_Inq
[0]
Presence of strobe 0 signal
Strobe_1_Inq
[1]
Presence of strobe 1 signal
Strobe_2_Inq
[2]
Presence of strobe 2 signal
Revised 9/27/2011
Copyright © 2011 Point Grey Research, Inc.
69