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

dc1394error_t dc1394_avt_get_version ( dc1394camera_t camera,
uint32_t *  UCType,
uint32_t *  Version,
uint32_t *  Camera_ID,
uint32_t *  FPGA_Version 
)

Retrieve the firmware version, FPGA version and the camera ID

Definition at line 100 of file avt.c.

References dc1394_get_adv_control_register().

{
    dc1394error_t err;
    uint32_t value;

    /* Retrieve uC */
    *UCType =dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_VERSION_INFO1,&value);

    /* uC Version : Bits 16..31 */
    *Version =(uint32_t)(value & 0xFFFFUL );

    /*  Retrieve Camera ID and FPGA_Version */
    err=dc1394_get_adv_control_register(camera,REG_CAMERA_AVT_VERSION_INFO3, &value);
    DC1394_ERR_RTN(err,"Could not get AVT version info 3");

    /* Camera_ID : bit 0-15 */
    *Camera_ID =(uint32_t)(value >>16 );

    /* FPGA_Version : bit 16-31 */
    *FPGA_Version=(uint32_t)(value & 0xFFFFUL );

    return DC1394_SUCCESS;

}


Generated by  Doxygen 1.6.0   Back to index