uhd/mpm/python/usrp_mpm
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
..
chips uhd: add support for max10 variants 2021-12-02 06:42:09 -08:00
cores cmake: Update coding style to use lowercase commands 2018-11-14 14:10:09 -08:00
dboard_manager mpm: Fix handling of rfic_digital_loopback argument 2021-10-12 12:56:15 -07:00
periph_manager mpm: x4xx: Add checks before accessing self.dio_control 2021-12-06 07:09:14 -08:00
simulator sim: Move SelectableQueue and SendWrapper 2020-10-28 15:25:48 -05:00
sys_utils uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
xports sim: Lay Groundwork for Simulator 2020-10-07 15:29:19 -05:00
__init__.py.in sim: Lay Groundwork for Simulator 2020-10-07 15:29:19 -05:00
aurora_control.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
bfrfs.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
bist.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
CMakeLists.txt mpm: add tlv_eeprom 2021-05-31 05:28:47 -07:00
components.py mpm: Skip DTS compatibility check if DTS is not being updated. 2021-07-09 00:34:33 -07:00
discovery.py mpmd: Increase UHD-side MTU cap for 10 GbE and 1 GbE 2021-11-08 07:37:31 -08:00
e31x_legacy_eeprom.py mpm: e31x: Accept FF terminated strings in eeprom 2020-09-04 11:38:27 -07:00
eeprom.py mpm: Add MB-EEPROMv3 2019-05-10 16:59:58 -07:00
ethdispatch.py mpm: Add support for internal Ethernet interface 2020-07-16 10:00:12 -05:00
fpga_bit_to_bin.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
gpsd_iface.py mpm: gpsd_iface: Make GPGGA generation more robust 2021-06-03 09:35:09 -05:00
mpmlog.py fixup! mpm: Use prefs API in logging module 2020-12-04 12:07:16 -08:00
mpmtypes.py mpm: add FPGA type to the info returned during discovery 2021-05-20 14:57:47 -05:00
mpmutils.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
prefs.py docs: Add comments on mpm.conf 2020-07-09 00:39:11 -07:00
process_manager.py sim: Integrate simulator into UHD 2020-10-28 15:25:48 -05:00
rpc_server.py mpm: Bump MPM compat version to 4.0 2021-06-24 13:52:15 -05:00
test_bfrfs.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
tlv_eeprom.py mpm: add tlv_eeprom 2021-05-31 05:28:47 -07:00
user_eeprom.py mpm: Factor out user EEPROM code into own module 2018-12-20 14:57:54 -08:00