USRP Hardware Driver and USRP Manual  Version: 003.008.001-0-g2474ac32
UHD and USRP Manual
nifpga_lvbitx.h
Go to the documentation of this file.
1 //
2 // Copyright 2013-2014 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_UHD_TRANSPORT_NIRIO_NIFPGA_LVBITX_H
19 #define INCLUDED_UHD_TRANSPORT_NIRIO_NIFPGA_LVBITX_H
20 
23 #include <boost/smart_ptr.hpp>
24 
25 namespace uhd { namespace niusrprio {
26 
28 public:
29  typedef boost::shared_ptr<nifpga_lvbitx> sptr;
30 
31  virtual ~nifpga_lvbitx() {};
32 
33  virtual const char* get_bitfile_path() = 0;
34  virtual const char* get_signature() = 0;
35  virtual const char* get_bitstream_checksum() = 0;
36 
37  virtual size_t get_input_fifo_count() = 0;
38  virtual const char** get_input_fifo_names() = 0;
39 
40  virtual size_t get_output_fifo_count() = 0;
41  virtual const char** get_output_fifo_names() = 0;
42 
43  virtual size_t get_control_count() = 0;
44  virtual const char** get_control_names() = 0;
45 
46  virtual size_t get_indicator_count() = 0;
47  virtual const char** get_indicator_names() = 0;
48 
49  virtual void init_register_info(nirio_register_info_vtr& vtr) = 0;
50  virtual void init_fifo_info(nirio_fifo_info_vtr& vtr) = 0;
51 
52 protected:
53  std::string _get_bitstream_checksum(const std::string& file_path);
54  std::string _get_fpga_images_dir(const std::string search_paths);
55 };
56 }}
57 
58 #endif /* INCLUDED_UHD_TRANSPORT_NIRIO_NIFPGA_LVBITX_H */
59 
Definition: nifpga_lvbitx.h:27
std::vector< nirio_register_info_t > nirio_register_info_vtr
Definition: nirio_resource_manager.h:51
boost::shared_ptr< nifpga_lvbitx > sptr
Definition: nifpga_lvbitx.h:29
virtual ~nifpga_lvbitx()
Definition: nifpga_lvbitx.h:31
std::vector< nirio_fifo_info_t > nirio_fifo_info_vtr
Definition: nirio_resource_manager.h:55
#define UHD_API
Definition: config.hpp:79
Definition: convert.hpp:28