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

dc1394error_t dc1394_avt_get_deferred_trans ( dc1394camera_t camera,
dc1394bool_t HoldImage,
dc1394bool_t FastCapture,
uint32_t *  FifoSize,
uint32_t *  NumOfImages 
)

Get the fifo control mode

Definition at line 1254 of file avt.c.

References dc1394_get_adv_control_register().

{
    dc1394error_t err;
    uint32_t value;

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

    /* enable/disable deferred transport mode : Bit 6 */
    *HoldImage = (uint32_t)((value & 0x2000000UL) >> 25);

    /* enable/disable fast capture mode (format 7 only) : Bit 7 */
    *FastCapture = (uint32_t)((value & 0x1000000UL) >> 24);

    /* Size of fifo in number of image : Bits 16..23 */
    *FifoSize =(uint32_t)((value >> 8 & 0xFFUL));

    /* Number of images in buffer: Bits 24..31 */
    *NumOfImages =(uint32_t)((value & 0xFFUL));

    return DC1394_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index