This set of enumerations aids in configuring the SAR RANGE* registers.
Enumerations | |
enum | cy_en_sar_range_thres_shift_t { CY_SAR_RANGE_LOW_SHIFT = SAR_RANGE_THRES_RANGE_LOW_Pos, CY_SAR_RANGE_HIGH_SHIFT = SAR_RANGE_THRES_RANGE_HIGH_Pos } |
Configure the lower and upper thresholds for range detection. More... | |
enum | cy_en_sar_range_detect_condition_t { CY_SAR_RANGE_COND_BELOW = 0uL, CY_SAR_RANGE_COND_INSIDE = 1uL, CY_SAR_RANGE_COND_ABOVE = 2uL, CY_SAR_RANGE_COND_OUTSIDE = 3uL } |
Configure the condition (below, inside, above, or outside) of the range detection interrupt. More... | |
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.
Enumerator | |
---|---|
CY_SAR_RANGE_LOW_SHIFT | Shift for setting lower limit of range detection. |
CY_SAR_RANGE_HIGH_SHIFT | Shift for setting upper limit of range detection. |
Configure the condition (below, inside, above, or outside) of the range detection interrupt.