Range Interrupt Register Enums

group group_sar_range_thres_register_enums

This set of enumerations aids in configuring the SAR RANGE* registers.

Enums

enum cy_en_sar_range_thres_shift_t

cy_en_sar_range_thres_shift_t: Configure the lower and upper thresholds for range detection.

The SARSEQ supports range detection to allow for automatic detection of sample values compared to two programmable thresholds without CPU involvement. Range detection is defined by two global thresholds and a condition. The RANGE_LOW value defines the lower threshold and RANGE_HIGH defines the upper threshold of the range.

Range detect is done after averaging, alignment, and sign extension (if applicable). In other words, the thresholds values must have the same data format as the result data. Range detection is always done for all channels scanned. By making RANGE_INTR_MASK=0, the firmware can choose to ignore the range detect interrupt for any channel.

Values:

enumerator CY_SAR_RANGE_LOW_SHIFT

Shift for setting lower limit of range detection.

enumerator CY_SAR_RANGE_HIGH_SHIFT

Shift for setting upper limit of range detection.

enum cy_en_sar_range_detect_condition_t

cy_en_sar_range_detect_condition_t: Configure the condition (below, inside, above, or outside) of the range detection interrupt.

Values:

enumerator CY_SAR_RANGE_COND_BELOW

Range interrupt detected when result < RANGE_LOW.

enumerator CY_SAR_RANGE_COND_INSIDE

Range interrupt detected when RANGE_LOW <= result < RANGE_HIGH.

enumerator CY_SAR_RANGE_COND_ABOVE

Range interrupt detected when RANGE_HIGH <= result.

enumerator CY_SAR_RANGE_COND_OUTSIDE

Range interrupt detected when result < RANGE_LOW || RANGE_HIGH <= result.