I use Pointgrey Firefly MV (more precisely, FFMV-03M2M / C) and I want to start some kind of external device every time the shutter starts. According to the technical description , the camera supports IIDC 1.31, and also provides four GPIOs that can be used as trigger and / or strobe outputs. As described in Section 4.11.3 of the IIDC Standard , it should be possible to configure these strobe outputs using IIDC.
My application is implemented in C ++ and uses libdc1394 to access and control the camera. So far, everything is working very well, but I can’t tune the strobe output. As far as I understand libdc and IIDC, it should be possible to include the first output as follows ( camerathis is a pointer to a valid one dc1394camera_t):
dc1394error_t err;
uint64_t strobe_offset = 0x200;
uint32_t strobe_settings = 0;
err = dc1394_get_strobe_register(camera, strobe_offset, &strobe_settings);
if (err == DC1394_SUCCESS) {
strobe_settings = strobe_settings | (1 << 25) | (1 << 24);
err = dc1394_set_strobe_register(camera, strobe_offset, strobe_settings);
}
if (err != DC1394_SUCCESS) {
log(LOG_ERROR, "Failed to set strobe.");
}
, - ( , ). , (0x204, 0x208 0x20C), . Strobe_CTRL_Inq Strobe_[0123]_Inq, , . , On/Off_Inq Strobe_[0123]_Inq , , Polarity_Inq , ( , ). Windows, Pointgrey, .
, ? IIDC ?
: , -: orignal, 0x1300, , 0x1110/0x1114, PointGrey. , / ( PIO ). . , libdc1394, PointGrey - . .