mirror of https://github.com/m-labs/artiq.git
spi: have write() delay by transfer duration
This commit is contained in:
parent
423ca03f3b
commit
dc6d116824
|
@ -198,11 +198,11 @@ class SPIMaster:
|
||||||
the previous transfer's read data is available in the
|
the previous transfer's read data is available in the
|
||||||
``data`` register.
|
``data`` register.
|
||||||
|
|
||||||
This method advances the timeline by the duration of the
|
This method advances the timeline by the duration of the SPI transfer.
|
||||||
RTIO-to-Wishbone bus transaction (three RTIO clock cycles).
|
If a transfer is to be chained, the timeline needs to be rewound.
|
||||||
"""
|
"""
|
||||||
rtio_output(now_mu(), self.channel, SPI_DATA_ADDR, data)
|
rtio_output(now_mu(), self.channel, SPI_DATA_ADDR, data)
|
||||||
delay_mu(3*self.ref_period_mu)
|
delay_mu(self.xfer_period_mu + self.write_period_mu)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def read_async(self):
|
def read_async(self):
|
||||||
|
|
Loading…
Reference in New Issue