aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_samples_c.c
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Remove usage of time_t (except when required)Martin Braun2018-08-201-2/+2
| | | | | | | | | | The C/C++ standards don't define what time_t is, only that it is arithmetic (and real for C11, and integral for C++). It should not be used in portable software and is only used as the return value for some libc calls. A common definition for time_t is int64_t, so we'll switch to that permanently in our own APIs. System APIs will of course stick with time_t.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* examples/c-api: Fix invalid free of device_argssugandhagupta2017-06-291-2/+5
| | | | | | | | | One does not simply free() stack / automatic variables. Please `man 3 strdup()`. Signed-off-by: Sugandha Gupta <sugandha.gupta@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* Fix warning in rx_samples_c.c.Philip Balister2016-10-131-2/+2
| | | | | | | time_t is not guaranteed to be printable as in int type. Use difftime to portably convert time_t to float and print result. Signed-off-by: Philip Balister <philip@opensdr.com>
* examples: Fixed error code variable in rx_samples_cMartin Braun2015-11-171-1/+1
|
* C API cleanup, feature additionsNicholas Corgan2015-08-121-1/+1
| | | | | | * Cleaned up usage of handles vs. handle pointers * Store global string for last error thrown * Removed uhd::device_addr_t handle, added std::vector<std::string> handle
* C API: feature additions, bugfixesNicholas Corgan2015-08-071-4/+4
| | | | | | * Wrapped uhd::device_addrs_t, added find functions for multi_usrp, multi_usrp_clock * Replaced getopt with public domain implementation * Minor bugfixes
* uhd: C API wrapperNicholas Corgan2015-08-061-0/+291
* multi_usrp, multi_usrp_clock, and associated classes accessible through C * Added Doxygen documentation explaining structure and API * Simple RX and TX streaming examples * Unit tests for different parts of C interface and C++ error conversion