GNU Radio's FOOT Package
multi_UAP_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2013 Christopher D. Kilgour
4  * Copyright 2008, 2009 Dominic Spill, Michael Ossmann
5  * Copyright 2007 Dominic Spill
6  * Copyright 2005, 2006 Free Software Foundation, Inc.
7  *
8  * This file is part of gr-bluetooth
9  *
10  * This is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2, or (at your option)
13  * any later version.
14  *
15  * This software is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this software; see the file COPYING. If not, write to
22  * the Free Software Foundation, Inc., 51 Franklin Street,
23  * Boston, MA 02110-1301, USA.
24  */
25 
26 #ifndef INCLUDED_BLUETOOTH_GR_BLUETOOTH_MULTI_UAP_IMPL_H
27 #define INCLUDED_BLUETOOTH_GR_BLUETOOTH_MULTI_UAP_IMPL_H
28 
29 #include "gr_bluetooth/multi_UAP.h"
30 extern "C"
31 {
32  #include <btbb.h>
33 }
34 
35 namespace gr {
36  namespace bluetooth {
37 
38  class multi_UAP_impl : virtual public multi_UAP
39  {
40  private:
41  /* LAP of the target piconet */
42  uint32_t d_LAP;
43 
44  /* the piconet we are monitoring */
45  btbb_piconet *d_piconet;
46 
47  public:
48  multi_UAP_impl(double sample_rate, double center_freq, double squelch_threshold, int LAP);
50 
51  // Where all the action really happens
52  int work(int noutput_items,
53  gr_vector_const_void_star &input_items,
54  gr_vector_void_star &output_items);
55  };
56 
57  } // namespace bluetooth
58 } // namespace gr
59 
60 #endif /* INCLUDED_BLUETOOTH_GR_BLUETOOTH_MULTI_UAP_IMPL_H */
61 
multi_UAP_impl(double sample_rate, double center_freq, double squelch_threshold, int LAP)
Sniff Bluetooth packets.
Definition: multi_UAP.h:38
Definition: multi_block.h:33
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Definition: multi_UAP_impl.h:38