Commit graph

28 commits

Author SHA1 Message Date
Ryan Thompson
f046180604 host: CMake minimum version bump to 3.5
Accommodates the following warning issued by CMake v3.27.1.

CMake Deprecation Warning:
  Compatibility with CMake < 3.5 will be removed from a 
  future version of CMake.
2023-10-31 10:28:21 -05:00
Ryan Thompson
2274d380a0 libbladeRF: sync_rx_meta: --buflen argument added
Buffer size can now be assigned through an argument.
2023-07-07 15:44:14 -05:00
Ryan Thompson
d609034851 libbladeRF: sync_rx_meta: --numsamples argument added
Number of samples can now be assigned through an argument.
2023-07-07 15:44:14 -05:00
Ryan Thompson
9faea357d0 libbladeRF: rx_count option added 2023-07-07 15:43:10 -05:00
Ryan Thompson
aa29cda96c libbladeRF: sync_rx_meta: MIMO option functional 2023-06-27 13:22:40 -05:00
Ryan Thompson
f6172a265a libbladeRF: sync_rx_meta: MIMO option added 2023-06-27 13:22:40 -05:00
Ryan Thompson
3f18c4de33 libbladeRF: sync_rx_meta format and rx_count printout 2023-03-31 17:18:01 -05:00
Ryan Thompson
5d3f69271e libbladeRF: rx_count option added 2023-03-31 17:18:01 -05:00
Ryan Thompson
f04d3a8eed libbladeRF: sync_rx_meta logging 2023-03-31 17:18:01 -05:00
Ryan Thompson
cd0e18769d libbladeRF: example options revamped and bitmode sel added 2023-03-31 17:18:01 -05:00
Ryan Thompson
77f079ae7b libbladeRF: example RX meta assigns format through init parameter 2023-03-31 17:18:01 -05:00
Ryan Thompson
15b7d9c3b6 host: squashed cmake warnings
updated cmake requirement from 2.8 to 2.8.12
2023-02-13 03:28:19 -08:00
Rey Tucker
85fd6da22a
host: fix builds on 32-bit platforms (#573)
Builds were failing in various ways on 32-bit platforms, due to various assumptions (and the fact that pretty much everything is 64-bit nowadays). This PR should fix all of them so that it builds clean.

* host: libbladeRF/thirdparty/adi: fix build error on 32-bit systems

sizeof(void*) is not necessarily equal to sizeof(uint64_t)

* host: libbladeRF/doc: fix 32-bit build failure on doc example

sizeof(size_t) does not always equal sizeof(uint64_t)

* host: docker: remove centos-7-i386 build

it doesn't work, and this is an edgy-enough case that i think we'll be
okay with the ubuntu i386 builds

* host: libbladeRF/bladerf2: explicitly note constant types

On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.

* host: libbladeRF_test: explicitly note constant types

On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.
2018-08-16 18:57:52 -04:00
Rey Tucker
2c950ad246 host: libbladeRF: clang-format doc examples (#56) 2018-05-30 15:27:07 -04:00
Rey Tucker
9761a90ec2 host: libbladeRF: Add documentation and test program for config file handling (#539)
* host: libbladeRF: fix typo of "bandwidth" cfg file key

* host: libbladeRF: add documentation for config files

* host: libbladeRF: config.c: minor typo fix

* host: libbladeRF_test: add test case for config file parsing

Creates a surrogate config file with a few different scope restrictions,
then makes sure the configuration is applied appropriately in the end.
2018-03-30 14:01:32 -04:00
Vanya A. Sergeev
64a69f569b libbladeRF: update docs and examples with new API 2017-12-21 12:55:04 -05:00
Rey Tucker
6116d09049 libbladeRF: add compilation hint to boilerplate.c
h/t owen on IRC
2017-08-09 10:58:08 -04:00
Jon Szymaniak
ef797fd412 libbladeRF/doc: Fixed typos and touched up timestamp calculations
- The calculation for advancing 150 ms was incorrect
- Compute timestamp increment constants to be more clear
2015-12-23 23:14:31 -05:00
Jon Szymaniak
c262e84bf4 libbladeRF/doc/examples: Report "have tx data" in sync_rxtx example
This flag needs to be asserted true in the dummy do_work()
implementation to allow this to function as an example that works "out
of the box."
2015-11-24 10:48:13 -05:00
Jon Szymaniak
2b7bb2a8f0 libbladeRF/doc: Clarified use of zero-sample in example 2015-07-25 15:30:19 -04:00
Jon Szymaniak
3dc14852af libbladeRF: Added documentation for new tuning functionality 2015-06-18 18:34:30 -04:00
Jon Szymaniak
3cdf642614 libbladeRF/doc: Overhauled API docs main page and added examples
The main landing page in the Doxygen is now filled out with
some general information.

Existing examples have been simplified and moved to
dedicated pages that are linked to from the main page and
relevant sections of the documentation elsewhere.
2015-06-06 17:01:19 -04:00
Jon Szymaniak
625e0f4fbe libbladeRF: Removed unnecessary -lm and math.h from example program 2014-11-14 16:40:02 -05:00
Jon Szymaniak
64275e768f host: Updated and moved Windows C99 compatibility headers
Visual Studio 2013 now includes these headers, so they have
been moved as not to conflict (even though they are intended to
be equivalent.)

Our stdbool.h was providing an incorrect typedef; sizeof(bool)
should have been 1, not sizeof(int).

Per http://msdn.microsoft.com/en-us/library/tf4dy80a.aspx:
    "In Visual C++4.2, the Standard C++ header files contained a typedef
    that equated bool with int. In Visual C++ 5.0 and later, bool is
    implemented as a built-in type with a size of 1 byte. That means
    that for Visual C++ 4.2, a call of sizeof(bool) yields 4, while in
    Visual C++ 5.0 and later, the same call yields 1. This can cause
    memory corruption problems if you have defined structure members of
    type bool in Visual C++ 4.2 and are mixing object files (OBJ) and/or
    DLLs built with the 4.2 and 5.0 or later compilers."
2014-11-14 15:19:18 -05:00
Jon Szymaniak
3f2a9519cb libbladeRF: Removed dead-assignment in example program 2014-11-11 11:54:58 -05:00
Jon Szymaniak
79d6894356 libbladeRF: Fixed Windows build issues in doc examples 2014-11-11 11:10:26 -05:00
Jon Szymaniak
f40e70b79a libbladeRF: Added bladerf_open_with_devinfo() example, updated docs 2014-10-27 13:59:10 -04:00
Jon Szymaniak
f7a4345257 libbladeRF: Added more complete examples for the synchronous interface
The existing bladerf_sync_rx() snippet in the libbladeRF API docs has
been replaced by a more complete snippet in libbladeRF/doc/examples.

From now on, major snippets and examples to be included in
Doxygen-generated documentation shall now be placed in the
libbladeRF/doc/examples directory, and must be buildable and testable.

The Doxygen "snippet" command to shall be used to include the relevant
code from the example program.

libbladeRF: [WIP] Use a simple delay to wait for TX samples in example
2014-10-21 08:01:28 -04:00