3 * Copyright 2008 Free Software Foundation, Inc.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef INCLUDED_LSADC_H
19 #define INCLUDED_LSADC_H
21 #include "memory_map.h"
24 * \brief One time call to initialize low-speed ADCs.
26 void lsadc_init(void);
29 * \brief Read one of the low-speed Rx daughterboard ADCs.
30 * \param which_adc in [0, 1]
32 * \returns 12-bit value in [0,4095]
34 int lsadc_read_rx(int which_adc);
37 * \brief Read one of the low-speed Tx daughterboard ADCs.
38 * \param which_adc in [0, 1]
40 * \returns 12-bit value in [0,4095]
42 int lsadc_read_tx(int which_adc);
45 #endif /* INCLUDED_LSADC_H */