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

dc1394error_t dc1394_avt_get_shading_mem_ctrl ( dc1394camera_t camera,
dc1394bool_t en_write,
dc1394bool_t en_read,
uint32_t *  addroffset 
)

Retrieve write and read access mode of the shading reference frame

Definition at line 347 of file avt.c.

References dc1394_get_adv_control_register().

{
    dc1394error_t err;
    uint32_t value;

    /* Retrieve current memory shading properties */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_SHDG_MEM_CTRL, &value);
    DC1394_ERR_RTN(err,"Could not get AVT shading memory control");

    /* Enable write access : Bit 5 */
    if (en_write)
        *en_write = (uint32_t)((value & 0x4000000UL) >> 26);

    /* Enable read access : Bit 6 */
    if (en_read)
        *en_read = (uint32_t)((value & 0x2000000UL) >> 25);

    /* addroffset in byte : Bits 8..31 */
    if (addroffset)
        *addroffset =(uint32_t)((value & 0xFFFFFFUL));

    return DC1394_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index