CAT2 Peripheral Driver Library
COMMON Enumerated Types

Enumerations

enum  cy_en_dsadc_chopping_clock_divider_t {
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_2 = 0U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_4 = 1U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_8 = 2U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_16 = 3U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_32 = 4U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_64 = 5U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_128 = 6U,
  CY_DSADC_CHOPPING_CLOCK_DIVIDER_256 = 7U
}
 The divider for the chopping clock frequency. More...
 
enum  cy_en_dsadc_agc_aaf_blank_mode_t {
  CY_DSADC_AGC_AAF_BLANK_MODE_SHORT = 0U,
  CY_DSADC_AGC_AAF_BLANK_MODE_OPEN = 1U
}
 Configure the behavior of the Anti-Aliasing Filter ( aaf) when the Automatic Gain Correction ( AGC) is updating the achan / dchan registers. More...
 
enum  cy_en_dsadc_ground_reference_t {
  CY_DSADC_GROUND_REFERENCE_VSSA0 = 0U,
  CY_DSADC_GROUND_REFERENCE_VSSA1 = 1U,
  CY_DSADC_GROUND_REFERENCE_RSH = 2U,
  CY_DSADC_GROUND_REFERENCE_RSL = 3U
}
 Ground Reference options for Cy_DSADC_SetGroundReference. More...
 
enum  cy_en_dsadc_hpbgr_chopping_phase_t {
  CY_DSADC_HPBGR_CHOPPING_PHASE_NORMAL = 0U,
  CY_DSADC_HPBGR_CHOPPING_PHASE_REVERSE = 1U
}
 Chopping Phase between the HPBGR "BGR Core" and the "output buffer". More...
 
enum  cy_en_dsadc_hpbgr_external_capacitor_t {
  CY_DSADC_HPBGR_EXTERNAL_CAPACITOR_PRESENT = 0U,
  CY_DSADC_HPBGR_EXTERNAL_CAPACITOR_ABSENT = 1U
}
 Buffer phase compensation option for external capacitor. More...
 
enum  cy_en_dsadc_dchan_pga_gain_t {
  CY_DSADC_DCHAN_PGA_GAIN_1X = 0U,
  CY_DSADC_DCHAN_PGA_GAIN_2X = 1U,
  CY_DSADC_DCHAN_PGA_GAIN_4X = 2U,
  CY_DSADC_DCHAN_PGA_GAIN_8X = 3U,
  CY_DSADC_DCHAN_PGA_GAIN_16X = 4U,
  CY_DSADC_DCHAN_PGA_GAIN_32X = 5U
}
 Configure the Digital Channel [DCHAN] PGA Gain. More...
 
enum  cy_en_dsadc_threshold_select_t {
  CY_DSADC_HIGH_THRESHHOLD_CNTR = 0U,
  CY_DSADC_LOW_THRESHHOLD_CNTR = 1U
}
 Select high or low threshold counter. More...
 
enum  cy_en_dsadc_temperature_current_source_t {
  CY_DSADC_TEMPERATURE_CURRENT_SOURCE_AREF = 0U,
  CY_DSADC_TEMPERATURE_CURRENT_SOURCE_SRSS = 1U
}
 Current source selection for the temperature sensor. More...
 
enum  cy_en_dsadc_temperature_load_mode_t {
  CY_DSADC_TEMPERATURE_LOAD_MODE_PNP = 0U,
  CY_DSADC_TEMPERATURE_LOAD_MODE_NPN = 1U,
  CY_DSADC_TEMPERATURE_LOAD_MODE_RESISTOR = 2U
}
 Load current configuration for the on-die temperature sensor. More...
 
enum  cy_en_dsadc_temperature_setup_t {
  CY_DSADC_TEMPERATURE_CONFIG_PRIMARY = 0U,
  CY_DSADC_TEMPERATURE_CONFIG_ALTERNATE = 1U
}
 The temperature measurement parameters selection. More...
 
enum  cy_en_dsadc_temp_volt_meas_t {
  CY_DSADC_TEMPERATURE_MEASUREMENT_RESISTOR = 0U,
  CY_DSADC_TEMPERATURE_MEASUREMENT_TRANSISTOR = 1U
}
 Target voltage measurement configuration selection. More...
 
enum  cy_en_dsadc_convert_source_t {
  CY_DSADC_ACHAN0 = 0U,
  CY_DSADC_ACHAN1 = 1U,
  CY_DSADC_ALL_PRIMARY = 2U,
  CY_DSADC_ALL_SECONDARY = 3U
}
 Target to start convert selection. More...
 

Detailed Description

Enumeration Type Documentation

◆ cy_en_dsadc_chopping_clock_divider_t

The divider for the chopping clock frequency.

Used for Modulator, programmable gain amplifier (PGA), and High-Precision BandGap Reference (HPBGR) chopping.

Enumerator
CY_DSADC_CHOPPING_CLOCK_DIVIDER_2 

Chopping frequency is sampling frequency divided by 2.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_4 

Chopping frequency is sampling frequency divided by 4.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_8 

Chopping frequency is sampling frequency divided by 8.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_16 

Chopping frequency is sampling frequency divided by 16.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_32 

Chopping frequency is sampling frequency divided by 32.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_64 

Chopping frequency is sampling frequency divided by 64.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_128 

Chopping frequency is sampling frequency divided by 128.

CY_DSADC_CHOPPING_CLOCK_DIVIDER_256 

Chopping frequency is sampling frequency divided by 256.

◆ cy_en_dsadc_agc_aaf_blank_mode_t

Configure the behavior of the Anti-Aliasing Filter ( aaf) when the Automatic Gain Correction ( AGC) is updating the achan / dchan registers.

Enumerator
CY_DSADC_AGC_AAF_BLANK_MODE_SHORT 

Short the AAF resistor (close SW2 see aaf)

CY_DSADC_AGC_AAF_BLANK_MODE_OPEN 

Disconnect AAF (open SW1 see aaf)

◆ cy_en_dsadc_ground_reference_t

Ground Reference options for Cy_DSADC_SetGroundReference.

Enumerator
CY_DSADC_GROUND_REFERENCE_VSSA0 

Set the High Voltage Divider Ground Connection to VSSA.

If VSSA is used, and VSSA is connected to the negative battery pole, then any voltage across the shunt resistor will appear as an offset voltage to chassis ground for the LIN pin. If VSSA is connected to chassis ground, then RSL / RSH should be used as the reference to avoid battery voltage measurement error.

CY_DSADC_GROUND_REFERENCE_VSSA1 

Set the High Voltage Divider Ground Connection to VSSA.

If VSSA is used, and VSSA is connected to the negative battery pole, then any voltage across the shunt resistor will appear as an offset voltage to chassis ground for the LIN pin. If VSSA is connected to chassis ground, then RSL / RSH should be used as the reference to avoid battery voltage measurement error.

CY_DSADC_GROUND_REFERENCE_RSH 

Set the High Voltage Divider Ground Connection to RSH.

The RSH Terminal is one of the terminals intended to be used with a shunt resistor to measure battery current. The orientation of RSH / RSL in hardware is dependent on the desired sign of the current charge / discharge. For charging current to be positive, RSH should be connected to ground.

CY_DSADC_GROUND_REFERENCE_RSL 

Set the High Voltage Divider Ground Connection to RSL.

Similar to RSH, this terminal is one of the terminals to use used with a shunt resistor to measure battery current. The orientation of RSH / RSL in hardware is dependent on the desired sign of the current charge / discharge. For discharging current to be positive, RSL should be connected to ground.

◆ cy_en_dsadc_hpbgr_chopping_phase_t

Chopping Phase between the HPBGR "BGR Core" and the "output buffer".

The HPBGR contains a "Band Gap Reference Core" (BGR Core) and an "output buffer", which are circuit chopped to reduce offset error.

The offset is reduced most when the BGR Core uses the opposite clock edge to chop when compared to the output buffer, which is referred to here as the 'reverse' chopping phase.

Optionally, the BGR Core and the output buffer can use the same clock edge for circuit chopping, referred to here as the 'normal' chopping phase.

Enumerator
CY_DSADC_HPBGR_CHOPPING_PHASE_NORMAL 

The HPBGR 'Output Buffer' and the 'BGR Core' use the same chopping clock phase.

CY_DSADC_HPBGR_CHOPPING_PHASE_REVERSE 

The HPBGR 'Output Buffer' and the 'BGR Core' use opposite chopping clock phase, reducing the offset between the two HPBGR internal components.

◆ cy_en_dsadc_hpbgr_external_capacitor_t

Buffer phase compensation option for external capacitor.

Buffer phase compensation option (external capacitor is present or absent).

Enumerator
CY_DSADC_HPBGR_EXTERNAL_CAPACITOR_PRESENT 

External capacitor is present.

CY_DSADC_HPBGR_EXTERNAL_CAPACITOR_ABSENT 

External capacitor is absent.

◆ cy_en_dsadc_dchan_pga_gain_t

Configure the Digital Channel [DCHAN] PGA Gain.

Enumerator
CY_DSADC_DCHAN_PGA_GAIN_1X 

Gain level 1X.

CY_DSADC_DCHAN_PGA_GAIN_2X 

Gain level 2X.

CY_DSADC_DCHAN_PGA_GAIN_4X 

Gain level 4X.

CY_DSADC_DCHAN_PGA_GAIN_8X 

Gain level 8X.

CY_DSADC_DCHAN_PGA_GAIN_16X 

Gain level 16X.

CY_DSADC_DCHAN_PGA_GAIN_32X 

Gain level 32X.

◆ cy_en_dsadc_threshold_select_t

Select high or low threshold counter.

Enumerator
CY_DSADC_HIGH_THRESHHOLD_CNTR 

Used to get status of High threshold counter.

CY_DSADC_LOW_THRESHHOLD_CNTR 

Used to get status of Low threshold counter.

◆ cy_en_dsadc_temperature_current_source_t

Current source selection for the temperature sensor.

Enumerator
CY_DSADC_TEMPERATURE_CURRENT_SOURCE_AREF 

Use the AREF as the current source.

CY_DSADC_TEMPERATURE_CURRENT_SOURCE_SRSS 

Use the SRSS as the current source.

◆ cy_en_dsadc_temperature_load_mode_t

Load current configuration for the on-die temperature sensor.

Enumerator
CY_DSADC_TEMPERATURE_LOAD_MODE_PNP 

Configure for PNP, for user temperature measurements.

CY_DSADC_TEMPERATURE_LOAD_MODE_NPN 

Configure for NPN, for factory calibration.

CY_DSADC_TEMPERATURE_LOAD_MODE_RESISTOR 

Configure for the internal resistor (5k Ohms).

◆ cy_en_dsadc_temperature_setup_t

The temperature measurement parameters selection.

Enumerator
CY_DSADC_TEMPERATURE_CONFIG_PRIMARY 

Select primary temperature measurement parameters.

CY_DSADC_TEMPERATURE_CONFIG_ALTERNATE 

Select alternate temperature measurement parameters.

◆ cy_en_dsadc_temp_volt_meas_t

Target voltage measurement configuration selection.

Enumerator
CY_DSADC_TEMPERATURE_MEASUREMENT_RESISTOR 

Configure target voltage measurement across resistor (5k Ohms).

CY_DSADC_TEMPERATURE_MEASUREMENT_TRANSISTOR 

Configure target voltage measurement across bipolar transistor (PNP/NPN).

◆ cy_en_dsadc_convert_source_t

Target to start convert selection.

Enumerator
CY_DSADC_ACHAN0 

Start convert ACHAN0.

CY_DSADC_ACHAN1 

Start convert ACHAN1.

CY_DSADC_ALL_PRIMARY 

Start convert all Primary channels.

CY_DSADC_ALL_SECONDARY 

Start convert all Secondary channels.