This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Auto IRIS - Need reference document

Hi All,

I am working with APPRO IPNC IMX035 board.

In the code I observed 'ALG_aewbSetAutoIris'  function is getting called for auto iris (which adjusts the pwm duration). I don't find any relevant call references to the ALG_aewbSetAutoIris .

Please share some reference document to understand Auto IRIS in DM365.

Regards,

panshi

  • Hi Panshi,

    Did you get any reference doc? Please share information ..

    Regards,

    Mohit

  • Hi,

    I worked on that some time ago.
    Function 'ALG_aewbSetAutoIris'  is called only from Appro 2A library. It is not in source.
    You can disable that by setting void callback. 
    Change in a file 'alg_aewb.c' :

    void *ALG_aewbCreate(ALG_AewbCreate *create)
    { ...
       Aew_ext_parameter.AUTO_IRIS_SETUP = ALG_aewbDummy; //ALG_aewbSetAutoIris;
    ... }

    After that Appro2A library won't call  'ALG_aewbSetAutoIris'  anymore, but rather that void function.
    Then you can call 'ALG_aewbSetAutoIris' for you own purpose :

    AUTO_IRIS_PARAM aiParm ;
    aiParm.Cmd=2;
    aiParm.Period= input_val*1000;
    aiParm.PCR=1;
    aiParm.START=1;
    aiParm.CFG=2;
    aiParm.PER=99999;
    aiParm.PH1D=51000;
    ALG_aewbSetAutoIris(&aiParm);

    I forgot actual parameters meaning, but you can get the point by debug-print values out from the running original program.

    Regards.