本文整理汇总了Python中Hardware.getCardAddress方法的典型用法代码示例。如果您正苦于以下问题:Python Hardware.getCardAddress方法的具体用法?Python Hardware.getCardAddress怎么用?Python Hardware.getCardAddress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hardware
的用法示例。
在下文中一共展示了Hardware.getCardAddress方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: readBridgeIglooReg
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def readBridgeIglooReg(bus):
h.openChannel(slot,bus)
bus.write(0x00,[0x06])
bus.write(h.getCardAddress(slot),[0x22])
bus.read(h.getCardAddress(slot),4)
read1 = bus.sendBatch()[-1]
print 'BRIDGE IGLOO REG Read: '+str(read1)
示例2: runSelect
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def runSelect(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = fpgaMajVer(bus,i.igloo["fpgaMajVer"]["register"],'iglooClass.txt', 1)
print m.run()
m = fpgaMinVer(bus,i.igloo["fpgaMinVer"]["register"],'iglooClass.txt', 1)
print m.run()
示例3: readOutInputSpy
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def readOutInputSpy(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = cntrRegDisplay(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
m = cntrRegChange(bus,i.igloo["cntrReg"]["register"], 1)
print m.run('WrEn_InputSpy', '1')
m = inputSpy(bus,i.igloo["inputSpy"]["register"], 512)
print m.run()
示例4: runAll
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def runAll(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = fpgaMajVer(bus,i.igloo["fpgaMajVer"]["register"], 1)
print m.run()
m = fpgaMinVer(bus,i.igloo["fpgaMinVer"]["register"], 1)
print m.run()
m = ones(bus,i.igloo["ones"]["register"], 1)
print m.run()
m = zeroes(bus,i.igloo["zeroes"]["register"], 1)
print m.run()
m = fpgaTopOrBottom(bus,i.igloo["fpgaTopOrBottom"]["register"], 1)
print m.run()
m = uniqueID(bus,i.igloo["uniqueID"]["register"], 1)
print m.run()
m = statusReg(bus,i.igloo["statusReg"]["register"], 1)
print m.run()
m = cntrRegDisplay(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
m = cntrRegChange(bus,i.igloo["cntrReg"]["register"], 1)
print m.run('all', '')
m = clk_count(bus,i.igloo["clk_count"]["register"], 1)
print m.run()
m = rst_QIE_count(bus,i.igloo["rst_QIE_count"]["register"], 1)
print m.run()
m = wte_count(bus,i.igloo["wte_count"]["register"], 1)
print m.run()
m = capIDErr_count(bus,i.igloo["capIDErr_count"]["register"], 1)
print m.run()
m = fifo_data(bus,i.igloo["fifo_data"]["register"], 1)
print m.run()
m = inputSpy(bus,i.igloo["inputSpy"]["register"], 1)
print m.run()
m = spy96Bits(bus,i.igloo["spy96Bits"]["register"], 1)
print m.run()
m = qie_ck_ph(bus,i.igloo["qie_ck_ph"]["register"], 1)
print m.run()
m = link_test_mode(bus,i.igloo["link_test_mode"]["register"], 1)
print m.run()
m = link_test_pattern(bus,i.igloo["link_test_pattern"]["register"], 1)
print m.run()
m = dataToSERDES(bus,i.igloo["dataToSERDES"]["register"], 1)
print m.run()
m = addrToSERDES(bus,i.igloo["addrToSERDES"]["register"], 1)
print m.run()
m = ctrlToSERDES(bus,i.igloo["ctrlToSERDES"]["register"], 1)
print m.run()
m = dataFromSERDES(bus,i.igloo["dataFromSERDES"]["register"], 1)
print m.run()
m = statFromSERDES(bus,i.igloo["statFromSERDES"]["register"], 1)
print m.run()
m = scratchReg(bus,i.igloo["scratchReg"]["register"], 1)
print m.run()
示例5: getID
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def getID(self):
Hardware.openChannel(self.slot, self.bus)
# Reset entire board by writing 0x6 to 0x0.
self.bus.write(0x00,[0x06])
# Note that the i2c_select has register address 0x11
# Value : 4 = 0x04 selects 0x50
# Note that the SSN expects 32 bits (4 bytes) for writing (send 0x4, 0, 0, 0)
self.bus.write(Hardware.getCardAddress(self.slot),[0x11,0x04,0,0,0])
# Send 0x0 to 0x50 in order to set pointer for reading ID
# This removes the permutation problem!
self.bus.write(0x50,[0x00])
self.bus.read(0x50,8)
raw = self.bus.sendBatch()[-1]
# Checksum
check = Check(raw,0)
if check.result != 0:
print 'checksum error'
return raw
示例6: runSelect
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def runSelect(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = fpgaMajVer(bus,i.igloo["fpgaMajVer"]["register"], 1)
print m.run()
m = fpgaMinVer(bus,i.igloo["fpgaMinVer"]["register"], 1)
print m.run()
m = ones(bus,i.igloo["ones"]["register"], 1)
print m.run()
m = zeroes(bus,i.igloo["zeroes"]["register"], 1)
print m.run()
m = fpgaTopOrBottom(bus,i.igloo["fpgaTopOrBottom"]["register"], 1)
print m.run()
m = uniqueID(bus,i.igloo["uniqueID"]["register"], 1)
print m.run()
m = statusReg(bus,i.igloo["statusReg"]["register"], 1)
print m.run()
m = cntrRegDisplay(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
m = clk_count(bus,i.igloo["clk_count"]["register"], 1)
print m.run()
m = rst_QIE_count(bus,i.igloo["rst_QIE_count"]["register"], 1)
print m.run()
m = wte_count(bus,i.igloo["wte_count"]["register"], 1)
print m.run()
m = capIDErr_count(bus,i.igloo["capIDErr_count"]["register"], 1)
print m.run()
# m = inputSpy(bus,i.igloo["inputSpy"]["register"], 1)
# print m.run()
# m = inputSpy_512Reads(bus,i.igloo["inputSpy"]["register"], 1)
# print m.run()
m = CI_Mode_On(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
m = CI_Mode_Off(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
示例7: displayCI
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def displayCI(bus,slot):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = CI_Mode_Display(bus,i.igloo["cntrReg"]["register"], 1)
m.run()
示例8: turnOnCI
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def turnOnCI(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = CI_Mode_On(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
示例9: writeBridgeIglooReg
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def writeBridgeIglooReg(bus):
h.openChannel(slot,bus)
bus.write(0x00,[0x06])
bus.write(h.getCardAddress(slot),[0x22,0xe7,0x07,0,0])
write2 = bus.sendBatch()[0]
print 'BRIDGE IGLOO REG Write: '+str(write2)
示例10: cntrRegShowAll
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def cntrRegShowAll(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = cntrRegDisplay(bus,i.igloo["cntrReg"]["register"], 1)
print m.run()
示例11: processInputSpy
# 需要导入模块: import Hardware [as 别名]
# 或者: from Hardware import getCardAddress [as 别名]
def processInputSpy(bus):
h.openChannel(slot,bus)
bus.write(h.getCardAddress(slot),[0x11,0x03,0,0,0])
m = inputSpy_512Reads(bus,i.igloo["inputSpy"]["register"], 1)
print m.run()