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

General Description

Data Structures

struct  stl_adc_config_mask_t
 Application-provided mask describing which SAR ADC instance configuration fields are legitimately changed by the application at runtime and must be excluded by SelfTest_ADC_Config_Save and SelfTest_ADC_Config_Verify. More...
struct  stl_adc_config_snapshot_t
 CRC-protected snapshot of one SAR2 ADC instance's configuration registers. More...
struct  stl_adc_mmio_config_mask_t
 Application-provided mask for the registers in stl_adc_mmio_config_snapshot_t. More...
struct  stl_adc_mmio_config_snapshot_t
 CRC-protected snapshot of the PASS-level registers shared by every SAR2 ADC instance (PASS0->EPASS_MMIO). More...

Data Structure Documentation

◆ stl_adc_config_mask_t

struct stl_adc_config_mask_t
Data Fields
bool skipAnaCal Exclude ANA_CAL entirely.
bool skipDigCal Exclude DIG_CAL entirely.
bool skipAnaCalAlt Exclude ANA_CAL_ALT entirely.
bool skipDigCalAlt Exclude DIG_CAL_ALT entirely.
uint32_t chSampleCtlMask[STL_ADC_CONFIG_MAX_CHAN] SAMPLE_CTL per-channel bitmask.

Must NOT mask PIN_ADDR/PORT_ADDR (channel routing); expected use is the ALT_CAL bit only.

uint32_t chTrCtlMask[STL_ADC_CONFIG_MAX_CHAN] TR_CTL per-channel bitmask.

Must NOT mask PRIO/PREEMPT_TYPE/ GROUP_END/DONE_LEVEL; expected use is the SEL field only.

uint32_t chPostCtlMask[STL_ADC_CONFIG_MAX_CHAN] POST_CTL per-channel bitmask.

Must NOT mask POST_PROC/LEFT_ALIGN/ SIGN_EXT/RANGE_MODE; expected use is AVG_CNT/SHIFT_R only.

uint32_t chIntrMaskMask[STL_ADC_CONFIG_MAX_CHAN] INTR_MASK per-channel bitmask: bits set here (per interrupt source) are excluded from comparison.
bool chSkipRangeCtl[STL_ADC_CONFIG_MAX_CHAN] RANGE_CTL per-channel skip: true excludes the whole register.
uint32_t channelSkipMask Coarse per-channel exclusion mask: bit N set to 1 excludes channel N's entire register set from Save/Verify, e.g.

for channels that are unused or fully re-configured by the application at runtime.

◆ stl_adc_config_snapshot_t

struct stl_adc_config_snapshot_t
Data Fields
uint32_t ctl CTL, with ENABLED masked out.
uint32_t diagCtl DIAG_CTL, with DIAG_EN masked out.
uint32_t precondCtl PRECOND_CTL.
uint32_t anaCal ANA_CAL (0 if userMask.skipAnaCal).
uint32_t digCal DIG_CAL (0 if userMask.skipDigCal).
uint32_t anaCalAlt ANA_CAL_ALT (0 if userMask.skipAnaCalAlt).
uint32_t digCalAlt DIG_CAL_ALT (0 if userMask.skipDigCalAlt).
uint32_t chTrCtl[STL_ADC_CONFIG_MAX_CHAN] Per-channel TR_CTL, with userMask.chTrCtlMask masked out.
uint32_t chSampleCtl[STL_ADC_CONFIG_MAX_CHAN] Per-channel SAMPLE_CTL, with userMask.chSampleCtlMask masked out.
uint32_t chPostCtl[STL_ADC_CONFIG_MAX_CHAN] Per-channel POST_CTL, with userMask.chPostCtlMask masked out.
uint32_t chRangeCtl[STL_ADC_CONFIG_MAX_CHAN] Per-channel RANGE_CTL (0 if userMask.chSkipRangeCtl).
uint32_t chIntrMask[STL_ADC_CONFIG_MAX_CHAN] Per-channel INTR_MASK, with userMask.chIntrMaskMask masked out.
uint32_t chEnable[STL_ADC_CONFIG_MAX_CHAN] Per-channel ENABLE, with CHAN_EN masked out.
stl_adc_config_mask_t userMask Mask configuration used to create this snapshot.
uint32_t crc CRC32 (SelfTests_CRC32) over every field above.

◆ stl_adc_mmio_config_mask_t

struct stl_adc_mmio_config_mask_t
Data Fields
uint32_t passCtlMask PASS_CTL bitmask (shared/global register): bits set here are excluded from comparison.

Expected use: REFBUF_MODE field only - DBG_FREEZE_EN is already handled internally.

uint32_t sarTrInSelMask[STL_ADC_CONFIG_TR_SEL_NUM] SAR_TR_IN_SEL per-slot bitmask, for applications that reprogram generic trigger input routing at runtime.
uint32_t sarTrOutSelMask[STL_ADC_CONFIG_TR_SEL_NUM] SAR_TR_OUT_SEL per-slot bitmask, for applications that reprogram generic trigger output routing at runtime.

◆ stl_adc_mmio_config_snapshot_t

struct stl_adc_mmio_config_snapshot_t
Data Fields
uint32_t passCtl PASS_CTL, with DBG_FREEZE_EN and userMask.passCtlMask masked out.
uint32_t sarTrInSel[STL_ADC_CONFIG_TR_SEL_NUM] SAR_TR_IN_SEL[4], with userMask.sarTrInSelMask masked out.
uint32_t sarTrOutSel[STL_ADC_CONFIG_TR_SEL_NUM] SAR_TR_OUT_SEL[4], with userMask.sarTrOutSelMask masked out.
stl_adc_mmio_config_mask_t userMask Mask configuration used to create this snapshot.
uint32_t crc CRC32 (SelfTests_CRC32) over every field above.