Skip to content

Commit

Permalink
spi: cross-reference bit ordering and alignment, closes #482
Browse files Browse the repository at this point in the history
jordens committed Jun 15, 2016
1 parent 033aa33 commit a8b211f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions artiq/coredevice/spi.py
Original file line number Diff line number Diff line change
@@ -196,6 +196,7 @@ def write(self, data=0):
deasserting ``cs`` in between. Once a transfer completes,
the previous transfer's read data is available in the
``data`` register.
* For bit alignment and bit ordering see :meth:`set_config`.
This method advances the timeline by the duration of the SPI transfer.
If a transfer is to be chained, the timeline needs to be rewound.
@@ -207,6 +208,8 @@ def write(self, data=0):
def read_async(self):
"""Trigger an asynchronous read from the ``data`` register.
For bit alignment and bit ordering see :meth:`set_config`.
Reads always finish in two cycles.
Every data register read triggered by a :meth:`read_async`

0 comments on commit a8b211f

Please sign in to comment.