GNU Radio's BLUETOOTH 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
35int kis_bluetooth_dissector(CHAINCALL_PARMS);
36
57extern const char *bluetooth_type_str[];
58
59class bluetooth_packinfo : public packet_component {
60public:
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
80
82
84
85};
86
87#endif
uint32_t lap
Definition packet_bluetooth.h:74
bluetooth_packinfo()
Definition packet_bluetooth.h:61
int channel
Definition packet_bluetooth.h:83
bool have_uap
Definition packet_bluetooth.h:78
bluetooth_type type
Definition packet_bluetooth.h:81
bool have_nap
Definition packet_bluetooth.h:79
uint8_t uap
Definition packet_bluetooth.h:75
uint16_t nap
Definition packet_bluetooth.h:76
const char * bluetooth_type_str[]
int kis_bluetooth_dissector(CHAINCALL_PARMS)
bluetooth_type
Definition packet_bluetooth.h:37
@ btbb_type_dm3
Definition packet_bluetooth.h:48
@ btbb_type_ev5
Definition packet_bluetooth.h:51
@ btbb_type_id
Definition packet_bluetooth.h:54
@ btbb_type_fhs
Definition packet_bluetooth.h:40
@ btbb_type_dv
Definition packet_bluetooth.h:46
@ btbb_type_dm1
Definition packet_bluetooth.h:41
@ btbb_type_ev4
Definition packet_bluetooth.h:50
@ btbb_type_max
Definition packet_bluetooth.h:55
@ btbb_type_dh1
Definition packet_bluetooth.h:42
@ btbb_type_aux1
Definition packet_bluetooth.h:47
@ btbb_type_dm5
Definition packet_bluetooth.h:52
@ btbb_type_dh3
Definition packet_bluetooth.h:49
@ btbb_type_poll
Definition packet_bluetooth.h:39
@ btbb_type_null
Definition packet_bluetooth.h:38
@ btbb_type_hv3
Definition packet_bluetooth.h:45
@ btbb_type_hv1
Definition packet_bluetooth.h:43
@ btbb_type_hv2
Definition packet_bluetooth.h:44
@ btbb_type_dh5
Definition packet_bluetooth.h:53