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.

I can't find the register DFSGVL and DFSGTH in VPFE document , but there is in the DM36X IPNC ref design.

I can't find the register DFSGVL and DFSGVL  in DM36X VPFE document , but there is in the DM36X IPNC ref design. as the listed code:

typedef struct {
volatile Uint32 ENABLE;
volatile Uint32 CFG1;
volatile Uint32 PPLN;
volatile Uint32 LPFR;
volatile Uint32 HNUM;
volatile Uint32 VNUM;
volatile Uint32 ADDRU;
volatile Uint32 ADDRL;
volatile Uint32 ADOFS;
volatile Uint32 RSZ;
volatile Uint32 GAIN;
volatile Uint32 DPCM;
volatile Uint32 CFG2;
volatile Uint32 INIRSZ;
volatile Uint32 OCLIP;
volatile Uint32 UFERR;
volatile Uint32 CLKDIV;
volatile Uint32 DPC1;
volatile Uint32 DPC2;
volatile Uint32 DFSGVL;
volatile Uint32 DFSGTH;
volatile Uint32 RSZ2;
volatile Uint32 INIRSZ2;
} CSL_IpipeifRegs;

..................

/* DFSGVL */

#define CSL_IPIPEIF_DFSGVL_DFSGEN_MASK (0x00000400u)
#define CSL_IPIPEIF_DFSGVL_DFSGEN_SHIFT (0x0000000Au)
#define CSL_IPIPEIF_DFSGVL_DFSGEN_RESETVAL (0x00000000u)

#define CSL_IPIPEIF_DFSGVL_DFSGVL_MASK (0x000003FFu)
#define CSL_IPIPEIF_DFSGVL_DFSGVL_SHIFT (0x00000000u)
#define CSL_IPIPEIF_DFSGVL_DFSGVL_RESETVAL (0x00000000u)

#define CSL_IPIPEIF_DFSGVL_RESETVAL (0x00000000u)

/* DFSGTH */

#define CSL_IPIPEIF_DFSGTH_DFSGTH_MASK (0x00000FFFu)
#define CSL_IPIPEIF_DFSGTH_DFSGTH_SHIFT (0x00000000u)
#define CSL_IPIPEIF_DFSGTH_DFSGTH_RESETVAL (0x00000FFFu)

#define CSL_IPIPEIF_DFSGTH_RESETVAL (0x00000FFFu)

.........................

CSL_Status CSL_ipipeifSetDarkFrameConfig(CSL_IpipeifHandle hndl, CSL_IpipeifDarkFrameConfig * data)
{
if (hndl == NULL || data == NULL)
return CSL_EFAIL;

CSL_FINS(hndl->regs->DFSGVL, IPIPEIF_DFSGVL_DFSGEN, data->gainEnable);
CSL_FINS(hndl->regs->DFSGVL, IPIPEIF_DFSGVL_DFSGVL, data->gain);

hndl->regs->DFSGTH = data->gainThreshold;

CSL_FINS(hndl->regs->CFG2, IPIPEIF_CFG2_DFSDIR, data->subtractDir);

return CSL_SOK;
}