GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
uio_fpga.h
Go to the documentation of this file.
1/*!
2 * \file uio_fpga.h
3 * \brief This library contains functions to determine the uio device driver
4 * file that corresponds to a hardware accelerator device name in the FPGA.
5 * \author Marc Majoral, 2020. mmajoral(at)cttc.es
6 *
7 * -----------------------------------------------------------------------------
8 *
9 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10 * This file is part of GNSS-SDR.
11 *
12 * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13 * SPDX-License-Identifier: GPL-3.0-or-later
14 *
15 * -----------------------------------------------------------------------------
16 */
17
18#ifndef GNSS_SDR_UIO_FPGA_H
19#define GNSS_SDR_UIO_FPGA_H
20
21#include <cstdint>
22#include <string>
23
24/** \addtogroup Core
25 * \{ */
26/** \addtogroup Core_Receiver_Library
27 * \{ */
28
29const std::string uio_dir("/sys/class/uio/");
30const std::string uio_filename("uio");
31const std::string uio_subdir_name("/name");
32
33/*!
34 * \brief This function finds the uio device driver device file name out of the
35 * device name and the device number.
36 */
37int32_t find_uio_dev_file_name(std::string &device_file_name,
38 const std::string &device_name,
39 uint32_t device_num);
40
41/*!
42 * \brief Returns the number of devices (tracking multicorrelators) of type device_name available in the FPGA
43 */
44uint32_t get_num_devices(const std::string &device_name);
45
46/** \} */
47/** \} */
48#endif // GNSS_SDR_UIO_FPGA_H
int32_t find_uio_dev_file_name(std::string &device_file_name, const std::string &device_name, uint32_t device_num)
This function finds the uio device driver device file name out of the device name and the device numb...
uint32_t get_num_devices(const std::string &device_name)
Returns the number of devices (tracking multicorrelators) of type device_name available in the FPGA.