Debian Codegraph @

host/utilities/bladeRF-fsk/c/src/radio_config.h

raw symbols SCIP
1 /**
2 * @file
3 * @brief BladeRF radio configuration - setting of frequencies, gains, etc.
4 *
5 * This file is part of the bladeRF-fsk project
6 *
7 * Copyright (C) 2016 Nuand LLC
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 */
23
24 #ifndef RADIO_CONFIG_H
25 #define RADIO_CONFIG_H
26
27 #include <libbladeRF.h>
28 #include <stdio.h>
29
30 #include "common.h"
31
32 #define SYNC_BUFFER_SIZE 16384
33 //DEBUG: Define this to disable metadata in synchronous interface
34 // #define SYNC_NO_METADATA
35
36 /**
37 * Configure bladeRF device
38 *
39 * @param[in] dev pointer to bladeRF device handle
40 * @param[in] params pointer to radio_params struct specifying frequencies/gains
41 *
42 * @return 0 on success, <0 on error
43 */
44 int radio_init_and_configure(struct bladerf *dev, struct radio_params *params);
45
46 /**
47 * Stop transmitting/receiving with bladerf. Device must be closed elsewhere.
48 *
49 * @param[in] dev pointer to bladeRF device handle to stop
50 */
51 void radio_stop(struct bladerf *dev);
52
53 #endif