AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/adc/adc.h
static inline void adcch_set_pin_scan (struct adc_channel_config *ch_conf,
					 uint8_t start_offset,
					 uint8_t max_offset)
  {
    Assert (start_offset < 16);
    Assert (max_offset < 16);
    Assert (start_offset <= max_offset);

    ch_conf->scan = max_offset | (start_offset << ADC_CH_OFFSET_gp);
  }
/**
 * \brief Set ADC channel 0 pin scan
 *
 * Sets the parameters for pin scan, which enables measurements on multiple,
 * successive input pins without any reconfiguration between conversions.
 *
 * Pin scan works by adding a offset to the positive MUX setting to get the
 * current input pin. The offset is incremented for each conversion, and is
 * reset to 0 once a conversion with the maximum offset is done.
 *
 * \param ch_conf Pointer to the ADC channel configuration structure
 * \param start_offset Initial offset to start pin scan at
 * \arg \c 0 - \c max_offset
 * \param max_offset Maximum offset for the pin scan
 * \arg \c 0 to disable
 * \arg \c 1 - \c 15 to enable
 *
 * \note Only the AVR XMEGA AU family features this setting.
 * \note Pin scan is only available on ADC channel 0.
 */
\brief Set ADC channel 0 pin scan
Sets the parameters for pin scan, which enables measurements on multiple,
successive input pins without any reconfiguration between conversions.

Pin scan works by adding a offset to the positive MUX setting to get the
current input pin. The offset is incremented for each conversion, and is
reset to 0 once a conversion with the maximum offset is done.



\note Only the AVR XMEGA AU family features this setting.
\note Pin scan is only available on ADC channel 0.
\ brief Set ADC channel 0 pin scan Sets the parameters for pin scan which enables measurements on multiple successive input pins without any reconfiguration between conversions . Pin scan works by adding a offset to the positive MUX setting to get the current input pin . The offset is incremented for each conversion and is reset to 0 once a conversion with the maximum offset is done . \ note Only the AVR XMEGA AU family features this setting . \ note Pin scan is only available on ADC channel 0 .
static inline void adcch_set_pin_scan (struct adc_channel_config *ch_conf,
					 uint8_t start_offset,
					 uint8_t max_offset)
  {
    Assert (start_offset < 16);
    Assert (max_offset < 16);
    Assert (start_offset <= max_offset);
    ch_conf->scan = max_offset | (start_offset << ADC_CH_OFFSET_gp);
  }
static inline void adcch_set_pin_scan ( struct adc_channel_config * ch_conf , uint8_t start_offset , uint8_t max_offset ) { Assert ( start_offset < 16 ) ; Assert ( max_offset < 16 ) ; Assert ( start_offset <= max_offset ) ; ch_conf -> scan = max_offset | ( start_offset << ADC_CH_OFFSET_gp ) ; }
\brief Set ADC channel 0 pin scan
 Sets the parameters for pin scan, which enables measurements on multiple,
 successive input pins without any reconfiguration between conversions.
\ brief Set ADC channel 0 pin scan Sets the parameters for pin scan which enables measurements on multiple successive input pins without any reconfiguration between conversions .