mirror of https://github.com/m-labs/artiq.git
ttl: add input/output doc
This commit is contained in:
parent
998db5121b
commit
f073dfaee5
|
@ -87,10 +87,12 @@ class TTLInOut:
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def output(self):
|
def output(self):
|
||||||
|
"""Set the direction to output."""
|
||||||
self.set_oe(True)
|
self.set_oe(True)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def input(self):
|
def input(self):
|
||||||
|
"""Set the direction to input."""
|
||||||
self.set_oe(False)
|
self.set_oe(False)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
|
@ -107,12 +109,16 @@ class TTLInOut:
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def on(self):
|
def on(self):
|
||||||
"""Set the output to a logic high state."""
|
"""Set the output to a logic high state.
|
||||||
|
|
||||||
|
The channel must be in output mode."""
|
||||||
self.set_o(True)
|
self.set_o(True)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def off(self):
|
def off(self):
|
||||||
"""Set the output to a logic low state."""
|
"""Set the output to a logic low state.
|
||||||
|
|
||||||
|
The channel must be in output mode."""
|
||||||
self.set_o(False)
|
self.set_o(False)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
|
|
Loading…
Reference in New Issue