AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/adc/adc.h
static inline void adc_set_gain_impedance_mode (struct adc_config *conf,
						  enum adc_gainstage_impmode
						  impmode)
  {
    switch (impmode)
      {
      case ADC_GAIN_HIGHIMPEDANCE:
	conf->ctrlb &= ~ADC_IMPMODE_bm;
	break;

      case ADC_GAIN_LOWIMPEDANCE:
	conf->ctrlb |= ADC_IMPMODE_bm;
	break;

      default:
	Assert (0);
      }
  }
/**
 * \brief Set ADC gain stage impedance mode
 *
 * \param conf Pointer to ADC module configuration.
 * \param impmode Gain stage impedance mode.
 *
 * \note Not all device families feature this setting.
 */
\brief Set ADC gain stage impedance mode
\param conf Pointer to ADC module configuration.
\param impmode Gain stage impedance mode.

\note Not all device families feature this setting.
\ brief Set ADC gain stage impedance mode \ param conf Pointer to ADC module configuration . \ param impmode Gain stage impedance mode . \ note Not all device families feature this setting .
static inline void adc_set_gain_impedance_mode (struct adc_config *conf,
						  enum adc_gainstage_impmode
						  impmode)
  {
    switch (impmode)
      {
      case ADC_GAIN_HIGHIMPEDANCE:
	conf->ctrlb &= ~ADC_IMPMODE_bm;
	break;
      case ADC_GAIN_LOWIMPEDANCE:
	conf->ctrlb |= ADC_IMPMODE_bm;
	break;
      default:
	Assert (0);
      }
  }
static inline void adc_set_gain_impedance_mode ( struct adc_config * conf , enum adc_gainstage_impmode impmode ) { switch ( impmode ) { case ADC_GAIN_HIGHIMPEDANCE : conf -> ctrlb &= ~ ADC_IMPMODE_bm ; break ; case ADC_GAIN_LOWIMPEDANCE : conf -> ctrlb |= ADC_IMPMODE_bm ; break ; default : Assert ( 0 ) ; } }
\brief Set ADC gain stage impedance mode
 \param conf Pointer to ADC module configuration.
\ brief Set ADC gain stage impedance mode \ param conf Pointer to ADC module configuration .