AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/adc/adc.h
static inline void adc_set_conversion_parameters (struct adc_config *conf,
						    enum adc_sign sign,
						    enum adc_resolution res,
						    enum adc_reference ref)
  {
    /* Preserve all but conversion and resolution config. */
    conf->ctrlb &= ~(ADC_CONMODE_bm | ADC_RESOLUTION_gm);
    conf->ctrlb |= (uint8_t) res | (uint8_t) sign;

    conf->refctrl &= ~ADC_REFSEL_gm;
    conf->refctrl |= ref;
  }
/**
 * \brief Set ADC conversion parameters
 *
 * Sets the signedness, resolution and voltage reference for conversions in the
 * ADC module configuration.
 *
 * \param conf Pointer to ADC module configuration.
 * \param sign Conversion signedness.
 * \param res Resolution of conversions.
 * \param ref Voltage reference to use.
 */
\brief Set ADC conversion parameters
Sets the signedness, resolution and voltage reference for conversions in the
ADC module configuration.

\param conf Pointer to ADC module configuration.
\param sign Conversion signedness.
\param res Resolution of conversions.
\param ref Voltage reference to use.
\ brief Set ADC conversion parameters Sets the signedness resolution and voltage reference for conversions in the ADC module configuration . \ param conf Pointer to ADC module configuration . \ param sign Conversion signedness . \ param res Resolution of conversions . \ param ref Voltage reference to use .
static inline void adc_set_conversion_parameters (struct adc_config *conf,
						    enum adc_sign sign,
						    enum adc_resolution res,
						    enum adc_reference ref)
  {
    conf->ctrlb &= ~(ADC_CONMODE_bm | ADC_RESOLUTION_gm);
    conf->ctrlb |= (uint8_t) res | (uint8_t) sign;
    conf->refctrl &= ~ADC_REFSEL_gm;
    conf->refctrl |= ref;
  }
static inline void adc_set_conversion_parameters ( struct adc_config * conf , enum adc_sign sign , enum adc_resolution res , enum adc_reference ref ) { conf -> ctrlb &= ~ ( ADC_CONMODE_bm | ADC_RESOLUTION_gm ) ; conf -> ctrlb |= ( uint8_t ) res | ( uint8_t ) sign ; conf -> refctrl &= ~ ADC_REFSEL_gm ; conf -> refctrl |= ref ; }
\brief Set ADC conversion parameters
 Sets the signedness, resolution and voltage reference for conversions in the
 ADC module configuration.
\ brief Set ADC conversion parameters Sets the signedness resolution and voltage reference for conversions in the ADC module configuration .
/* Preserve all but conversion and resolution config. */