performed. To unlock the configuration, perform a system
reset.
5.2.5.5 COMP_SwitchCmd
void COMP_SwitchCmd ( uint32_t COMP_Selection,
FunctionalState NewState)
Close or Open the SW1 switch.
ï‚· NewState : New state of the analog switch. This parameter
can be ENABLE so the SW1 is closed; PA1 is connected to
PA4 or DISABLE so the SW1 switch is open; PA1 is
disconnected from PA4
ï‚· If the COMP1 is locked, Close/Open the SW1 switch can't be
performed. To unlock the configuration, perform a system
reset.
ï‚· This switch is solely intended to redirect signals onto high
impedance input, such as COMP1 non-inverting input (highly
resistive switch)
5.2.5.6 COMP_GetOutputLevel
uint32_t COMP_GetOutputLevel ( uint32_t COMP_Selection)
Return the output level (high or low) of the selected comparator.