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

dc1394error_t dc1394_avt_get_lut_mem_ctrl ( dc1394camera_t camera,
dc1394bool_t en_write,
uint32_t *  AccessLutNo,
uint32_t *  addroffset 
)

Get access mode of a lut

Definition at line 1029 of file avt.c.

References dc1394_get_adv_control_register().

{
    dc1394error_t err;
    uint32_t value;

    /* Retrieve current memory luts parameters */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_LUT_MEM_CTRL, &value);
    DC1394_ERR_RTN(err,"Could not get AVT LUT memory control");

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

    /* AccessLutNo : Bits 8..15 */
    *AccessLutNo=(uint32_t)((value >> 16) & 0xFFUL);

    /* addroffset in byte : Bits 16..31 */
    *addroffset =(uint32_t)((value & 0xFFFFUL));

    return DC1394_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index