AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/adc/adc.h
static inline void adc_set_dma_request_group (struct adc_config *conf,
						uint8_t nr_of_ch)
  {
    Assert (nr_of_ch <= ADC_NR_OF_CHANNELS);
    Assert (nr_of_ch != 1);

    if (nr_of_ch)
      {
	conf->ctrla = (nr_of_ch - 1) << ADC_DMASEL_gp;
      }
    else
      {
	conf->ctrla = ADC_DMASEL_OFF_gc;
      }
  }
/**
 * \brief Set DMA request group
 *
 * Configures the DMA group request for the specified number of ADC channels.
 * The channel group selection is incrementally inclusive, always starting with
 * channel 0.
 *
 * \param conf Pointer to ADC module configuration.
 * \param nr_of_ch Number of channels for group request:
 * \arg 0 to disable.
 * \arg 2, 3 or 4 to enable.
 *
 * \note The number of channels in the DMA request group cannot be 1.
 * \note Not all device families feature this setting.
 */
\brief Set DMA request group
Configures the DMA group request for the specified number of ADC channels.
The channel group selection is incrementally inclusive, always starting with
channel 0.

\param conf Pointer to ADC module configuration.
\param nr_of_ch Number of channels for group request:
\arg 0 to disable.
\arg 2, 3 or 4 to enable.

\note The number of channels in the DMA request group cannot be 1.
\note Not all device families feature this setting.
\ brief Set DMA request group Configures the DMA group request for the specified number of ADC channels . The channel group selection is incrementally inclusive always starting with channel 0 . \ param conf Pointer to ADC module configuration . \ param nr_of_ch Number of channels for group request : \ arg 0 to disable . \ arg 2 3 or 4 to enable . \ note The number of channels in the DMA request group cannot be 1 . \ note Not all device families feature this setting .
static inline void adc_set_dma_request_group (struct adc_config *conf,
						uint8_t nr_of_ch)
  {
    Assert (nr_of_ch <= ADC_NR_OF_CHANNELS);
    Assert (nr_of_ch != 1);
    if (nr_of_ch)
      {
	conf->ctrla = (nr_of_ch - 1) << ADC_DMASEL_gp;
      }
    else
      {
	conf->ctrla = ADC_DMASEL_OFF_gc;
      }
  }
static inline void adc_set_dma_request_group ( struct adc_config * conf , uint8_t nr_of_ch ) { Assert ( nr_of_ch <= ADC_NR_OF_CHANNELS ) ; Assert ( nr_of_ch != 1 ) ; if ( nr_of_ch ) { conf -> ctrla = ( nr_of_ch - 1 ) << ADC_DMASEL_gp ; } else { conf -> ctrla = ADC_DMASEL_OFF_gc ; } }
\brief Set DMA request group
 Configures the DMA group request for the specified number of ADC channels.
\ brief Set DMA request group Configures the DMA group request for the specified number of ADC channels .