Configuration structure of the SAR2 ADC channel.
bool cy_stc_sar2_channel_config_t::channelHwEnable |
If HW is started, or just configured.
uint8_t cy_stc_sar2_channel_config_t::channelPriority |
Channel priority.
0=highest, 7=lowest.
uint8_t cy_stc_sar2_channel_config_t::extMuxSelect |
External analog mux selection.
bool cy_stc_sar2_channel_config_t::extMuxEnable |
External analog mux enable.
uint16_t cy_stc_sar2_channel_config_t::sampleTime |
Sample time (aperture) in ADC clock cycles.
The minimum is 1 (0 gives the same result as 1), the minimum time needed for the proper settling is at least 300ns, i.e. 6 clock cycles at the max frequency of 20MHz.
uint16_t cy_stc_sar2_channel_config_t::averageCount |
Averaging count.
Active only if post processing mode is set to Averaging or Averaging + Range detect. The valid range is [1..256]
uint8_t cy_stc_sar2_channel_config_t::rightShift |
Shift Right.
When using post processing mode with averaging, the set value is used for the right-shift value of the conversion result. Averaging data may be over 12 bits, therefore the user must ensure the conversion result is not to over 12 bits by using this value. This value is also used to fit the 12-bit result in 8 bits. The valid range is [0..15]
uint16_t cy_stc_sar2_channel_config_t::positiveReload |
Positive pulse reload value.
Active only if post processing is set to the Pulse detection. The valid range is [0..255].
uint8_t cy_stc_sar2_channel_config_t::negativeReload |
Negative pulse reload value.
Active only if post processing is set to the Pulse detection. The valid range is [0..31].
uint32_t cy_stc_sar2_channel_config_t::interruptMask |
Select the interrupt sources.
See Interrupt Masks