mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f0b0db8f06
- fixed group naming scheme to 'drivers_xx' - introduced a group for actuators (analog to the sensors) - added missing doxygen to ltc4150 driver
53 lines
1005 B
C
53 lines
1005 B
C
/*
|
|
* Copyright 2012 Freie Universität Berlin
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup drivers_adc ADC
|
|
* @ingroup drivers
|
|
* @brief Generic interface for ADC drivers
|
|
*
|
|
* @deprecated This interface is obsolete. Use the @ref drivers_periph_adc
|
|
* interface in @ref drivers_periph instead.
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Legacy ADC driver interface
|
|
*
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
*/
|
|
|
|
#ifndef ADC_LEGACY_H
|
|
#define ADC_LEGACY_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Initialize ADC.
|
|
*/
|
|
void adc_init(void);
|
|
|
|
/**
|
|
* @brief Read ADC value of selected channel.
|
|
*
|
|
* Valid channel numbers are from 0 to 2.
|
|
*
|
|
* @return ADC value of selected channel.
|
|
*/
|
|
uint16_t adc_read(uint8_t channel);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ADC_LEGACY_H */
|
|
/** @} */
|