GNU Radio's GR-AIR-MODES Package
preamble_impl.h
Go to the documentation of this file.
1
2#ifndef _AIR_MODES_PREAMBLE_IMPL_H_
3#define _AIR_MODES_PREAMBLE_IMPL_H_
4
5#include <gnuradio/block.h>
6#include <gr_air_modes/api.h>
8
9namespace gr {
10namespace air_modes {
11
13{
14private:
15 int d_check_width;
16 int d_chip_rate;
17 float d_preamble_length_us;
18 float d_samples_per_chip;
19 float d_samples_per_symbol;
20 float d_threshold_db;
21 float d_threshold;
22 gr::tag_t d_timestamp;
23 pmt::pmt_t d_me, d_key;
24 int d_sample_rate;
25
26public:
27 preamble_impl(float channel_rate, float threshold_db);
28
29 int general_work (int noutput_items,
30 gr_vector_int &ninput_items,
31 gr_vector_const_void_star &input_items,
32 gr_vector_void_star &output_items);
33
34 void set_rate(float channel_rate);
35 void set_threshold(float threshold_db);
36 float get_threshold(void);
37 float get_rate(void);
38};
39
40} //namespace air_modes
41} //namespace gr
42
43#endif //_AIR_MODES_PREAMBLE_IMPL_H_
#define AIR_MODES_API
Definition: api.h:30
Definition: preamble_impl.h:13
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void set_rate(float channel_rate)
preamble_impl(float channel_rate, float threshold_db)
void set_threshold(float threshold_db)
mode select preamble detection
Definition: preamble.h:37
Definition: preamble.h:29