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
29namespace gr {
30namespace air_modes {
31
32/*!
33 * \brief mode select preamble detection
34 * \ingroup block
35 */
36class AIR_MODES_API preamble : virtual public gr::block
37{
38public:
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 */
#define AIR_MODES_API
Definition api.h:30
mode select preamble detection
Definition preamble.h:37
virtual float get_threshold(void)=0
virtual void set_threshold(float threshold_db)=0
static sptr make(float channel_rate, float threshold_db)
boost::shared_ptr< preamble > sptr
Definition preamble.h:39
virtual float get_rate(void)=0
virtual void set_rate(float channel_rate)=0
Definition preamble.h:29