Logo Search packages:      
Sourcecode: libdc1394-22 version File versions  Download package

dc1394error_t dc1394_avt_set_trigger_delay ( dc1394camera_t camera,
dc1394bool_t  on_off,
uint32_t  DelayTime 
)

Set trigger delay on/off and the trigger delay value

Definition at line 718 of file avt.c.

References dc1394_get_adv_control_register(), and dc1394_set_adv_control_register().

{
    dc1394error_t err;
    uint32_t curval;

    /* Retrieve trigger delay */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_TRIGGER_DELAY, &curval);
    DC1394_ERR_RTN(err,"Could not get AVT trigger delay");

    /* trigger_delay ON / OFF : Bit 6 */
    curval = (curval & 0xFDFFFFFFUL) | ((on_off ) << 25);

    /* Delay time in us : Bits 11..31 */
    curval = (curval & 0xFFF00000UL) | DelayTime;

    /* Set new parameters */
    err=dc1394_set_adv_control_register(camera,REG_CAMERA_AVT_TRIGGER_DELAY, curval);
    DC1394_ERR_RTN(err,"Could not set AVT trigger delay");

    return DC1394_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index