Beispiel #1
0
    def updateTable(self):
        self.dock.show()
        tm = CWMainGUI.getInstance().api.getInstance().project().traceManager()
        tend = tm.numTraces()
        self.tablewid.setRowCount(tend)
        for tnum in range(0,tend):
            tin = tm.getTextin(tnum)
            tout = tm.getTextout(tnum)
            k = tm.getKnownKey(tnum)

            self.tablewid.setItem(tnum, 0, QTableWidgetItem(util.list2hexstr(tin)))
            self.tablewid.setItem(tnum, 1, QTableWidgetItem(util.list2hexstr(tout)))
            self.tablewid.setItem(tnum, 2, QTableWidgetItem(util.list2hexstr(k)))
Beispiel #2
0
 def readOutput(self):
     """"Read output from FPGA"""
     data = self.fpga_read(0x200, 16)
     data = data[::-1]
     self.newInputData.emit(util.list2hexstr(data))
     return data
Beispiel #3
0
 def readOutput(self):
     """"Read output from FPGA"""
     data = self.fpga_read(0x200, 16)
     data = data[::-1]
     self.newInputData.emit(util.list2hexstr(data))
     return data