diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-11-14 13:35:20 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2020-01-23 11:37:51 -0800 |
commit | 354886ed4cee82317f6ad45bc57a14af67cce85f (patch) | |
tree | 0bb7b1d99055676c28fd20f04f90dfbcd424ffae /mpm/python/usrp_mpm/periph_manager/e320_periphs.py | |
parent | 90a72e8cd4cd1d4971c0e09d9813c9fc43371062 (diff) | |
download | uhd-354886ed4cee82317f6ad45bc57a14af67cce85f.tar.gz uhd-354886ed4cee82317f6ad45bc57a14af67cce85f.tar.bz2 uhd-354886ed4cee82317f6ad45bc57a14af67cce85f.zip |
mpm: e320/e310: Expose APIs to drive GPIO source via UHD
This enables the *gpio_src* APIs for the E320 and the E31x.
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/e320_periphs.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/e320_periphs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/e320_periphs.py b/mpm/python/usrp_mpm/periph_manager/e320_periphs.py index 8dcd5a9ba..626ee602a 100644 --- a/mpm/python/usrp_mpm/periph_manager/e320_periphs.py +++ b/mpm/python/usrp_mpm/periph_manager/e320_periphs.py @@ -153,7 +153,7 @@ class MboardRegsControl(MboardRegsCommon): value {unsigned} -- value is a single bit bit mask of 8 pins GPIO """ with self.regs: - return self.poke32(self.MB_GPIO_MASTER, value) + self.poke32(self.MB_GPIO_MASTER, value) def get_fp_gpio_master(self): """get "who" is driving front panel gpio @@ -162,7 +162,7 @@ class MboardRegsControl(MboardRegsCommon): 1: means the pin is driven by PS """ with self.regs: - return self.peek32(self.MB_GPIO_MASTER) & 0xfff + return self.peek32(self.MB_GPIO_MASTER) & 0xff def set_fp_gpio_radio_src(self, value): """set driver for front panel GPIO @@ -172,7 +172,7 @@ class MboardRegsControl(MboardRegsCommon): 01: means the pin is driven by radio 1 """ with self.regs: - return self.poke32(self.MB_GPIO_RADIO_SRC, value) + self.poke32(self.MB_GPIO_RADIO_SRC, value) def get_fp_gpio_radio_src(self): """get which radio is driving front panel gpio @@ -181,7 +181,7 @@ class MboardRegsControl(MboardRegsCommon): 01: means the pin is driven by radio 1 """ with self.regs: - return self.peek32(self.MB_GPIO_RADIO_SRC) & 0xffffff + return self.peek32(self.MB_GPIO_RADIO_SRC) & 0xffff def set_time_source(self, time_source, ref_clk_freq): """ |