GNU Radio's GR-AIR-MODES Package
preamble.h
Go to the documentation of this file.
1
/*
2
# Copyright 2013 Nick Foster
3
#
4
# This file is part of gr-air-modes
5
#
6
# gr-air-modes 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
# gr-air-modes 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 gr-air-modes; 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
23
#ifndef INCLUDED_AIR_MODES_PREAMBLE_H
24
#define INCLUDED_AIR_MODES_PREAMBLE_H
25
26
#include <gnuradio/block.h>
27
#include <
gr_air_modes/api.h
>
28
29
namespace
gr
{
30
namespace
air_modes {
31
32
/*!
33
* \brief mode select preamble detection
34
* \ingroup block
35
*/
36
class
AIR_MODES_API
preamble
:
virtual
public
gr::block
37
{
38
public
:
39
typedef
boost::shared_ptr<preamble>
sptr
;
40
static
sptr
make(
float
channel_rate,
float
threshold_db);
41
42
virtual
void
set_rate(
float
channel_rate) = 0;
43
virtual
void
set_threshold(
float
threshold_db) = 0;
44
virtual
float
get_rate(
void
) = 0;
45
virtual
float
get_threshold(
void
) = 0;
46
};
47
48
}
// namespace air_modes
49
}
// namespace gr
50
51
#endif
/* INCLUDED_AIR_MODES_PREAMBLE_H */
gr::air_modes::preamble::sptr
boost::shared_ptr< preamble > sptr
Definition:
preamble.h:39
AIR_MODES_API
#define AIR_MODES_API
Definition:
api.h:30
gr
Definition:
preamble.h:29
gr::air_modes::preamble
mode select preamble detection
Definition:
preamble.h:36
api.h
include
gr_air_modes
preamble.h
Generated by
1.8.17