AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/adc/adc.h
static inline uint16_t adc_get_unsigned_compare_value (ADC_t * adc)
  {
    uint16_t val;
    irqflags_t flags;

    flags = cpu_irq_save ();
    val = adc->CMP;
    cpu_irq_restore (flags);

    return val;
  }
/**
 * \brief Get unsigned compare value directly from ADC
 *
 * Gets the unsigned compare value directly from the ADC, with interrupt
 * protection of the 16-bit read, for quick access while the ADC is enabled.
 *
 * \param adc Pointer to ADC module.
 */
\brief Get unsigned compare value directly from ADC
Gets the unsigned compare value directly from the ADC, with interrupt
protection of the 16-bit read, for quick access while the ADC is enabled.

\param adc Pointer to ADC module.
\ brief Get unsigned compare value directly from ADC Gets the unsigned compare value directly from the ADC with interrupt protection of the 16 - bit read for quick access while the ADC is enabled . \ param adc Pointer to ADC module .
static inline uint16_t adc_get_unsigned_compare_value (ADC_t * adc)
  {
    uint16_t val;
    irqflags_t flags;
    flags = cpu_irq_save ();
    val = adc->CMP;
    cpu_irq_restore (flags);
    return val;
  }
static inline uint16_t adc_get_unsigned_compare_value ( ADC_t * adc ) { uint16_t val ; irqflags_t flags ; flags = cpu_irq_save ( ) ; val = adc -> CMP ; cpu_irq_restore ( flags ) ; return val ; }
\brief Get unsigned compare value directly from ADC
 Gets the unsigned compare value directly from the ADC, with interrupt
 protection of the 16-bit read, for quick access while the ADC is enabled.
\ brief Get unsigned compare value directly from ADC Gets the unsigned compare value directly from the ADC with interrupt protection of the 16 - bit read for quick access while the ADC is enabled .