forked from M-Labs/artiq
1
0
Fork 0

ttl: add input/output doc

This commit is contained in:
Sebastien Bourdeauducq 2015-08-13 12:20:12 +08:00
parent 998db5121b
commit f073dfaee5
1 changed files with 8 additions and 2 deletions

View File

@ -87,10 +87,12 @@ class TTLInOut:
@kernel
def output(self):
"""Set the direction to output."""
self.set_oe(True)
@kernel
def input(self):
"""Set the direction to input."""
self.set_oe(False)
@kernel
@ -107,12 +109,16 @@ class TTLInOut:
@kernel
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)
@kernel
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)
@kernel