GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
rtl_tcp_commands.h
Go to the documentation of this file.
1 /*!
2  * \file rtl_tcp_commands.h
3  * \brief Defines structures and constants for communicating with rtl_tcp
4  * \author Anthony Arnold, 2015. anthony.arnold(at)uqconnect.edu.au
5  *
6  * This file contains information taken from librtlsdr:
7  * https://git.osmocom.org/rtl-sdr
8  * -----------------------------------------------------------------------------
9  *
10  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
11  *
12  * GNSS-SDR is a software defined Global Navigation
13  * Satellite Systems receiver
14  *
15  * This file is part of GNSS-SDR.
16  *
17  * SPDX-License-Identifier: GPL-3.0-or-later
18  *
19  * -----------------------------------------------------------------------------
20  */
21 #ifndef GNSS_SDR_RTL_TCP_COMMANDS_H
22 #define GNSS_SDR_RTL_TCP_COMMANDS_H
23 
24 #include <boost/asio/ip/tcp.hpp> // for tcp, tcp::socket
25 #include <boost/system/error_code.hpp> // for error_code
26 
27 /// Command IDs for configuration rtl_tcp
29 {
30  RTL_TCP_SET_FREQUENCY = 1,
31  RTL_TCP_SET_SAMPLE_RATE = 2,
32  RTL_TCP_SET_GAIN_MODE = 3,
33  RTL_TCP_SET_GAIN = 4,
34  RTL_TCP_SET_IF_GAIN = 6,
35  RTL_TCP_SET_AGC_MODE = 8
36 };
37 
38 
39 /*!
40  * \brief Send a command to rtl_tcp over the given socket.
41  */
42 boost::system::error_code rtl_tcp_command(RTL_TCP_COMMAND id, unsigned param,
43  boost::asio::ip::tcp::socket &socket);
44 
45 #endif // GNSS_SDR_RTL_TCP_COMMANDS_H
boost::system::error_code rtl_tcp_command(RTL_TCP_COMMAND id, unsigned param, boost::asio::ip::tcp::socket &socket)
Send a command to rtl_tcp over the given socket.
RTL_TCP_COMMAND
Command IDs for configuration rtl_tcp.