GNU Radio's HIQSDRTRX Package
sink.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2013 Stefan Goerg stefan@dl2stg.de
4
* Copyright 2021 Karsten Schmidt dg1vs@darc.de
5
*
6
* This is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3, or (at your option)
9
* any later version.
10
*
11
* This software is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this software; see the file COPYING. If not, write to
18
* the Free Software Foundation, Inc., 51 Franklin Street,
19
* Boston, MA 02110-1301, USA.
20
*/
21
22
#ifndef INCLUDED_HIQSDRTRX_SINK_H
23
#define INCLUDED_HIQSDRTRX_SINK_H
24
25
#include <
hiqsdrtrx/api.h
>
26
#include <gnuradio/sync_block.h>
27
28
namespace
gr
{
29
namespace
hiqsdrtrx {
30
31
/*!
32
* \brief <+description of block+>
33
* \ingroup hiqsdrtrx
34
*
35
*/
36
class
HIQSDRTRX_API
sink
:
virtual
public
gr::sync_block
37
{
38
public
:
39
typedef
boost::shared_ptr<sink>
sptr
;
40
41
/*!
42
* \brief Return a shared_ptr to a new instance of hiqsdrtrx::sink.
43
*
44
* To avoid accidental use of raw pointers, hiqsdrtrx::sink's
45
* constructor is in a private implementation
46
* class. hiqsdrtrx::sink::make is the public interface for
47
* creating new instances.
48
*/
49
static
sptr
make(
size_t
itemsize,
const
char
*host,
unsigned
short
port,
int
payload_size=1472,
bool
eof=
true
);
50
};
51
52
}
// namespace hiqsdrtrx
53
}
// namespace gr
54
55
#endif
/* INCLUDED_HIQSDRTRX_SINK_H */
56
HIQSDRTRX_API
#define HIQSDRTRX_API
Definition:
api.h:31
api.h
gr
Definition:
sink.h:28
gr::hiqsdrtrx::sink
<+description of block+>
Definition:
sink.h:36
gr::hiqsdrtrx::sink::sptr
boost::shared_ptr< sink > sptr
Definition:
sink.h:39
include
hiqsdrtrx
sink.h
Generated by
1.8.14