Analog Comparator#

Introduction#

The Analog Comparator is a peripheral that compares two analog input voltages and triggers an interrupt when non-inverting is higher than inverting. It typically has two input pins for comparing analog voltages.

Analog comparators are often used in:

  • Battery Monitoring: Detecting low battery conditions.

  • Threshold Detection: Triggering events when signals exceed predefined thresholds.

  • Sensor Interface: Comparing sensor outputs to reference voltages.

  • Wake-up Signals: Bringing the micro-controller out of low-power modes.

Key Features:

  • Both comparators can take inputs from GPIOs.

  • Each comparator has 9 different input sources, 2 of which are external GPIO pin inputs.

  • Multiple comparison scenarios:

    • Compare external pin inputs.

    • Compare external pin input to internal voltages.

    • Compare internal voltages.

  • The inputs of the two comparators can be independently programmed.

  • Shared resources: The reference buffer, scaler, and resistor bank are shared between the comparators and can only be enabled when at least one comparator is active.

Configuration#

The Analog Comparator can be configured using several parameters, including:

  • Non-Inverting Input Source: Select the positive input for the comparator.

  • Inverting Input Source: Select the negative input for the comparator.

  • Hysteresis: Enable or disable hysteresis to prevent noise from causing rapid toggling of the output.

  • Filter Enable/Disable: Control noise filtering on the input signal.

These configurations are encapsulated in the sl_analog_comparator_config_t structure and initialized using the sl_si91x_analog_comparator_set_configurations API.

For more details on configuration parameters, see the respective peripheral example readme document.

Usage#

After defining the Analog Comparator configuration structures and passing an instance of sl_analog_comparator_config_t, the following functions can be used to initiate and configure the ACMP module. The typical flow for implementation is as follows:

  1. Initialize the ACMP driver: sl_si91x_analog_comparator_init

  2. Set comparator configurations: sl_si91x_analog_comparator_set_configurations

  3. Set reference scaler output (if using a reference scaler): sl_si91x_analog_comparator_set_reference_scaler_output

  4. Set resistor bank threshold (if using a resistor bank): sl_si91x_analog_comparator_set_resistor_bank_threshold

  5. Register a callback for comparator events: sl_si91x_analog_comparator_register_callback

  6. Deinitialize the ACMP driver: sl_si91x_analog_comparator_deinit

Modules#

sl_analog_comparator_config_t

Enumerations#

enum
SL_COMPARATOR_1 = 1
SL_COMPARATOR_2
SL_COMPARATOR_LAST
}

Enumeration to represent the analog comparator number.

enum
SL_COMPARATOR_GPIO_INPUT_0
SL_COMPARATOR_GPIO_INPUT_1
SL_COMPARATOR_DAC_OUTPUT
SL_COMPARATOR_REFERENCE_BUFFER_OUTPUT
SL_COMPARATOR_REFERENCE_SCALER_OUTPUT
SL_COMPARATOR_RESISTOR_BANK_OUTPUT
SL_COMPARATOR_OPAMP1_OUTPUT
SL_COMPARATOR_OPAMP2_OUTPUT
SL_COMPARATOR_OPAMP3_OUTPUT
SL_COMPARATOR_INPUT_LAST
}

Enumeration to represent the types of analog comparator inputs.

enum
SL_COMPARATOR_HYSTERSIS_VALUE_0
SL_COMPARATOR_HYSTERSIS_VALUE_1
SL_COMPARATOR_HYSTERSIS_VALUE_2
SL_COMPARATOR_HYSTERSIS_VALUE_3
SL_COMPARATOR_HYSTERSIS_VALUE_LAST
}

Enumeration to represent the hysteresis control values.

enum
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_33_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_27_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_21_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_15_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_10_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_05_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_00_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_95_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_91_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_86_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_82_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_79_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_75_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_71_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_68_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_64_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_61_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_58_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_55_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_53_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_50_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_47_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_45_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_42_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_40_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_38_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_35_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_33_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_31_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_29_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_27_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_25_VOLT
SL_COMPARATOR_THRESHOLD_VALUE_LAST
}

Enumeration to represent BOD threshold values for resistor bank output.

enum
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_1_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_2_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_3_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_4_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_5_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_6_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_7_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_8_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_9_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_1_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_1_1_VOLT
SL_COMPARATOR_SCALE_FACTOR_VALUE_LAST
}

Enumeration to represent scale factor values for reference scaler output.

Typedefs#

typedef void(*

Typedef for the function pointer of the callback function.

Functions#

void

To initialize the Analog Comparator and configure the necessary clocks and reference voltage.

sl_status_t
sl_si91x_analog_comparator_set_configurations(sl_analog_comparator_config_t *comparator_config_ptr)

To configure the analog comparator settings and initialize the selected comparator.

sl_status_t
sl_si91x_analog_comparator_register_callback(sl_analog_comparator_number_t comparator_number, sl_analog_comparator_callback_t on_comparator_callback)

To register the Analog Comparator interrupt callback and enable its interrupts as per comparator number.

sl_status_t
sl_si91x_analog_comparator_unregister_callback(sl_analog_comparator_number_t comp_number)

To unregister the Analog Comparator interrupt callback and disable its interrupts as per comparator number.

sl_status_t
sl_si91x_analog_comparator_set_resistor_bank_threshold(sl_analog_comparator_threshold_values_t threshold_value)

To configure the Analog Comparator resistor bank threshold.

sl_status_t
sl_si91x_analog_comparator_set_reference_scaler_output(sl_analog_comparator_scale_factor_values_t scale_factor_value)

To configure the reference scaler for the Analog Comparator and set the scale factor.

void

To de-initialize the Analog Comparator.

Enumeration Documentation#

sl_analog_comparator_number_t#

sl_analog_comparator_number_t

Enumeration to represent the analog comparator number.

Enumerator
SL_COMPARATOR_1

Analog comparator 1.

SL_COMPARATOR_2

Analog comparator 2.

SL_COMPARATOR_LAST

Last member of enum for validation.


Definition at line 65 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_analog_comparator_inputs_t#

sl_analog_comparator_inputs_t

Enumeration to represent the types of analog comparator inputs.

Enumerator
SL_COMPARATOR_GPIO_INPUT_0

Select GPIO input for comparator non-inverting input.

SL_COMPARATOR_GPIO_INPUT_1

Select GPIO input for comparator non-inverting input.

SL_COMPARATOR_DAC_OUTPUT

Selects DAC output as comparator input.

SL_COMPARATOR_REFERENCE_BUFFER_OUTPUT

Selects reference buffer output as comparator input.

SL_COMPARATOR_REFERENCE_SCALER_OUTPUT

Selects reference scaler output as comparator input.

SL_COMPARATOR_RESISTOR_BANK_OUTPUT

Selects resistor bank output as comparator input.

SL_COMPARATOR_OPAMP1_OUTPUT

Selects OPAMP1 output as comparator input.

SL_COMPARATOR_OPAMP2_OUTPUT

Selects OPAMP2 output as comparator input.

SL_COMPARATOR_OPAMP3_OUTPUT

Selects OPAMP3 output as comparator input.

SL_COMPARATOR_INPUT_LAST

Last member of enum for validation.


Definition at line 74 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_analog_comparator_hystersis_values_t#

sl_analog_comparator_hystersis_values_t

Enumeration to represent the hysteresis control values.

Enumerator
SL_COMPARATOR_HYSTERSIS_VALUE_0

Hysteresis control value 0.

SL_COMPARATOR_HYSTERSIS_VALUE_1

Hysteresis control value 1.

SL_COMPARATOR_HYSTERSIS_VALUE_2

Hysteresis control value 2.

SL_COMPARATOR_HYSTERSIS_VALUE_3

Hysteresis control value 3.

SL_COMPARATOR_HYSTERSIS_VALUE_LAST

Last member of enum for validation.


Definition at line 90 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_analog_comparator_threshold_values_t#

sl_analog_comparator_threshold_values_t

Enumeration to represent BOD threshold values for resistor bank output.

Note

  • Values of the enumerator are calculated using VBAT = 3.5066 volts and these values vary from board to board.

Enumerator
SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_33_VOLT

Threshold value to get 2.33V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_27_VOLT

Threshold value to get 2.27V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_21_VOLT

Threshold value to get 2.21V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_15_VOLT

Threshold value to get 2.15V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_10_VOLT

Threshold value to get 2.10V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_05_VOLT

Threshold value to get 2.05V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_2_00_VOLT

Threshold value to get 2.00V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_95_VOLT

Threshold value to get 1.95V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_91_VOLT

Threshold value to get 1.91V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_86_VOLT

Threshold value to get 1.86V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_82_VOLT

Threshold value to get 1.82V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_79_VOLT

Threshold value to get 1.79V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_75_VOLT

Threshold value to get 1.75V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_71_VOLT

Threshold value to get 1.71V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_68_VOLT

Threshold value to get 1.68V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_64_VOLT

Threshold value to get 1.64V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_61_VOLT

Threshold value to get 1.61V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_58_VOLT

Threshold value to get 1.58V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_55_VOLT

Threshold value to get 1.55V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_53_VOLT

Threshold value to get 1.53V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_50_VOLT

Threshold value to get 1.50V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_47_VOLT

Threshold value to get 1.47V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_45_VOLT

Threshold value to get 1.45V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_42_VOLT

Threshold value to get 1.42V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_40_VOLT

Threshold value to get 1.40V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_38_VOLT

Threshold value to get 1.38V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_35_VOLT

Threshold value to get 1.35V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_33_VOLT

Threshold value to get 1.33V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_31_VOLT

Threshold value to get 1.31V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_29_VOLT

Threshold value to get 1.29V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_27_VOLT

Threshold value to get 1.27V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_FOR_1_25_VOLT

Threshold value to get 1.25V as resistor bank output voltage.

SL_COMPARATOR_THRESHOLD_VALUE_LAST

Last member of enum for validation.


Definition at line 104 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_analog_comparator_scale_factor_values_t#

sl_analog_comparator_scale_factor_values_t

Enumeration to represent scale factor values for reference scaler output.

Enumerator
SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_1_VOLT

Scale factor value to get 0.1V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_2_VOLT

Scale factor value to get 0.2V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_3_VOLT

Scale factor value to get 0.3V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_4_VOLT

Scale factor value to get 0.4V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_5_VOLT

Scale factor value to get 0.5V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_6_VOLT

Scale factor value to get 0.6V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_7_VOLT

Scale factor value to get 0.7V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_8_VOLT

Scale factor value to get 0.8V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_0_9_VOLT

Scale factor value to get 0.9V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_1_VOLT

Scale factor value to get 1V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_FOR_1_1_VOLT

Scale factor value to get 1.1V as reference scaler output voltage.

SL_COMPARATOR_SCALE_FACTOR_VALUE_LAST

Last member of enum for validation.


Definition at line 143 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

Typedef Documentation#

sl_analog_comparator_callback_t#

typedef void(* sl_analog_comparator_callback_t) (void) )(void)

Typedef for the function pointer of the callback function.


Definition at line 60 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

Function Documentation#

sl_si91x_analog_comparator_init#

void sl_si91x_analog_comparator_init (void )

To initialize the Analog Comparator and configure the necessary clocks and reference voltage.

Parameters
N/A

This API enables the system core clock and auxiliary clock with a 32MHz RC clock. It also configures the reference LDO voltage to 3.3V.

Note

  • This function must be called before using any other analog comparator functions.

  • The system core clock must be properly configured.


Definition at line 184 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_si91x_analog_comparator_set_configurations#

sl_status_t sl_si91x_analog_comparator_set_configurations (sl_analog_comparator_config_t * comparator_config_ptr)

To configure the analog comparator settings and initialize the selected comparator.

Parameters
[in]comparator_config_ptr

Pointer to analog comparator configuration structure sl_analog_comparator_config_t

This API configures the analog comparator by selecting the comparator number, non-inverting and inverting inputs, enabling or disabling hysteresis, and enabling or disabling the filter for comparator outputs. It also configures the input pins.

Returns

  • sl_status_t Status code indicating the result:

    • SL_STATUS_OK (0x0000) - Success, analog comparator parameters configured properly.

    • SL_STATUS_INVALID_PARAMETER (0x0021) - Analog comparator configuration structure member has an invalid value.

For more information on the status documentation, see SL STATUS DOCUMENTATION.


Definition at line 205 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_si91x_analog_comparator_register_callback#

sl_status_t sl_si91x_analog_comparator_register_callback (sl_analog_comparator_number_t comparator_number, sl_analog_comparator_callback_t on_comparator_callback)

To register the Analog Comparator interrupt callback and enable its interrupts as per comparator number.

Parameters
[in]comparator_number

For comparator number, see sl_analog_comparator_number_t for possible values.

[in]on_comparator_callback

Callback function pointer sl_analog_comparator_callback_t, to be invoked when a comparator interrupt occurs.

This API registers a callback function to be invoked when a comparator interrupt occurs and enables the interrupts for the specified comparator number.

Returns

  • sl_status_t Status code indicating the result:

    • SL_STATUS_OK (0x0000) - Successfully registered comparator interrupt callback.

    • SL_STATUS_BUSY (0x0004) - The callback is already registered. Unregister the existing callback before registering a new one.

    • SL_STATUS_INVALID_PARAMETER (0x0021) - sl_analog_comparator_callback_t comparator_number parameter has an invalid value.

    • SL_STATUS_NULL_POINTER (0x0022) - sl_analog_comparator_callback_t on_comparator_callback parameter is a null pointer.

For more information on the status documentation, see SL STATUS DOCUMENTATION.


Definition at line 229 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_si91x_analog_comparator_unregister_callback#

sl_status_t sl_si91x_analog_comparator_unregister_callback (sl_analog_comparator_number_t comp_number)

To unregister the Analog Comparator interrupt callback and disable its interrupts as per comparator number.

Parameters
[in]comp_number

For comparator number, see sl_analog_comparator_number_t for possible values.

This API disables the interrupts for the specified comparator number and unregisters the callback function.

Returns

  • sl_status_t Status code indicating the result:

    • SL_STATUS_OK (0x0000) - Successfully unregistered comparator interrupt callback.

    • SL_STATUS_INVALID_PARAMETER (0x0021) - comparator_number parameter has an invalid value.

For more information on the status documentation, see SL STATUS DOCUMENTATION.


Definition at line 251 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_si91x_analog_comparator_set_resistor_bank_threshold#

sl_status_t sl_si91x_analog_comparator_set_resistor_bank_threshold (sl_analog_comparator_threshold_values_t threshold_value)

To configure the Analog Comparator resistor bank threshold.

Parameters
[in]threshold_value

For comparator resistor bank, see sl_analog_comparator_threshold_values_t for possible values.

This API configures the resistor bank output voltage based on the specified threshold value. Use this input when one of the comparator inputs is the resistor bank output.

Returns

  • sl_status_t Status code indicating the result:

    • SL_STATUS_OK (0x0000) - Successfully configured the resistor bank threshold.

    • SL_STATUS_INVALID_PARAMETER (0x0021) - threshold_value parameter has an invalid value.

For more information on status codes, see SL STATUS DOCUMENTATION.


Definition at line 274 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_si91x_analog_comparator_set_reference_scaler_output#

sl_status_t sl_si91x_analog_comparator_set_reference_scaler_output (sl_analog_comparator_scale_factor_values_t scale_factor_value)

To configure the reference scaler for the Analog Comparator and set the scale factor.

Parameters
[in]scale_factor_value

For comparator's reference scale, see sl_analog_comparator_scale_factor_values_t for possible values.

This API sets the scale factor for the analog comparator module's reference scaler. As per this scale factor, the reference scaler output voltage will be set. Use this input when one of the comparator inputs is the reference scaler output.

Returns

  • sl_status_t Status code indicating the result:

    • SL_STATUS_OK (0x0000) - Successfully configured the reference scaler output. For more information on the status documentation, see SL STATUS DOCUMENTATION.

    • SL_STATUS_INVALID_PARAMETER (0x0021) - scale_factor_value parameter has an invalid value. For more information on the status documentation, see SL STATUS DOCUMENTATION.


Definition at line 298 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h

sl_si91x_analog_comparator_deinit#

void sl_si91x_analog_comparator_deinit (void )

To de-initialize the Analog Comparator.

Parameters
N/A

This API de-initializes the analog comparator by disabling the peripheral clock & comparator interrupts.


Definition at line 310 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_analog_comparator.h