This file is indexed.

/usr/include/uhd/usrp/gpio_defs.hpp is in libuhd-dev 3.10.3.0-2.

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
//
// Copyright 2011,2014,2015 Ettus Research LLC
//
// 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 3 of the License, 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.  If not, see <http://www.gnu.org/licenses/>.
//

#ifndef INCLUDED_LIBUHD_USRP_GPIO_DEFS_HPP
#define INCLUDED_LIBUHD_USRP_GPIO_DEFS_HPP

#include <uhd/config.hpp>
#include <boost/assign.hpp>
#include <boost/utility.hpp>
#include <map>

namespace uhd { namespace usrp { namespace gpio_atr {

enum gpio_atr_reg_t {
    ATR_REG_IDLE        = int('i'),
    ATR_REG_TX_ONLY     = int('t'),
    ATR_REG_RX_ONLY     = int('r'),
    ATR_REG_FULL_DUPLEX = int('f')
};

enum gpio_atr_mode_t {
    MODE_ATR  = 0,   //Output driven by the auto-transmit-receive engine
    MODE_GPIO = 1    //Output value is static
};

enum gpio_ddr_t {
    DDR_INPUT   = 0,
    DDR_OUTPUT  = 1
};

enum gpio_attr_t {
    GPIO_CTRL,
    GPIO_DDR,
    GPIO_OUT,
    GPIO_ATR_0X,
    GPIO_ATR_RX,
    GPIO_ATR_TX,
    GPIO_ATR_XX
};

typedef std::map<gpio_attr_t, std::string> gpio_attr_map_t;

static const gpio_attr_map_t gpio_attr_map =
    boost::assign::map_list_of
        (GPIO_CTRL,   "CTRL")
        (GPIO_DDR,    "DDR")
        (GPIO_OUT,    "OUT")
        (GPIO_ATR_0X, "ATR_0X")
        (GPIO_ATR_RX, "ATR_RX")
        (GPIO_ATR_TX, "ATR_TX")
        (GPIO_ATR_XX, "ATR_XX")
;

}}} //namespaces

#endif /* INCLUDED_LIBUHD_USRP_GPIO_DEFS_HPP */