aboutsummaryrefslogtreecommitdiffstats
path: root/gr-iio (follow)
Commit message (Collapse)AuthorAgeFilesLines
* iio: remove unused membersMarcus Müller2021-12-295-6/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* iio: GRC bindings: remove global variable from hidden defaultsMarcus Müller2021-12-276-12/+12
| | | | | | | | | | | | | | | When the fields are hidden, and the expected global variable is undefined, the flow graph becomes unsynthesizable. I've only found this pattern with IIO blocks. Sadly, we *have* to put defaults here, in order to have valid arguments to the (useless) set_filter_params call in the non-Design filter mode. Since the fpass and fstop fields, however, aren't used, the actual value used there doesn't matter – so, 0 it is. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* iio: pep8 formattingJosh Morman2021-11-241-1/+3
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* logging core: replace log4cpp by spdlogMarcus Müller2021-11-192-20/+16
| | | | | | | | also: enable formerly disabled qa_logger tests This replaces log4cpp with spdlog. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* iio: make fmcomms freq parameter doubleJosh Morman2021-10-288-10/+12
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* iio: iio_param_t for parameter settingJosh Morman2021-10-2816-103/+178
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* global: Replace stdio logging with loggerDavid Winter2021-10-211-6/+10
| | | | | | | This commit replaces many uses of std::c{out,err} and printf with the appropriate GR_LOG_* directives. Signed-off-by: David Winter <david.winter@analog.com>
* iio: use make_block_sptr in makeJosh Morman2021-10-139-85/+83
| | | | Signed-off-by: Josh Morman <jmorman@peratonlabs.com>
* iio: de-duplicate the pluto wrappersJosh Morman2021-10-1338-1308/+650
| | | | | | | | | | | | | The fmcomms2 source/sink were wrapped with hier blocks that were used as the basis for the pluto blocks This templatizes the fmcomms2 blocks so they can be directly used, and since the pluto block is so close to the fmcomms block, just use grc as the wrapper around it fmcomms2/pluto can also now be used as sc16 or fc32 Signed-off-by: Josh Morman <jmorman@peratonlabs.com>
* iio: Remove struct specifier (not necessary in C++, clutters a bit)Marcus Müller2021-08-0230-84/+78
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-iio: pluto source /sink fails to set paramter if german locale is usedVolker Schroer2021-07-273-7/+12
| | | | | | | | | | | | | pluto source / sink fails to set hardwaregain with gr::log :WARN: iio::device::set_params - Unable to write attribute in_voltage0_hardwaregain: -22 gr::log :WARN: iio::device::set_params - Unable to write attribute out_voltage0_hardwaregain: -22 gain values are treated as double. The conversion std::to_string() uses the locale setting. So in the US std::to_string(10.) leads to "10.0" while in Germany the result is "10,0" which the pluto handles as error. This problem only exists if real values are converted. So check if the converted string contains a , as separator and change it to a dot . Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* iio: use common precompiled headersMarcus Müller2021-07-191-0/+4
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* iio: Remove cstdio/iostream and log using GR_LOGDavid Winter2021-07-0213-33/+32
| | | | | | | This commit cleans up unused headers (cstdio) and replaces all instances of std::cout and std::cerr with the corresponding GR_LOG_* invocation. Signed-off-by: David Winter <david.winter@analog.com>
* iio: lib: Add missing gnuradio-iio.rc.in Windows DLL resource file.Ryan Volz2021-06-281-0/+43
| | | | Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* gr-iio: Add packetized transfer support using stream tagsDavid Winter2021-06-2739-26/+238
| | | | | | | | | | | | | | | This PR adds stream tagging support to the device_source and device_sink blocks, and thus also deriviates like the fmcomms2 and pluto. The important bits are: * The source block now tags buffer boundaries * When tagged_input is enabled on the device sink, it enforces that all input packet sizes match buffer_size / (1 + interpolation). This isn't very flexible, but can be understood as a safeguard against unexpected behavior. Signed-off-by: David Winter <david.winter@analog.com>
* gr-iio: grc: Fix source/sink throttle/python flagsDavid Winter2021-06-257-7/+7
| | | | | | | | | | | | | | This commit fixes the flags for hardware connected blocks to include "throttle", which prevents the following warning from being emitted erroneously: >>> Warning: This flow graph may not have flow control: no audio or RF hardware blocks found. Add a Misc->Throttle block to your flow graph to avoid CPU congestion. Additionally, the python flag is added to all blocks for consistency. Signed-off-by: David Winter <david.winter@analog.com>
* Doxygen: Remove warnings from gr-soapy and gr-iio.Ron Economos2021-06-162-1/+2
| | | | Signed-off-by: Ron Economos <w6rz@comcast.net>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-172-2/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* iio: Rename set_gain to set_attenuation in pluto_sinkDavid Winter2021-06-092-2/+2
| | | | Signed-off-by: David Winter <david.winter@analog.com>
* iio: detect not only ad9361.h presence, but suitabilityMarcus Müller2021-06-053-9/+35
| | | | | | Hopefully, we can later on absorb that in a version check, so that it's sensible to check this in CMakeLists instead of Findad9361 Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* feature: gr-iioAdam Horden2021-06-047-3028/+0
| | | | | | Remove non working examples. Signed-off-by: Adam Horden <adam.horden@horden.engineering>
* iio: use enums for attr and data typeJosh Morman2021-06-0413-49/+126
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* gr-iio: Set correct library dependenciesVolker Schroer2021-06-041-2/+3
| | | | | | gr-iio depends on libiio (and not on IIO) and conditionally from libad9361. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* feature: gr-iioAdam Horden2021-06-0412-98/+20
| | | | | | | | | | | | | | | | Refactoring. Remove parameter `required_enable`. This was unused and during testing was set to: `required_enable == false` This code path has never been used and or tested. We have concluded after investigating and testing, this could safely be removed to enable a cleaner API. Signed-off-by: Adam Horden <adam.horden@horden.engineering>
* feature: gr-iioAdam Horden2021-06-044-7/+8
| | | | | | | | | | Run clang-format. ``` find . -iname '*.cc' -o -iname '*.h' | xargs clang-format -i ``` Signed-off-by: Adam Horden <adam.horden@horden.engineering>
* iio: rename dds_control to _implJosh Morman2021-06-043-2/+2
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: clean up fmcomms2 public headersJosh Morman2021-06-0415-186/+311
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: remove boost::to_string usageJosh Morman2021-06-044-23/+23
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: remove commented codeJosh Morman2021-06-043-34/+0
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: update hash for pluto_sinkJosh Morman2021-06-041-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: clang-formatJosh Morman2021-06-045-12/+9
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* Update AD936x filter support on sinksTravis F. Collins2021-06-044-22/+50
| | | | | | | | | | | | | Advanced filter configurations are now possible through the Pluto and FMComms2 sink blocks. This includes filter designer controls and support for the DEC8/INT8 filters now able in 2019-R2 releases from ADI. Pluto's DEC8/INT8 filters have exists since very early firmware images. This will also fix errors related to setting the sample rate like "Unable to set out_voltage_sampling_frequency" since this update properly sets the filters on sinks. Signed-off-by: Travis F. Collins <travis.collins@analog.com>
* iio: remove some commented codeJosh Morman2021-06-042-36/+0
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: reduce cotr and set_params for pluto_sinkJosh Morman2021-06-0414-526/+216
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: make filter params a single apiJosh Morman2021-06-048-63/+112
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: reduce exposed API and grc to plutoJosh Morman2021-06-048-182/+27
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: single parameter iio api for plutoJosh Morman2021-06-0410-695/+596
| | | | | | | | rather than complex constructors and a catch all set_params, construct with the minimum amount of parameters and then have them individually settable Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* gr-iio: cmake: List libad9361 as a sub-component of gr-iio.Ryan Volz2021-06-041-4/+4
| | | | Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* gr-iio: Don't build ad9361 Python bindings when it's not available.Ryan Volz2021-06-043-16/+25
| | | | | | | Taken from PR #4465. Co-authored-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* gr-iio: cmake: Standardize Find*.cmake modules and use targets.Ryan Volz2021-06-042-10/+9
| | | | | | | | | | | | | | | | | This standardizes the CMake Find module names for libiio and libad9361 to use the pkg-config names and what the projects use internally as their CMake "project" names. The CMake variables that are set in the Find modules are also changed to match, per CMake convention. This also adds and uses targets for libiio::iio and libad9361::ad9361, removing the need for extra steps like setting a local include directory for libiio on the gnuradio-iio target (PR #4465). I also added pkg-config checks for added search breadth and headed off Windows problems by adding the not-searched "libiio" and "libad9361" library names that are used there. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* feature: gr-iioAdam Horden2021-06-0423-72/+94
| | | | | | Remove use of Boost where possible and use std. Signed-off-by: Adam Horden <adam.horden@horden.engineering>
* feature: gr-iioAdam Horden2021-06-0499-0/+11916
Co-authored-by: Edward Kigwana <ekigwana@scires.com> Co-authored-by: Travis Collins <travis.collins@analog.com> Signed-off-by: Adam Horden <adam.horden@horden.engineering>