USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
gpio_defs.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2011,2014,2015 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_LIBUHD_USRP_GPIO_DEFS_HPP
8 #define INCLUDED_LIBUHD_USRP_GPIO_DEFS_HPP
9 
10 #include <uhd/config.hpp>
11 #include <boost/assign.hpp>
12 #include <boost/utility.hpp>
13 #include <map>
14 
15 namespace uhd { namespace usrp { namespace gpio_atr {
16 
18  ATR_REG_IDLE = int('i'),
19  ATR_REG_TX_ONLY = int('t'),
20  ATR_REG_RX_ONLY = int('r'),
22 };
23 
25  MODE_ATR = 0, //Output driven by the auto-transmit-receive engine
26  MODE_GPIO = 1 //Output value is static
27 };
28 
29 enum gpio_ddr_t {
30  DDR_INPUT = 0,
32 };
33 
42 };
43 
44 typedef std::map<gpio_attr_t, std::string> gpio_attr_map_t;
45 
46 static const gpio_attr_map_t gpio_attr_map =
47  boost::assign::map_list_of
48  (GPIO_CTRL, "CTRL")
49  (GPIO_DDR, "DDR")
50  (GPIO_OUT, "OUT")
51  (GPIO_ATR_0X, "ATR_0X")
52  (GPIO_ATR_RX, "ATR_RX")
53  (GPIO_ATR_TX, "ATR_TX")
54  (GPIO_ATR_XX, "ATR_XX")
55 ;
56 
57 }}} //namespaces
58 
59 #endif /* INCLUDED_LIBUHD_USRP_GPIO_DEFS_HPP */
Definition: gpio_defs.hpp:41
gpio_ddr_t
Definition: gpio_defs.hpp:29
Definition: gpio_defs.hpp:39
Definition: gpio_defs.hpp:18
Definition: gpio_defs.hpp:40
Definition: gpio_defs.hpp:36
Definition: gpio_defs.hpp:25
Definition: gpio_defs.hpp:21
Definition: gpio_defs.hpp:20
Definition: gpio_defs.hpp:35
std::map< gpio_attr_t, std::string > gpio_attr_map_t
Definition: gpio_defs.hpp:44
Definition: build_info.hpp:14
Definition: gpio_defs.hpp:38
Definition: gpio_defs.hpp:30
gpio_atr_reg_t
Definition: gpio_defs.hpp:17
Definition: gpio_defs.hpp:37
Definition: gpio_defs.hpp:19
gpio_atr_mode_t
Definition: gpio_defs.hpp:24
Definition: gpio_defs.hpp:31
Definition: gpio_defs.hpp:26
gpio_attr_t
Definition: gpio_defs.hpp:34