GNSS-SDR
0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
src
algorithms
signal_source
libs
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
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
11
* This file is part of GNSS-SDR.
12
*
13
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
14
* SPDX-License-Identifier: GPL-3.0-or-later
15
*
16
* -----------------------------------------------------------------------------
17
*/
18
19
#ifndef GNSS_SDR_RTL_TCP_COMMANDS_H
20
#define GNSS_SDR_RTL_TCP_COMMANDS_H
21
22
#include <boost/asio/ip/tcp.hpp>
// for tcp, tcp::socket
23
#include <boost/system/error_code.hpp>
// for error_code
24
25
/** \addtogroup Signal_Source
26
* \{ */
27
/** \addtogroup Signal_Source_libs
28
* \{ */
29
30
31
/// Command IDs for configuration rtl_tcp
32
enum
RTL_TCP_COMMAND
33
{
34
RTL_TCP_SET_FREQUENCY = 1,
35
RTL_TCP_SET_SAMPLE_RATE = 2,
36
RTL_TCP_SET_GAIN_MODE = 3,
37
RTL_TCP_SET_GAIN = 4,
38
RTL_TCP_SET_IF_GAIN = 6,
39
RTL_TCP_SET_AGC_MODE = 8
40
};
41
42
43
/*!
44
* \brief Send a command to rtl_tcp over the given socket.
45
*/
46
boost::system::error_code
rtl_tcp_command
(
RTL_TCP_COMMAND
id
,
unsigned
param,
47
boost::asio::ip::tcp::socket &socket);
48
49
50
/** \} */
51
/** \} */
52
#endif
// GNSS_SDR_RTL_TCP_COMMANDS_H
RTL_TCP_COMMAND
RTL_TCP_COMMAND
Command IDs for configuration rtl_tcp.
Definition
rtl_tcp_commands.h:33
rtl_tcp_command
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.
Generated by
1.16.1