/* Return the output level (high or low) of the selected comparator.  */
uint32_t OPA_GetOutputLevel(OPA_TypeDef *OPAx, uint32_t OPA_OutLevel)
/* Return the output level (high or low) of the selected comparator.  */
uint32_t OPA_GetOutputLevel(OPA_TypeDef *OPAx, uint32_t OPA_OutLevel)
{
	uint32_t compout = 0x0;
	assert_param(IS_OPA_ALL_PERIPH(OPAx));
	assert_param(IS_OPA_OUTPUT_LEVEL(OPA_OutLevel));
	if ((OPAx->CR & OPA_OutLevel) != 0)
	{
		compout = OPA_OutLevel;
	}
	else
	{
		compout = OPA_OutputLevel_Low;
	}
	return (uint32_t)(compout);
}