/* Enables or disables the window mode. In window mode:  */
void COMP_WindowCmd(FunctionalState NewState)
/* Enables or disables the window mode. In window mode:  */
void COMP_WindowCmd(FunctionalState NewState)
{
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    COMP->CSR |= (uint32_t) COMP_CSR_WNDWE;
  }
  else
  {
    COMP->CSR &= (uint32_t)(~COMP_CSR_WNDWE);
  }
}