Jump to main content

##

# 2.104.9 SDADC_ComparisonWindowSet Function

## C

    void SDADC_ComparisonWindowSet(int16_t low_threshold, int16_t high_threshold)

## Summary

Returns the status of automatic sequence conversion.

## Description

This function configures the window threshold values.

## Precondition

SDADC_Initialize() function must have been called first for the associated instance.

## Parameters

Param | Description
--- | ---
low_threshold | 16-bit signed value for lower threshold
high_threshold | 16-bit signed value for upper threshold

## Returns

None

## Example

    SDADC_Initialize();
    SDADC_ComparisonWindowSet(0x1000, 0x3000);

## Remarks

This function is valid only if window monitor feature is enabled. 16-bit signed values are written in the register as 24-bit by left shifting by 8 bits.