From f073dfaee51d466ff1f7d953e87ce0aabc901ce5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 13 Aug 2015 12:20:12 +0800 Subject: [PATCH] ttl: add input/output doc --- artiq/coredevice/ttl.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/ttl.py b/artiq/coredevice/ttl.py index 866e884e5..b655a256d 100644 --- a/artiq/coredevice/ttl.py +++ b/artiq/coredevice/ttl.py @@ -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