aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/mykonos/ad937x_ctrl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* mpm: Harmonize all license headerMartin Braun2017-12-221-13/+2
| | | | Now uses SPDX headers everywhere.
* mpm: Fix floating-point errors in MCR configurationMartin Braun2017-12-221-2/+20
| | | | | | Use fuzzy comparisons for setting the MCR. Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: Enable TX external LO set through args, simplify codeTrung N Tran2017-12-221-17/+40
| | | | | | | Simplify the process of setting external LO without calling through many API layers. Reviewed-By: Martin Braun <martin.braun@ettus.com>
* mpm: mykonos: Add API to change master clock rateTrung N Tran2017-12-221-4/+9
|
* mpm: ad937x: Add LO lock APIMartin Braun2017-12-221-0/+11
| | | | | Reviewed-By: Steven Bingler <steven.bingler@ni.com> Reviewed-By: Trung Tran <trung.tran@ettus.com>
* mpm: enable RX external LO set through argsTrung N Tran2017-12-221-0/+16
| | | | | | | | | This change allow user to set RX LO of ad9371 to external or internal from args constructor of usrp device. new args is rx_lo_source value can be either internal or external: If there's no rx_lo_source specified or invalid value, default rx_lo is used; which is internal LO. Usage example: usrp_application --args "rx_lo_source=external"
* mg: enable init and track calibration APITrung Tran2017-12-221-1/+63
| | | | | | | | | | | | | | | | | | | Currently, AD9371 turned on most of the calibration and hard coding the turning on process during bringup time. This change enables users to pass in a mask field for init ARM calibration and tracking arm calibration at the time creating USRP device reference. This mask field can be passed through device arguments of: 1/ init_cals : for init ARM calibration masks. This is defined in AD9371 UG-992 table 65. Default to 0x4DFF 2/ tracking_cals : for tracking calibration masks. This is defined in AD9371 UG-992 table 66. Default to 0xC3 Example of pasing in init calibration and tracking calibration mask usrp_application --args "init_cals=0x4f, tracking_cals=0xC3" NOTE: UHD currently expect user to input the correct init_cals and tracking_cals. There's no mechanism to check if init mask and tracking mask are valid. For example if the init mask field not mask 0x4f, the AD9371 will failed to setup.
* adi: update arm_version function signatureMark Meserve2017-12-221-0/+15
|
* mpm: ad937x: Updated controlsMark Meserve2017-12-221-0/+21
|
* mg: General fixesMark Meserve2017-12-221-14/+3
| | | | | - Make DB probe-able - Add RPC client
* mpm: Added peek/poke interface to ad937x_ctrlMartin Braun2017-12-221-0/+12
|
* mpm: Major refactoringMartin Braun2017-12-221-12/+18
| | | | | | - Created clean interfaces for SPI and registers - Severed most links to UHD - Added a lockable class which allows exposing mutexes into Python
* mpm: Fixed a plethora of SPI-related issuesMartin Braun2017-12-221-2/+5
|
* ad9371: Added JESD init functionalityMark Meserve2017-12-221-0/+65
|
* mpm: Improved ad937x codeMark Meserve2017-12-221-10/+65
| | | | | | - Add gain control pin configuration - Fixed gcc compilation - Better docstrings
* mpm: fixup for spi and ad937x path changesMark Meserve2017-12-221-1/+1
|
* mpm: clean up spiMark Meserve2017-12-221-18/+18
| | | | | remove spi_lock remove ad9371 spi_config types
* ad9371: cleanup ctrlMark Meserve2017-12-221-49/+49
| | | | | | remove device forward declaration make helper functions local to ad9371_ctrl.cpp fix UHD include paths
* ad9371: whitespace cleanupMark Meserve2017-12-221-2/+2
|
* mpm: move public includes into include/Martin Braun2017-12-221-16/+18
|
* mpm: Minor modifications to ad937x controlsMartin Braun2017-12-221-1/+1
| | | | | - Made rates a vector instead of set for better compat w/ RPC and UHD - Minor whitespace fixes
* mpm: Rearchitecture of AD9371 code to use ctrl/device paradigmMark Meserve2017-12-221-370/+72
|
* Initial commit for N3xx development.Martin Braun2017-12-221-0/+565
- Creates mpm/ subdirectory - First pass at hardware daemon/MPM - New code for LMK04828, AD9371 - spidev integration Contributions by: Martin Braun <martin.braun@ettus.com> Derek Kozel <derek.kozel@ettus.com> Mark Meserve <mark.meserve@ni.com> Andrej Rode <andrej.rode@ettus.com>