summaryrefslogtreecommitdiff
path: root/gr-iio/lib/fmcomms2_source_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* iio: make fmcomms freq parameter doubleJosh Morman2021-10-281-2/+3
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* iio: iio_param_t for parameter settingJosh Morman2021-10-281-26/+20
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* iio: de-duplicate the pluto wrappersJosh Morman2021-10-131-30/+177
| | | | | | | | | | | | | 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-021-1/+1
| | | | 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-271-3/+5
| | | | | | | | | | | | | 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: Remove cstdio/iostream and log using GR_LOGDavid Winter2021-07-021-1/+0
| | | | | | | 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>
* gr-iio: Add packetized transfer support using stream tagsDavid Winter2021-06-271-0/+5
| | | | | | | | | | | | | | | 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>
* iio: clean up fmcomms2 public headersJosh Morman2021-06-041-30/+0
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: remove commented codeJosh Morman2021-06-041-20/+0
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* Update AD936x filter support on sinksTravis F. Collins2021-06-041-2/+2
| | | | | | | | | | | | | 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: make filter params a single apiJosh Morman2021-06-041-14/+27
| | | | Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* iio: single parameter iio api for plutoJosh Morman2021-06-041-190/+142
| | | | | | | | 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>
* feature: gr-iioAdam Horden2021-06-041-6/+7
| | | | | | Remove use of Boost where possible and use std. Signed-off-by: Adam Horden <adam.horden@horden.engineering>
* feature: gr-iioAdam Horden2021-06-041-0/+348
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>