forked from M-Labs/artiq
grabber: use new rtio_output() API
This commit is contained in:
parent
2549e623c1
commit
d18546550e
@ -40,13 +40,13 @@ class Grabber:
|
||||
Advances the timeline by 4 coarse RTIO cycles.
|
||||
"""
|
||||
c = int64(self.core.ref_multiplier)
|
||||
rtio_output(now_mu(), self.channel_base, 4*n+0, x0)
|
||||
rtio_output((self.channel_base << 8) | (4*n+0), x0)
|
||||
delay_mu(c)
|
||||
rtio_output(now_mu(), self.channel_base, 4*n+1, y0)
|
||||
rtio_output((self.channel_base << 8) | (4*n+1), y0)
|
||||
delay_mu(c)
|
||||
rtio_output(now_mu(), self.channel_base, 4*n+2, x1)
|
||||
rtio_output((self.channel_base << 8) | (4*n+2), x1)
|
||||
delay_mu(c)
|
||||
rtio_output(now_mu(), self.channel_base, 4*n+3, y1)
|
||||
rtio_output((self.channel_base << 8) | (4*n+3), y1)
|
||||
delay_mu(c)
|
||||
|
||||
@kernel
|
||||
@ -67,7 +67,7 @@ class Grabber:
|
||||
|
||||
:param mask: bitmask enabling or disabling each ROI engine.
|
||||
"""
|
||||
rtio_output(now_mu(), self.channel_base+1, 0, mask)
|
||||
rtio_output((self.channel_base + 1) << 8, mask)
|
||||
|
||||
@kernel
|
||||
def gate_roi_pulse(self, mask, dt):
|
||||
|
Loading…
Reference in New Issue
Block a user