aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/mpmutils.py
Commit message (Collapse)AuthorAgeFilesLines
* mpm: replace long execution function with async callTrung N Tran2018-04-301-1/+14
| | | | | | - Replace mykonos finish_initialization with async version - Replace myknonos setup_cal with async version - Remove disable_timeout on rpc_server init()
* mpm: Update all license headersMartin Braun2018-02-191-2/+2
| | | | | - Fix typo in company name (missing 'a') - Updated SPDX license identifier to version 3.0
* fixup! mpm: Fixup for argument parsing in N310Martin Braun2018-02-071-1/+9
|
* mpm: Fixup for argument parsing in N310Brent Stapleton2018-02-071-0/+2
| | | | | | | Adding helper function to parse strings to a boolean value. We can then use that function to parse MPM's default_args, and set enable_gps and enable_fp_gpio. This replaces the usages of the Python builtin bool(), which returns True for any non-empty string.
* mpm: utils: Fix to_native_str for non-string typesMartin Braun2018-01-111-2/+5
| | | | | Before, you couldn't use to_native_str for objects such as integers (i.e., anything that was not a bytes-like object).
* mpm: utils: Add assert_compat_number functionMartin Braun2018-01-081-0/+59
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* mpm: utils: Add string conversion utilitiesMartin Braun2017-12-221-0/+42
| | | | | | | Adds conversions for: - Any-to-binary - Any-to-UTF8 - Any-to-native
* mpm: Add mpmutils module, includes poll_with_timeoutMartin Braun2017-12-221-0/+38
This is a convenience function for polling with sleeps and timeouts.