/* Return the output level (high or low) of the selected comparator.  */
uint32_t COMP_GetOutputLevel(uint32_t COMP_Selection)
/* Return the output level (high or low) of the selected comparator.  */
uint32_t COMP_GetOutputLevel(uint32_t COMP_Selection)
{
  uint32_t compout = 0x0;
  assert_param(IS_COMP_ALL_PERIPH(COMP_Selection));
  if ((COMP->CSR & (COMP_CSR_COMP1OUT<<COMP_Selection)) != 0)
  {
    compout = COMP_OutputLevel_High;
  }
  else
  {
    compout = COMP_OutputLevel_Low;
  }
  return (uint32_t)(compout);
}