/* ADC Read the End-of-Conversion Flag for Injected Conversion. 
This flag is set after all channels of an injected group have been converted. */
bool adc_eoc_injected(uint32_t adc)
/* ADC Read the End-of-Conversion Flag for Injected Conversion. 
This flag is set after all channels of an injected group have been converted. */
bool adc_eoc_injected(uint32_t adc)
{
	return (ADC_SR(adc) & ADC_SR_JEOC) != 0;
}