Imported Upstream version 3.2.2
[debian/gnuradio] / usrp / host / lib / legacy / usrp_config.h
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2003 Free Software Foundation, Inc.
4  * 
5  * This file is part of GNU Radio
6  * 
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  * 
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING.  If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #ifndef _USRP_CONFIG_H_
24 #define _USRP_CONFIG_H_
25
26 /*
27  * ----------------------------------------------------------------
28  * USRP Rx configurations.
29  *
30  * For now this is a placeholder, but will eventually specify the
31  * mapping from A/D outputs to DDC inputs (I & Q).
32  *
33  * What's implemented today is a single DDC that has its I input
34  * connected to ADC0 and its Q input connected to ADC1
35  * ----------------------------------------------------------------
36  */
37
38 #define USRP_RX_CONFIG_DEFAULT  0
39
40 /*!
41  * given a usrp_rx_config word, return the number of I & Q streams that
42  * are interleaved on the USB.
43  */
44
45 int usrp_rx_config_stream_count (unsigned int usrp_rx_config);
46
47 /*
48  * USRP Tx configurations.
49  *
50  * For now this is a placeholder, but will eventually specify the
51  * mapping from DUC outputs to D/A inputs.
52  *
53  * What's implemented today is a single DUC that has its I output
54  * connected to DAC0 and its Q output connected to DAC1
55  */
56
57 #define USRP_TX_CONFIG_DEFAULT  0
58
59 /*!
60  * given a usrp_tx_config word, return the number of I & Q streams that
61  * are interleaved on the USB.
62  */
63
64 int usrp_tx_config_stream_count (unsigned int usrp_tx_config);
65
66
67 #endif /* _USRP_CONFIG_H_ */