|
STM8L15x Standard Peripherals Drivers
|
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.
Definition at line 318 of file stm8l15x_comp.c.
References COMP, COMP_CSR3_WNDWE, DISABLE, and IS_FUNCTIONAL_STATE.