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

dc1394error_t dc1394_avt_set_deferred_trans ( dc1394camera_t camera,
dc1394bool_t  HoldImage,
dc1394bool_t  FastCapture,
uint32_t  FifoSize,
uint32_t  NumOfImages,
dc1394bool_t  SendImage 
)

Set the fifo control mode

Definition at line 1285 of file avt.c.

References dc1394_get_adv_control_register(), and dc1394_set_adv_control_register().

{
    dc1394error_t err;
    uint32_t curval;

    /* Retrieve current image transport mode */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_DEFERRED_TRANS, &curval);
    DC1394_ERR_RTN(err,"Could not get AVT deferred transfer info");

    /* Send NumOfImages now : Bit 5 */
    curval = (curval & 0xFBFFFFFFUL) | ((SendImage ) << 26);

    /* enable/disable deferred transport mode : Bit 6 */
    curval = (curval & 0xFDFFFFFFUL) | ((HoldImage ) << 25);

    /* enable/disable fast capture mode (format 7 only) : Bit 7 */
    curval = (curval & 0xFEFFFFFFUL) | ((FastCapture ) << 24);

    /* Size of fifo in number of image : Bits 16..23 */
    curval = (curval & 0xFFFF00FFUL) | (((FifoSize << 8) & 0xFF00UL ));

    /* Number of images : Bits 24..31 */
    curval = (curval & 0xFFFFFF00UL) | ((NumOfImages & 0xFFUL ));

    /* Set new parameters */
    err=dc1394_set_adv_control_register(camera,REG_CAMERA_AVT_DEFERRED_TRANS, curval);
    DC1394_ERR_RTN(err,"Could not set AVT deferred transfer info");

    return DC1394_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index