Commit graph

40 commits

Author SHA1 Message Date
Martin Braun
107a49c0c2 host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree
using:

$ find . -name "*.cpp" | sort -u | xargs \
    --max-procs 8 --max-args 1 clang-tidy --format-style=file \
    --fix -p /path/to/compile_commands.json
2021-03-04 08:07:26 -06:00
Martin Braun
876d4150aa uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
2020-03-03 08:51:32 -06:00
Martin Braun
883e658360 ad9361: Fix formatting
- Apply clang-format
- Remove unnecessary boost::format
2020-02-10 10:19:26 -06:00
Martin Braun
1fe98e8701 uhd: Replace usage of boost smart pointers with C++11 counterparts
This removes the following Boost constructs:
- boost::shared_ptr, boost::weak_ptr
- boost::enable_shared_from_this
- boost::static_pointer_cast, boost::dynamic_pointer_cast

The appropriate includes were also removed. All C++11 versions of these
require #include <memory>.
Note that the stdlib and Boost versions have the exact same syntax, they
only differ in the namespace (boost vs. std). The modifications were all
done using sed, with the exception of boost::scoped_ptr, which was
replaced by std::unique_ptr.

References to boost::smart_ptr were also removed.

boost::intrusive_ptr is not removed in this commit, since it does not
have a 1:1 mapping to a C++11 construct.
2019-11-26 12:21:32 -08:00
Martin Braun
0ebb4cc184 ad9361: Replace Boost lock & mutex with std variety 2019-01-25 16:25:26 -08:00
Martin Braun
f651054665 formatting: Apply clang-format to ad9361_ctrl.cpp 2019-01-25 16:25:26 -08:00
Brent Stapleton
7d28d9140e uhd: initial commit of UHD support for E320
Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
2018-07-18 15:37:27 -07:00
Brent Stapleton
300a5e3f6e mpm: initial commit of E320 code
Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
2018-07-18 15:37:27 -07:00
Trung N Tran
7aee32ef9d e300: remove time spi 2018-07-06 12:10:53 -07:00
Sugandha Gupta
67b5827fae ad9361: Add API to set 1R1T/2R2T timing modes
LVDS interface can support both timing modes 1R1T/2R2T
The API sets the required bit in catalina registers.
2018-06-15 16:37:03 -05:00
Vidush
2ef60a1b66 ad9361: Fix bandwidth warnings and ranges
Allows full bandwidth range to user.

Reviewed-by: Michael West <michael.west@ettus.com>
Reviewed-by: Martin Braun <martin.braun@ettus.com>
2018-04-27 11:23:59 -07:00
Martin Braun
6652eb4a03 uhd: Move internal headers to uhdlib/
To avoid the proliferation of additional include directories and
multiple ways of including project-local headers, we now default to
moving all headers that are used across UHD into the uhdlib/
subdirectory.

Some #include statements were also reordered as they were modified for
closer compliance with the coding guidelines.

Internal cpp source files should now include files like this:

    #include <uhdlib/rfnoc/ctrl_iface.hpp>

Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
2018-03-14 15:17:44 -07:00
Martin Braun
ae5211d71d uhd: Update license headers
All copyright is now attributed to "Ettus Research, a National
Instruments company".

SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b Move all license headers to SPDX format. 2017-12-22 10:45:51 -08:00
Andrej Rode
21aad77c9c utils: introduce new logging API and remove msg API 2017-02-20 17:13:15 -08:00
Martin Braun
99c2730bc9 Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with
  stdint.h (The 'correct' replacement would be <cstdint>, but not all of our
  compilers support that).
2016-11-08 08:02:22 -08:00
Jonathon Pendlum
8607cf9693 ad9361: Added option for safe SPI
- Also added check for reading chip ID
2016-08-09 10:21:53 -07:00
michael-west
92539438c2 B2XX: Added B200mini support 2015-08-17 18:10:09 -07:00
Martin Braun
533548a681 Merge branch 'maint'
Conflicts:
	host/lib/usrp/common/ad9361_ctrl.hpp
	host/lib/usrp/common/ad9361_driver/ad9361_device.h
	host/lib/usrp/e300/e300_remote_codec_ctrl.hpp
2015-06-09 16:17:53 -07:00
michael-west
da7302cacb B200/E300: Fix incorrect readback of frequency.
When the LO is tuned it changes the frequency on both channels.  The frequency value read back for the first channel was not updated when the LO frequency for the other channel was tuned to a different value.
2015-05-22 11:33:55 -07:00
Martin Braun
2f760ac0f8 Merge branch 'maint'
Conflicts:
	host/lib/usrp/b200/b200_io_impl.cpp
	host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
	host/lib/usrp/common/ad9361_driver/ad9361_device.h
2015-04-14 14:05:19 -05:00
Martin Braun
6f5f0a653d ad9361: Removed recommended max clock rate warning 2015-04-14 13:55:38 -05:00
Julian Arnold
4cdb75606b b2xx: filter API implementation. Supports listing of RX/TX filters, querying RX/TX filter information and writing of analog and FIR filters 2015-03-19 11:59:00 -07:00
Julian Arnold
be14725245 b2xx: AGC support 2015-03-05 17:18:53 -08:00
Julian Arnold
566dbc2b5d e3xx: support for dc offset and iq balance control 2015-02-23 17:47:27 -08:00
Julian Arnold
2b06c38155 b2xx: dc offset and iq imbalance correction control 2015-02-20 11:01:00 -08:00
Julian Arnold
47562bbf14 ad9361: Added relative temperature sensor
This allows to read a relative temperature from an AD9361 device.
2015-01-20 19:31:25 +01:00
Ian Buckley
6b50a6bcd9 B200: Bug #656. Added FIR coeffs for filters with Fs/4 stop band.
AD9361 driver can now select coeffs for different interpolation ratios.
2015-01-19 09:22:25 +01:00
Julian Arnold
9d0750df6c ad9361: rssi readout 2015-01-12 15:38:53 -08:00
Martin Braun
48875211e1 ad9361: Made recommended rate a constant 2014-09-02 12:45:36 +02:00
Nicholas Corgan
654c5b06c0 Added missing pure virtual destructors to base classes 2014-09-01 17:58:24 +02:00
Ashish Chaudhari
282b31cedd ad9361: Fixed TX direction bug in ad9361_ctrl 2014-08-13 11:04:23 -07:00
Ashish Chaudhari
09898c18f4 ad9361: Added synchronization to IO and device classes 2014-08-13 10:40:39 -07:00
Ashish Chaudhari
9ad16ae70e ad9361: Converted stdint types to boost types 2014-08-12 18:51:29 -07:00
Ashish Chaudhari
675350a1d6 b200, ad9361: Cleanup up AD9361 driver
- Removed transaction interface
- Made the driver a C++ class
2014-08-12 18:28:36 -07:00
Ashish Chaudhari
c7274790a0 b200: Moved AD9361 driver to host
- Switched to FPGA SPI engine
- Moved firmware AD9361 driver to UHD
- Bumped FW compat to 5, FPGA compat to 4
- Known Issue: AD9361 SPI rate is too slow
2014-08-01 13:14:56 -07:00
Balint Seeber
ea66e24a96 b200: changed ad9361 read timeout handling (kicks in when requesting master_clock_rate above 56MHz) 2014-03-19 15:53:27 -07:00
Josh Blum
cd9763f94f uhd: strnlen for platforms w/o it 2013-07-25 18:47:34 -04:00
Josh Blum
d251a7a55b b200: use existing query rate calls to clip 2013-07-19 14:45:24 -07:00
Josh Blum
bb73a21495 uhd: squashed support modules for usrp3 fpga cores 2013-07-19 14:00:32 -07:00