ad9910: Clarify chip_select range [nfc]

`assert 3 <= chip_select <= 7` is rather opaque without looking
at the CPLD source code otherwise.
This commit is contained in:
David Nadlinger 2018-07-29 01:55:51 +01:00
parent 6b89106578
commit 08ee91beb2
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ class AD9910:
the digital step attenuator, and the RF switch. the digital step attenuator, and the RF switch.
:param chip_select: Chip select configuration. On Urukul this is an :param chip_select: Chip select configuration. On Urukul this is an
encoded chip select and not "one-hot". encoded chip select and not "one-hot": 3 to address multiple chips
(as configured through CFG_MASK_NU), 4-7 for individual channels.
:param cpld_device: Name of the Urukul CPLD this device is on. :param cpld_device: Name of the Urukul CPLD this device is on.
:param sw_device: Name of the RF switch device. The RF switch is a :param sw_device: Name of the RF switch device. The RF switch is a
TTLOut channel available as the :attr:`sw` attribute of this instance. TTLOut channel available as the :attr:`sw` attribute of this instance.