AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/adc/adc.h
static inline void adc_set_current_limit (struct adc_config *conf,
					    enum adc_current_limit currlimit)
  {
    conf->ctrlb &= ~ADC_CURRLIMIT_gm;

    switch (currlimit)
      {
      case ADC_CURRENT_LIMIT_NO:
	conf->ctrlb |= ADC_CURRLIMIT_NO_gc;
	break;

      case ADC_CURRENT_LIMIT_LOW:
	conf->ctrlb |= ADC_CURRLIMIT_LOW_gc;
	break;

      case ADC_CURRENT_LIMIT_MED:
	conf->ctrlb |= ADC_CURRLIMIT_MED_gc;
	break;

      case ADC_CURRENT_LIMIT_HIGH:
	conf->ctrlb |= ADC_CURRLIMIT_HIGH_gc;
	break;

      default:
	Assert (0);
      }
  }
/**
 * \brief Set ADC current limit
 *
 * Set the current limit mode for the ADC module. This setting affects the max
 * sampling rate of the ADC.
 *
 * \note See the device datasheet and manual for detailed information about
 * current consumption and sample rate limit.
 *
 * \param conf Pointer to ADC module configuration.
 * \param currlimit Current limit setting.
 *
 * \note Not all device families feature this setting.
 */
\brief Set ADC current limit
Set the current limit mode for the ADC module. This setting affects the max
sampling rate of the ADC.

\note See the device datasheet and manual for detailed information about
current consumption and sample rate limit.

\param conf Pointer to ADC module configuration.
\param currlimit Current limit setting.

\note Not all device families feature this setting.
\ brief Set ADC current limit Set the current limit mode for the ADC module . This setting affects the max sampling rate of the ADC . \ note See the device datasheet and manual for detailed information about current consumption and sample rate limit . \ param conf Pointer to ADC module configuration . \ param currlimit Current limit setting . \ note Not all device families feature this setting .
static inline void adc_set_current_limit (struct adc_config *conf,
					    enum adc_current_limit currlimit)
  {
    conf->ctrlb &= ~ADC_CURRLIMIT_gm;
    switch (currlimit)
      {
      case ADC_CURRENT_LIMIT_NO:
	conf->ctrlb |= ADC_CURRLIMIT_NO_gc;
	break;
      case ADC_CURRENT_LIMIT_LOW:
	conf->ctrlb |= ADC_CURRLIMIT_LOW_gc;
	break;
      case ADC_CURRENT_LIMIT_MED:
	conf->ctrlb |= ADC_CURRLIMIT_MED_gc;
	break;
      case ADC_CURRENT_LIMIT_HIGH:
	conf->ctrlb |= ADC_CURRLIMIT_HIGH_gc;
	break;
      default:
	Assert (0);
      }
  }
static inline void adc_set_current_limit ( struct adc_config * conf , enum adc_current_limit currlimit ) { conf -> ctrlb &= ~ ADC_CURRLIMIT_gm ; switch ( currlimit ) { case ADC_CURRENT_LIMIT_NO : conf -> ctrlb |= ADC_CURRLIMIT_NO_gc ; break ; case ADC_CURRENT_LIMIT_LOW : conf -> ctrlb |= ADC_CURRLIMIT_LOW_gc ; break ; case ADC_CURRENT_LIMIT_MED : conf -> ctrlb |= ADC_CURRLIMIT_MED_gc ; break ; case ADC_CURRENT_LIMIT_HIGH : conf -> ctrlb |= ADC_CURRLIMIT_HIGH_gc ; break ; default : Assert ( 0 ) ; } }
\brief Set ADC current limit
 Set the current limit mode for the ADC module.
\ brief Set ADC current limit Set the current limit mode for the ADC module .