This file is indexed.

/usr/include/ubertooth/ubertooth_interface.h is in libubertooth-dev 2015.09.R2-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
 * Copyright 2012 Dominic Spill
 *
 * This file is part of Project Ubertooth.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street,
 * Boston, MA 02110-1301, USA.
 */

#ifndef __UBERTOOTH_INTERFACE_H
#define __UBERTOOTH_INTERFACE_H

#define DMA_SIZE 50

enum ubertooth_usb_commands {
    UBERTOOTH_PING            = 0,
    UBERTOOTH_RX_SYMBOLS      = 1,
    UBERTOOTH_TX_SYMBOLS      = 2,
    UBERTOOTH_GET_USRLED      = 3,
    UBERTOOTH_SET_USRLED      = 4,
    UBERTOOTH_GET_RXLED       = 5,
    UBERTOOTH_SET_RXLED       = 6,
    UBERTOOTH_GET_TXLED       = 7,
    UBERTOOTH_SET_TXLED       = 8,
    UBERTOOTH_GET_1V8         = 9,
    UBERTOOTH_SET_1V8         = 10,
    UBERTOOTH_GET_CHANNEL     = 11,
    UBERTOOTH_SET_CHANNEL     = 12,
    UBERTOOTH_RESET           = 13,
    UBERTOOTH_GET_SERIAL      = 14,
    UBERTOOTH_GET_PARTNUM     = 15,
    UBERTOOTH_GET_PAEN        = 16,
    UBERTOOTH_SET_PAEN        = 17,
    UBERTOOTH_GET_HGM         = 18,
    UBERTOOTH_SET_HGM         = 19,
    UBERTOOTH_TX_TEST         = 20,
    UBERTOOTH_STOP            = 21,
    UBERTOOTH_GET_MOD         = 22,
    UBERTOOTH_SET_MOD         = 23,
    UBERTOOTH_SET_ISP         = 24,
    UBERTOOTH_FLASH           = 25,
    BOOTLOADER_FLASH          = 26,
    UBERTOOTH_SPECAN          = 27,
    UBERTOOTH_GET_PALEVEL     = 28,
    UBERTOOTH_SET_PALEVEL     = 29,
    UBERTOOTH_REPEATER        = 30,
    UBERTOOTH_RANGE_TEST      = 31,
    UBERTOOTH_RANGE_CHECK     = 32,
    UBERTOOTH_GET_REV_NUM     = 33,
    UBERTOOTH_LED_SPECAN      = 34,
    UBERTOOTH_GET_BOARD_ID    = 35,
    UBERTOOTH_SET_SQUELCH     = 36,
    UBERTOOTH_GET_SQUELCH     = 37,
    UBERTOOTH_SET_BDADDR      = 38,
    UBERTOOTH_START_HOPPING   = 39,
    UBERTOOTH_SET_CLOCK       = 40,
    UBERTOOTH_GET_CLOCK       = 41,
    UBERTOOTH_BTLE_SNIFFING   = 42,
    UBERTOOTH_GET_ACCESS_ADDRESS = 43,
    UBERTOOTH_SET_ACCESS_ADDRESS = 44,
    UBERTOOTH_DO_SOMETHING    = 45,
    UBERTOOTH_DO_SOMETHING_REPLY = 46,
    UBERTOOTH_GET_CRC_VERIFY  = 47,
    UBERTOOTH_SET_CRC_VERIFY  = 48,
    UBERTOOTH_POLL            = 49,
    UBERTOOTH_BTLE_PROMISC    = 50,
    UBERTOOTH_SET_AFHMAP      = 51,
    UBERTOOTH_CLEAR_AFHMAP    = 52,
    UBERTOOTH_READ_REGISTER   = 53,
    UBERTOOTH_BTLE_SLAVE      = 54,
    UBERTOOTH_GET_COMPILE_INFO = 55,
    UBERTOOTH_BTLE_SET_TARGET = 56,
    UBERTOOTH_BTLE_PHY        = 57,
    UBERTOOTH_WRITE_REGISTER  = 58,
    UBERTOOTH_JAM_MODE        = 59,
    UBERTOOTH_EGO             = 60,
};

enum jam_modes {
	JAM_NONE       = 0,
	JAM_ONCE       = 1,
	JAM_CONTINUOUS = 2,
};

enum modulations {
	MOD_BT_BASIC_RATE = 0,
	MOD_BT_LOW_ENERGY = 1,
	MOD_80211_FHSS    = 2
};

enum usb_pkt_types {
	BR_PACKET  = 0,
	LE_PACKET  = 1,
	MESSAGE    = 2,
	KEEP_ALIVE = 3,
	SPECAN     = 4,
	LE_PROMISC = 5,
	EGO_PACKET = 6,
};

/*
 * USB packet for Bluetooth RX (64 total bytes)
 */
typedef struct {
	u8     pkt_type;
	u8     status;
	u8     channel;
	u8     clkn_high;
	u32    clk100ns;
	char   rssi_max;   // Max RSSI seen while collecting symbols in this packet
	char   rssi_min;   // Min ...
	char   rssi_avg;   // Average ...
	u8     rssi_count; // Number of ... (0 means RSSI stats are invalid)
	u8     reserved[2];
	u8     data[DMA_SIZE];
} usb_pkt_rx;

typedef struct {
	u64    address;
	u64    access_code;
} bdaddr;

typedef struct {
	u8 valid;
	u8 request_pa;
	u8 request_num;
	u8 reply_pa;
	u8 reply_num;
} rangetest_result;

#endif /* __UBERTOOTH_INTERFACE_H */