summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-01-31 23:05:55 +0100
committerMichael Buesch <mb@bu3sch.de>2010-01-31 23:05:55 +0100
commit81743dc1458f5ba6161a9c6161884aa9df021a71 (patch)
tree4b6ffa72ed01fb353ec420d36b218e1c1e3919d9 /toprammer
parent85880258cc0ee4abcf4c4bcb00717b6277e0467c (diff)
downloadtoprammer-81743dc1458f5ba6161a9c6161884aa9df021a71.tar.xz
toprammer-81743dc1458f5ba6161a9c6161884aa9df021a71.zip
Document FPGA data writing
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer4
1 files changed, 4 insertions, 0 deletions
diff --git a/toprammer b/toprammer
index 6abc912..518d303 100755
--- a/toprammer
+++ b/toprammer
@@ -243,6 +243,10 @@ class TOP:
"""Read a byte from the FPGA data line into the status register."""
self.send("\x01")
+ def cmdFPGAWriteByte(self, byte):
+ """Write a byte to the FPGA data line."""
+ self.send("\x10" + chr(byte))
+
def cmdSetGNDPin(self, zifPin):
"""Assign GND to a ZIF socket pin. 0=none"""
valid = (0, 5, 14, 15, 16, 17, 18, 19, 20, 24, 26, 27,
bues.ch cgit interface