GNU Radio's FOOT Package
packet_bluetooth.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2010 Michael Ossmann
4  * Copyright 2009, 2010 Mike Kershaw
5  *
6  * This file is part of gr-bluetooth
7  *
8  * gr-bluetooth is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * gr-bluetooth is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with gr-bluetooth; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 #ifndef __PACKET_BLUETOOTH_H__
25 #define __PACKET_BLUETOOTH_H__
26 
27 #include "config.h"
28 
29 #include <packetchain.h>
30 #include <packetsource.h>
31 
32 // we are temporarily encapsulating in ethernet frames
33 #define KDLT_BLUETOOTH 1
34 
35 int kis_bluetooth_dissector(CHAINCALL_PARMS);
36 
46  btbb_type_dv = 0x8,
56 };
57 extern const char *bluetooth_type_str[];
58 
59 class bluetooth_packinfo : public packet_component {
60 public:
62  self_destruct = 1;
63 
64  lap = 0;
65  uap = 0;
66  nap = 0;
67  have_uap = false;
68  have_nap = false;
70 
71  channel = 0;
72  };
73 
74  uint32_t lap;
75  uint8_t uap;
76  uint16_t nap;
77 
78  bool have_uap;
79  bool have_nap;
80 
82 
83  int channel;
84 
85 };
86 
87 #endif
Definition: packet_bluetooth.h:41
bluetooth_type
Definition: packet_bluetooth.h:37
Definition: packet_bluetooth.h:42
Definition: packet_bluetooth.h:46
Definition: packet_bluetooth.h:43
Definition: packet_bluetooth.h:55
uint8_t uap
Definition: packet_bluetooth.h:75
bluetooth_packinfo()
Definition: packet_bluetooth.h:61
bool have_uap
Definition: packet_bluetooth.h:78
Definition: packet_bluetooth.h:59
Definition: packet_bluetooth.h:53
Definition: packet_bluetooth.h:51
Definition: packet_bluetooth.h:47
int kis_bluetooth_dissector(CHAINCALL_PARMS)
Definition: packet_bluetooth.h:48
Definition: packet_bluetooth.h:44
Definition: packet_bluetooth.h:39
uint32_t lap
Definition: packet_bluetooth.h:72
bool have_nap
Definition: packet_bluetooth.h:79
Definition: packet_bluetooth.h:38
const char * bluetooth_type_str[]
Definition: packet_bluetooth.h:49
bluetooth_type type
Definition: packet_bluetooth.h:81
uint16_t nap
Definition: packet_bluetooth.h:76
int channel
Definition: packet_bluetooth.h:83
Definition: packet_bluetooth.h:40
Definition: packet_bluetooth.h:45
Definition: packet_bluetooth.h:50
Definition: packet_bluetooth.h:54
Definition: packet_bluetooth.h:52