diff options
| author | Samuel O'Brien <sam.obrien@ni.com> | 2020-07-24 08:35:35 -0500 | 
|---|---|---|
| committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-28 15:25:48 -0500 | 
| commit | 00c306d5c441e60e7dfd2516e05e4e433977ecee (patch) | |
| tree | 998752676d4ff9dbd06ad194056a214e7fdc763c /host/lib/usrp/mpmd/mpmd_impl.hpp | |
| parent | bd278a4b936f3e30f51d7cb9ff489f3ff7215379 (diff) | |
| download | uhd-00c306d5c441e60e7dfd2516e05e4e433977ecee.tar.gz uhd-00c306d5c441e60e7dfd2516e05e4e433977ecee.tar.bz2 uhd-00c306d5c441e60e7dfd2516e05e4e433977ecee.zip | |
sim: Integrate simulator into UHD
This commit adds a device::register_device which allows uhd to start up
a simulator when uhd is called with the arguments type=sim. Creating the
device object creates a subprocess using pybind and an embedded
interpreter, and destroying the object cleans up those subprocesses.
Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_impl.hpp')
| -rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.hpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp index 06b452724..364978fd7 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -227,6 +227,10 @@ public:          return _mb.at(mb_idx)->get_mb_iface();      } +protected: +    //! Destroys the mboard_impls and the device_tree +    void _deinit(); +  private:      /*************************************************************************       * Private methods/helpers | 
