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

dc1394error_t dc1394_avt_set_hsnr ( dc1394camera_t camera,
dc1394bool_t  on_off,
uint32_t  grabCount 
)

Set HSNR

Definition at line 1703 of file avt.c.

References dc1394_get_adv_control_register(), and dc1394_set_adv_control_register().

{
    dc1394error_t err;
    uint32_t curval;

    /* Retrieve HSNR */
    err=dc1394_get_adv_control_register(camera, REG_CAMERA_AVT_HSNRR, &curval);
    DC1394_ERR_RTN(err,"Could not get AVT HSNRR");

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

    /* grabCount: Bits 23..31 */
    curval = (curval & 0xFFFFFE00UL) | grabCount;

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

    return DC1394_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index