ad9910: style [nfc]

Signed-off-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
Robert Jördens 2018-12-11 09:15:25 +00:00
parent d4c393b2a8
commit efd400b02c
1 changed files with 3 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class AD9910:
@kernel
def set_phase_mode(self, phase_mode):
"""Set the default phase mode.
r"""Set the default phase mode.
for future calls to :meth:`set` and
:meth:`set_mu`. Supported phase modes are:
@ -188,7 +188,8 @@ class AD9910:
:param addr: Register address
:return: 64 bit integer register value
"""
self.bus.set_config_mu(urukul.SPI_CONFIG, 8,
self.bus.set_config_mu(
urukul.SPI_CONFIG, 8,
urukul.SPIT_DDS_WR, self.chip_select)
self.bus.write((addr | 0x80) << 24)
self.bus.set_config_mu(