CAT2 Peripheral Driver Library
Modulator Gain Masks

Modulator capacitor settings for the DCHAN. More...

Macros

#define CY_DSADC_CONFIG_MOD_GAIN_0P5X
 Modulator Gain 0.5x. More...
 
#define CY_DSADC_CONFIG_MOD_GAIN_1X
 Modulator Gain 1x. More...
 
#define CY_DSADC_CONFIG_MOD_GAIN_2X
 Modulator Gain 2x. More...
 
#define CY_DSADC_CONFIG_MOD_GAIN_4X
 Modulator Gain 4x. More...
 

Detailed Description

Modulator capacitor settings for the DCHAN.

Refer to the cy_stc_dsadc_gain_mod_cap_config_t structure for more details. The macros below are used to set the modulator gain.

Macro Definition Documentation

◆ CY_DSADC_CONFIG_MOD_GAIN_0P5X

#define CY_DSADC_CONFIG_MOD_GAIN_0P5X
Value:
{ \
.fCap1 = 0x39U, .fCap2 = 0xAU, .fCap3 = 0xDU, .dacCap = 0x1FU, .ipCap1 = 0xDU, .ipCap2 = 0x4U, .ipCap3 = 0x4U, \
.sumCapIn = 0x7U, .sumCap1 = 0x7U, .sumCap2 = 0x7U, .sumCap3 = 0x7U, .sumCapFb = 0x7U \
}

Modulator Gain 0.5x.

◆ CY_DSADC_CONFIG_MOD_GAIN_1X

#define CY_DSADC_CONFIG_MOD_GAIN_1X
Value:
{ \
.fCap1 = 0x39U, .fCap2 = 0xAU, .fCap3 = 0xDU, .dacCap = 0x1FU, .ipCap1 = 0x1BU, .ipCap2 = 0x4U, .ipCap3 = 0x4U, \
.sumCapIn = 0x3U, .sumCap1 = 0x3U, .sumCap2 = 0x3U, .sumCap3 = 0x3U, .sumCapFb = 0x7U \
}

Modulator Gain 1x.

◆ CY_DSADC_CONFIG_MOD_GAIN_2X

#define CY_DSADC_CONFIG_MOD_GAIN_2X
Value:
{ \
.fCap1 = 0x39U, .fCap2 = 0xAU, .fCap3 = 0xDU, .dacCap = 0xFU, .ipCap1 = 0x1BU, .ipCap2 = 0x4U, .ipCap3 = 0x4U, \
.sumCapIn = 0x3U, .sumCap1 = 0x3U, .sumCap2 = 0x3U, .sumCap3 = 0x3U, .sumCapFb = 0x3U \
}

Modulator Gain 2x.

◆ CY_DSADC_CONFIG_MOD_GAIN_4X

#define CY_DSADC_CONFIG_MOD_GAIN_4X
Value:
{ \
.fCap1 = 0x39U, .fCap2 = 0xAU, .fCap3 = 0xDU, .dacCap = 0x7U, .ipCap1 = 0x1BU, .ipCap2 = 0x4U, .ipCap3 = 0x4U, \
.sumCapIn = 0x3U, .sumCap1 = 0x3U, .sumCap2 = 0x3U, .sumCap3 = 0x3U, .sumCapFb = 0x1U \
}

Modulator Gain 4x.