ModusToolbox Safety Test Library
Loading...
Searching...
No Matches

General Description

Data Structures

struct  stl_atop_adc_core_config_t
 Configuration for one ADC Core self-test run. More...

Macros

#define ATOP_ADC_CORE_CONFIG_GRP0_VREF
 Ready-made configuration: GROUP0 internal 1.2 V VREF self-test.

Enumerations

enum  stl_atop_adc_ref_source_t {
  CY_STL_ATOP_ADC_REF_VREF_1V2 = 0U ,
  CY_STL_ATOP_ADC_REF_EXTERNAL = 1U
}
 Reference source converted and checked by the ADC Core self-test. More...

Data Structure Documentation

◆ stl_atop_adc_core_config_t

struct stl_atop_adc_core_config_t
Data Fields
uint8_t adcGroup ADC group selector (ATOP_ADC_CORE_GROUP_0 ..).
uint8_t channel ADC channel carrying the reference.
stl_atop_adc_ref_source_t refSource Reference source to convert.
uint16_t expectedCode Expected 12-bit conversion code.
uint16_t toleranceCode Acceptance window (+/- codes); must be non-zero.

SelfTest_ATOP_ADC_Core returns ERROR_BAD_PARAM if this is zero.

Macro Definition Documentation

◆ ATOP_ADC_CORE_CONFIG_GRP0_VREF

#define ATOP_ADC_CORE_CONFIG_GRP0_VREF
Value:
{ \
}
@ CY_STL_ATOP_ADC_REF_VREF_1V2
Internal 1.2 V bandgap VREF (on-chip reference).
Definition SelfTest_ATOP_ADC_Core.h:146
#define ATOP_ADC_CORE_VREF_TOLERANCE_CODE
Acceptance window (+/- codes) around the VREF expected code.
Definition SelfTest_ATOP_ADC_Core.h:134
#define ATOP_ADC_CORE_AUX_CHANNEL
ADC channel index (7) onto which the AUX multiplexer is routed; this is the channel that carries the ...
Definition SelfTest_ATOP_ADC_Core.h:122
#define ATOP_ADC_CORE_GROUP_0
ATOP ADC group 0 index.
Definition SelfTest_ATOP_ADC_Core.h:103
#define ATOP_ADC_CORE_VREF_EXPECTED_CODE
Expected 12-bit code for the internal 1.2 V bandgap VREF, converted ratiometrically against VDDA and ...
Definition SelfTest_ATOP_ADC_Core.h:132

Ready-made configuration: GROUP0 internal 1.2 V VREF self-test.

Enumeration Type Documentation

◆ stl_atop_adc_ref_source_t

Reference source converted and checked by the ADC Core self-test.

Enumerator
CY_STL_ATOP_ADC_REF_VREF_1V2 

Internal 1.2 V bandgap VREF (on-chip reference).

CY_STL_ATOP_ADC_REF_EXTERNAL 

External reference on a regular ADC channel.

Converts an application-supplied voltage on the selected channel and checks it against the caller's expectedCode / toleranceCode.