CAT2 Peripheral Driver Library

Applicable to PSOC4 HVPA only with additional calibration data in SFLASH. More...

Functions

void Cy_DSADC_CalibrateAchan0_2TempTrim (PACSS_DCHAN_Type *base, cy_en_dsadc_achan0_2temp_trim_gain_type_t gain, int32_t temperature)
 Calibrate the gain and the offset correction values for the ACHAN0 with the value derived from the calibration data stored in SFLASH. More...
 
void Cy_DSADC_CalibrateAchan1_2TempTrim (PACSS_DCHAN_Type *base, cy_en_dsadc_achan1_2temp_trim_gain_type_t gain, int32_t temperature)
 Calibrate the gain and the offset correction values for the ACHAN1 with the value derived from the calibration data stored in SFLASH. More...
 
void Cy_DSADC_CalibrateAchan1_3TempTrim (PACSS_DCHAN_Type *base, cy_en_dsadc_achan_3temp_trim_divider_type_t divider, int32_t temperature)
 Calibrate the gain and the offset correction values for the ACHAN1 with the value derived from the calibration data stored in SFLASH. More...
 
void Cy_DSADC_CalibrateAchan0_3TempTrim (PACSS_DCHAN_Type *base, cy_en_dsadc_achan_3temp_trim_divider_type_t divider, int32_t temperature)
 Calibrate the gain and the offset correction values for the HV divider on ACHAN0 with the value derived from the calibration data stored in SFLASH. More...
 
void Cy_DSADC_CalibrateAgcGainLevel (PACSS_MMIO_Type *base, cy_en_dsadc_achan0_2temp_trim_gain_type_t gain, uint8_t index, int32_t temperature)
 Calibrate the gain and the offset correction values for the AGC with the value derived from the calibration data stored in SFLASH. More...
 
void Cy_DSADC_CalibrateAchan1_ExtTempTrim (PACSS_DCHAN_Type *base, int32_t temperature)
 Calibrate the gain and the offset correction values for the ACHAN1 external temperature with the value derived from the calibration data stored in SFLASH. More...
 
uint16_t Cy_DSADC_GetPullupResistance (cy_en_dsadc_dchan_reference_pullup_t select, int32_t temperature)
 Get the pull-up resistance value to suit the shunt pin and the current temperature. More...
 

Detailed Description

Applicable to PSOC4 HVPA only with additional calibration data in SFLASH.

Function Documentation

◆ Cy_DSADC_CalibrateAchan0_2TempTrim()

void Cy_DSADC_CalibrateAchan0_2TempTrim ( PACSS_DCHAN_Type *  base,
cy_en_dsadc_achan0_2temp_trim_gain_type_t  gain,
int32_t  temperature 
)

Calibrate the gain and the offset correction values for the ACHAN0 with the value derived from the calibration data stored in SFLASH.

Note
Applicable to PSOC4 HVPA only. The accuracy of the correction values are [-1, 1]. If the temperature value is out of range, then trim value is calculated with the minimum or the maximum temperature.
Parameters
baseThe base address for the Digital Channel.
gainThe gain value for the ACHAN0 see cy_en_dsadc_achan0_2temp_trim_gain_type_t.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS

◆ Cy_DSADC_CalibrateAchan1_2TempTrim()

void Cy_DSADC_CalibrateAchan1_2TempTrim ( PACSS_DCHAN_Type *  base,
cy_en_dsadc_achan1_2temp_trim_gain_type_t  gain,
int32_t  temperature 
)

Calibrate the gain and the offset correction values for the ACHAN1 with the value derived from the calibration data stored in SFLASH.

Note
Applicable to PSOC4 HVPA only. The accuracy of the correction values are [-1, 1]. If the temperature value is out of range, then trim value is calculated with the minimum or the maximum temperature.
Parameters
baseThe base address for the Digital Channel.
gainThe gain value for the ACHAN1 see cy_en_dsadc_achan1_2temp_trim_gain_type_t.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS

◆ Cy_DSADC_CalibrateAchan1_3TempTrim()

void Cy_DSADC_CalibrateAchan1_3TempTrim ( PACSS_DCHAN_Type *  base,
cy_en_dsadc_achan_3temp_trim_divider_type_t  divider,
int32_t  temperature 
)

Calibrate the gain and the offset correction values for the ACHAN1 with the value derived from the calibration data stored in SFLASH.

Note
Applicable to PSOC4 HVPA only. The accuracy of the correction values are [-1, 1]. If the temperature value is out of range, then trim value is calculated with the minimum or the maximum temperature.
Parameters
baseThe base address for the Digital Channel.
dividerThe HV divider output for the ACHAN1 see cy_en_dsadc_achan_3temp_trim_divider_type_t.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS

◆ Cy_DSADC_CalibrateAchan0_3TempTrim()

void Cy_DSADC_CalibrateAchan0_3TempTrim ( PACSS_DCHAN_Type *  base,
cy_en_dsadc_achan_3temp_trim_divider_type_t  divider,
int32_t  temperature 
)

Calibrate the gain and the offset correction values for the HV divider on ACHAN0 with the value derived from the calibration data stored in SFLASH.

Note
Applicable to PSOC4 HVPA only. The accuracy of the correction values are [-1, 1]. If the temperature value is out of range, then trim value is calculated with the minimum or the maximum temperature.
Parameters
baseThe base address for the Digital Channel.
dividerThe HV divider output for the ACHAN1 see cy_en_dsadc_achan_3temp_trim_divider_type_t.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS

◆ Cy_DSADC_CalibrateAgcGainLevel()

void Cy_DSADC_CalibrateAgcGainLevel ( PACSS_MMIO_Type *  base,
cy_en_dsadc_achan0_2temp_trim_gain_type_t  gain,
uint8_t  index,
int32_t  temperature 
)

Calibrate the gain and the offset correction values for the AGC with the value derived from the calibration data stored in SFLASH.

Note
Applicable to PSOC4 HVPA only. The accuracy of the correction values are [-1, 1]. If the temperature value is out of range, then trim value is calculated with the minimum or the maximum temperature.
Parameters
baseThe pointer to the MMIO instance of the PACSS.
gainThe gain value for the AGC see cy_en_dsadc_achan0_2temp_trim_gain_type_t.
indexThe AGC gain level to be calibrated.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS

◆ Cy_DSADC_CalibrateAchan1_ExtTempTrim()

void Cy_DSADC_CalibrateAchan1_ExtTempTrim ( PACSS_DCHAN_Type *  base,
int32_t  temperature 
)

Calibrate the gain and the offset correction values for the ACHAN1 external temperature with the value derived from the calibration data stored in SFLASH.

Note
Applicable to PSOC4 HVPA only. The accuracy of the correction values are [-1, 1]. If the temperature value is out of range, then trim value is calculated with the minimum or the maximum temperature.
Parameters
baseThe base address for the Digital Channel.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS

◆ Cy_DSADC_GetPullupResistance()

uint16_t Cy_DSADC_GetPullupResistance ( cy_en_dsadc_dchan_reference_pullup_t  select,
int32_t  temperature 
)

Get the pull-up resistance value to suit the shunt pin and the current temperature.

Parameters
selectPull-up input selection. See cy_en_dsadc_dchan_reference_pullup_t.
temperatureTemperature in fixed point format Q12.20. CY_DSADC_TEMPERATURE_FRACTION_BITS
Returns
The pull-up resistance value in Ohms.
Note
If the select value is out of range, the resistance values for cold and hot are set to 0, and the result is calculated based on these values.