summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer7
1 files changed, 6 insertions, 1 deletions
diff --git a/toprammer b/toprammer
index 7a4e63e..00b57f4 100755
--- a/toprammer
+++ b/toprammer
@@ -289,10 +289,15 @@ class TOP:
"""Read a byte from the FPGA data line into the status register."""
self.send("\x01")
- def cmdFPGAWriteByte(self, byte):
+ def cmdFPGAWriteByte(self, byte):#FIXME
"""Write a byte to the FPGA data line."""
self.send("\x10" + chr(byte))
+ def cmdFPGAWrite(self, address, byte):
+ """Write a byte to an FPGA address."""
+ cmd = chr(0x0A) + chr(address) + chr(byte)
+ self.send(cmd)
+
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