Functions
Window mode control function

Window mode control function. More...

Collaboration diagram for Window mode control function:

Functions

void COMP_WindowCmd (uint32_t COMP_Selection, FunctionalState NewState)
 Enables or disables the window mode. Window mode for comparators makes use of two comparators: COMP1 and COM2, COMP3 and COMP4, COMP5 and COMP6. In window mode, COMPx and COMPx-1 (where x can be 2, 4 or 6) non inverting inputs are connected together and only COMPx-1 non inverting input can be used. e.g When window mode enabled for COMP4, COMP3 non inverting input (PB14 or PD14) is to be used. More...
 

Detailed Description

Window mode control function.

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

Function Documentation

void COMP_WindowCmd ( uint32_t  COMP_Selection,
FunctionalState  NewState 
)

Enables or disables the window mode. Window mode for comparators makes use of two comparators: COMP1 and COM2, COMP3 and COMP4, COMP5 and COMP6. In window mode, COMPx and COMPx-1 (where x can be 2, 4 or 6) non inverting inputs are connected together and only COMPx-1 non inverting input can be used. e.g When window mode enabled for COMP4, COMP3 non inverting input (PB14 or PD14) is to be used.

Note
If the COMPx is locked, ENABLE/DISABLE the window mode can't be performed. To unlock the configuration, perform a system reset.
Parameters
COMP_Selectionthe selected comparator. This parameter can be COMP_Selection_COMPx where x can be 2, 4 or 6 to select the COMP peripheral. param NewState: new state of the window mode. This parameter can be ENABLE or DISABLE. When enbaled, COMPx and COMPx-1 non inverting inputs are connected together. When disabled, COMPx and COMPx-1 non inverting inputs are disconnected.
Return values
None

Definition at line 434 of file stm32f30x_comp.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:56