uhd/mpm/python/usrp_mpm/periph_manager
Martin Braun 8ce91bc738 mpm: x4xx: Add checks before accessing self.dio_control
The X4x0 MPM code doesn't always load the object for the DIO control, it
only does that when certain checks pass (EEPROM readouts need to match
expected values). Therefore, `self.dio_control` may be NoneObject during
operations, and in other areas of the code, we already check if that's
the case.

The APIs added in c36fc5f don't have these checks, which means accessing
these new APIs may result in odd exceptions when trying to dereference
a NoneType object. By adding checks for the initialization state of
`self.dio_control`, we can avoid these and either substitute better
error messages / exception messages, or return safe values.

Note that mpmd_mb_controller also accesses this object indirectly by
checking the length of the return value of get_gpio_banks(). This check
is not affected by this change, as we now are guaranteed to return an
empty list if there is no self.dio_control.
2021-12-06 07:09:14 -08:00
..
__init__.py.in mpm: Add __mpm_device__ as usrp_hwd module variable 2018-10-09 17:11:08 -07:00
base.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
CMakeLists.txt uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
common.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
e31x.py mpm: Add symbol name based EEPROM read, cleanup EEPROM handling 2021-05-31 05:28:47 -07:00
e31x_periphs.py mpm: e320/e310: Expose APIs to drive GPIO source via UHD 2020-01-23 11:37:51 -08:00
e320.py mpm: Remove SID class 2020-08-07 07:25:08 -05:00
e320_periphs.py mpm: Fix various Pylint issues 2020-07-09 00:39:11 -07:00
n3xx.py n3xx: Add support for rev 10 2021-08-16 15:42:13 -05:00
n3xx_periphs.py mpm: Look for pca953x based devices by device/name 2020-06-11 10:39:05 -05:00
sim.py sim: Ignore mender artifact file on sim devices 2021-01-21 12:47:54 -06:00
x4xx.py mpm: x4xx: Add checks before accessing self.dio_control 2021-12-06 07:09:14 -08:00
x4xx_clk_aux.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_clk_mgr.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_gps_mgr.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_mb_cpld.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_periphs.py mpm: x4xx: Allow retrieving external power state 2021-11-05 12:02:19 -07:00
x4xx_reference_pll.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_rfdc_ctrl.py mpm: rfdc: Tear down RFDC on teardown 2021-10-11 10:43:46 -07:00
x4xx_rfdc_regs.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_sample_pll.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
x4xx_update_cpld.py uhd: add support for max10 variants 2021-12-02 06:42:09 -08:00