STM8L15x Standard Peripherals Drivers: Window mode control function

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Window mode control function

Window mode control function. More...

Functions

void COMP_WindowCmd (FunctionalState NewState)
 Enables or disables the window mode.

Detailed Description

Window mode control function.

 ===============================================================================
                              Window mode control function
 ===============================================================================  

  In window mode:
      - COMP1 inverting input is fixed to VREFINT defining the first
        threshold
      - COMP2 inverting input is configurable (DAC_OUT1, VREFINT sub-multiples, ...)
        defining the second threshold
      - COMP1 and COMP2 non inverting inputs are connected together.
         

Function Documentation

void COMP_WindowCmd ( FunctionalState  NewState)

Enables or disables the window mode.

Parameters:
NewStatenew state of the window mode. This parameter can be ENABLE or DISABLE.
Return values:
None

Definition at line 318 of file stm8l15x_comp.c.

References COMP, COMP_CSR3_WNDWE, DISABLE, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com