MTB CAT1 Peripheral driver library

Description

The SAR configuration structure.

Data Fields

cy_en_hppass_sar_vref_t vref
 SAR voltage reference source.
 
bool lowSupply
 Low Supply mode: Should be set false if VDDA >= 2.7V and true if VDDA < 2.7V.
 
bool offsetCal
 Enable the offset calibration during startup.
 
bool linearCal
 Enable the linearity calibration during startup.
 
bool gainCal
 Enable the gain calibration during startup.
 
bool chanId
 FIFO Channel Number Identifier Enable.
 
bool aroute
 Enable global AROUTE.
 
uint16_t dirSampEnMsk
 Static Enables for Direct Samplers. More...
 
uint8_t muxSampEnMsk
 Static Enables for Muxed Samplers. More...
 
uint16_t holdCount
 This is the a global max HOLD count applied to all entries. More...
 
cy_en_hppass_sar_samp_gain_t dirSampGain [CY_HPPASS_SAR_DIR_SAMP_NUM]
 The array of the direct sampler gain settings. More...
 
cy_en_hppass_sar_samp_gain_t muxSampGain [CY_HPPASS_SAR_MUX_SAMP_NUM]
 The array of the muxed sampler gain settings. More...
 
uint16_t sampTime [CY_HPPASS_SAR_SAMP_TIME_NUM]
 The array of the sampling timer apertures in clock cycles. More...
 
cy_stc_hppass_sar_chan_t const * chan [CY_HPPASS_SAR_CHAN_NUM]
 Array of pointers to the channel configuration structures. More...
 
cy_stc_hppass_sar_grp_t const * grp [CY_HPPASS_SAR_GRP_NUM]
 Array of pointers to the SAR Sequencer Group configuration structures. More...
 
cy_stc_hppass_sar_limit_t const * limit [CY_HPPASS_SAR_LIMIT_NUM]
 Array of pointers to the limit crossing detection configuration structures. More...
 
cy_en_hppass_sar_mux_t muxMode [CY_HPPASS_SAR_MUX_NUM]
 Analog routing MUX control mode.
 
cy_stc_hppass_fir_t const * fir [CY_HPPASS_FIR_NUM]
 Array of pointers to the FIR configuration structures. More...
 
cy_stc_hppass_fifo_t const * fifo
 Pointer to the FIFO configuration structure. More...
 

Field Documentation

◆ dirSampEnMsk

uint16_t cy_stc_hppass_sar_t::dirSampEnMsk

Static Enables for Direct Samplers.

Must be set if in use by application, otherwise it is OFF and must not be selected in any Sequencer Group. A given Sequencer Group is considered invalid if

  • There are no Samplers enabled and
  • For the given set of enabled Samplers, they all must be powered ON with this static setting. If the Group is invalid, no action will be taken in the Sequencer if this Group is triggered.

◆ muxSampEnMsk

uint8_t cy_stc_hppass_sar_t::muxSampEnMsk

Static Enables for Muxed Samplers.

Must be set if in use by application, otherwise it is OFF and must not be selected in any Sequencer Group. Refer to cy_stc_hppass_sar_t::dirSampEnMsk for details.

◆ holdCount

uint16_t cy_stc_hppass_sar_t::holdCount

This is the a global max HOLD count applied to all entries.

The resolution of each count is 16 HPPASS high frequency clock counts. For example, if the HPPASS high frequency clock is 160MHz, each count will be 16/160MHz = 100ns. The default value for this field is 30 counts (3us at 160MHz).

◆ dirSampGain

cy_en_hppass_sar_samp_gain_t cy_stc_hppass_sar_t::dirSampGain[CY_HPPASS_SAR_DIR_SAMP_NUM]

The array of the direct sampler gain settings.

For the odd samplers which are used as a pseudo-differential negative the gain must be the same as in the correspondent even positive sampler.

◆ muxSampGain

cy_en_hppass_sar_samp_gain_t cy_stc_hppass_sar_t::muxSampGain[CY_HPPASS_SAR_MUX_SAMP_NUM]

The array of the muxed sampler gain settings.

For the odd samplers which are used as a pseudo-differential negative the gain must be the same as in the correspondent even positive sampler.

◆ sampTime

uint16_t cy_stc_hppass_sar_t::sampTime[CY_HPPASS_SAR_SAMP_TIME_NUM]

The array of the sampling timer apertures in clock cycles.

Valid range is 1..1024

◆ chan

cy_stc_hppass_sar_chan_t const* cy_stc_hppass_sar_t::chan[CY_HPPASS_SAR_CHAN_NUM]

Array of pointers to the channel configuration structures.

May contain NULL pointers for unused channels.

◆ grp

cy_stc_hppass_sar_grp_t const* cy_stc_hppass_sar_t::grp[CY_HPPASS_SAR_GRP_NUM]

Array of pointers to the SAR Sequencer Group configuration structures.

May contain NULL pointers for unused groups.

◆ limit

cy_stc_hppass_sar_limit_t const* cy_stc_hppass_sar_t::limit[CY_HPPASS_SAR_LIMIT_NUM]

Array of pointers to the limit crossing detection configuration structures.

May contain NULL pointers for unused ranges.

◆ fir

cy_stc_hppass_fir_t const* cy_stc_hppass_sar_t::fir[CY_HPPASS_FIR_NUM]

Array of pointers to the FIR configuration structures.

May contain NULL pointers for unused filters.

◆ fifo

cy_stc_hppass_fifo_t const* cy_stc_hppass_sar_t::fifo

Pointer to the FIFO configuration structure.

Can be NULL if FIFO is not used.