Skip to content
Snippets Groups Projects
Commit 40780f88 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

test EEPROM

parent ac44ff20
No related branches found
No related tags found
1 merge request!12Merge working UNB2 version
...@@ -136,7 +136,7 @@ variables: ...@@ -136,7 +136,7 @@ variables:
driver: GPIO driver: GPIO
mask: UNB2_mask mask: UNB2_mask
width: 1 width: 1
rw: ro rw: hidden #ro
dtype: boolean dtype: boolean
dim: 2 dim: 2
...@@ -147,7 +147,7 @@ variables: ...@@ -147,7 +147,7 @@ variables:
devreg: FP_IO.GPIO devreg: FP_IO.GPIO
bitoffset: 4 bitoffset: 4
width: 3 width: 3
rw: rw rw: hidden #rw
dtype: uint8 dtype: uint8
dim: 2 dim: 2
...@@ -155,7 +155,7 @@ variables: ...@@ -155,7 +155,7 @@ variables:
driver: switch_UNB2 driver: switch_UNB2
devreg: 0x50.0 devreg: 0x50.0
width: 80 #10 characters width: 80 #10 characters
rw: ro rw: hidden #ro
dtype: string dtype: string
dim: 2 dim: 2
...@@ -171,7 +171,7 @@ variables: ...@@ -171,7 +171,7 @@ variables:
driver: switch_PS driver: switch_PS
devreg: [0x2C.0x88,0x2C.0x8B,0x2C.0x8C,0x2C.0x8D] devreg: [0x2C.0x88,0x2C.0x8B,0x2C.0x8C,0x2C.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 2 dim: 2
...@@ -181,7 +181,7 @@ variables: ...@@ -181,7 +181,7 @@ variables:
driver: switch_PS driver: switch_PS
devreg: [0x2.0x8B,0x2.0x8C,0x2.0x8D,0x1.0x8B,0x1.0x8C,0x1.0x8D] devreg: [0x2.0x8B,0x2.0x8C,0x2.0x8D,0x1.0x8B,0x1.0x8C,0x1.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 2 dim: 2
...@@ -191,7 +191,7 @@ variables: ...@@ -191,7 +191,7 @@ variables:
driver: switch_PS driver: switch_PS
devreg: [0xF.0x8B,0xF.0x8C,0xF.0x8D,0xE.0x8B,0xE.0x8C,0xE.0x8D] devreg: [0xF.0x8B,0xF.0x8C,0xF.0x8D,0xE.0x8B,0xE.0x8C,0xE.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 2 dim: 2
...@@ -201,7 +201,7 @@ variables: ...@@ -201,7 +201,7 @@ variables:
driver: switch_PS driver: switch_PS
devreg: [0xD.0x8B,0xD.0x8C,0xD.0x8D] devreg: [0xD.0x8B,0xD.0x8C,0xD.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 2 dim: 2
...@@ -213,7 +213,7 @@ variables: ...@@ -213,7 +213,7 @@ variables:
driver: switch_DDR4 driver: switch_DDR4
devreg: [0x18.0x5,0x19.0x5] devreg: [0x18.0x5,0x19.0x5]
width: 13 width: 13
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 0.0625 scale: 0.0625
dim: 16 dim: 16
...@@ -223,7 +223,7 @@ variables: ...@@ -223,7 +223,7 @@ variables:
driver: switch_DDR4 driver: switch_DDR4
devreg: [0x18.0x149,0x19.0x149] devreg: [0x18.0x149,0x19.0x149]
width: 160 width: 160
rw: ro rw: hidden #ro
dtype: string dtype: string
dim: 16 dim: 16
monitor: true monitor: true
...@@ -232,7 +232,7 @@ variables: ...@@ -232,7 +232,7 @@ variables:
driver: switch_FPGA_PS driver: switch_FPGA_PS
devreg: [0x1.0x8B,0x1.0x8C,0x1.0x8D,0xD.0x8B,0xD.0x8C,0xD.0x8D] devreg: [0x1.0x8B,0x1.0x8C,0x1.0x8D,0xD.0x8B,0xD.0x8C,0xD.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 8 dim: 8
...@@ -242,7 +242,7 @@ variables: ...@@ -242,7 +242,7 @@ variables:
driver: switch_FPGA_PS driver: switch_FPGA_PS
devreg: [0xE.0x8B,0xE.0x8C,0xE.0x8D,0xF.0x8B,0xF.0x8C,0xF.0x8D] devreg: [0xE.0x8B,0xE.0x8C,0xE.0x8D,0xF.0x8B,0xF.0x8C,0xF.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 8 dim: 8
...@@ -252,7 +252,7 @@ variables: ...@@ -252,7 +252,7 @@ variables:
driver: switch_FPGA_PS driver: switch_FPGA_PS
devreg: [0x10.0x8B,0x10.0x8C,0x10.0x8D,0x11.0x8B,0x11.0x8C,0x11.0x8D] devreg: [0x10.0x8B,0x10.0x8C,0x10.0x8D,0x11.0x8B,0x11.0x8C,0x11.0x8D]
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 1.2207e-4 #2^-13 scale: 1.2207e-4 #2^-13
dim: 8 dim: 8
...@@ -266,7 +266,7 @@ variables: ...@@ -266,7 +266,7 @@ variables:
driver: switch_QSFP driver: switch_QSFP
devreg: 0x50.0x16 devreg: 0x50.0x16
width: 16 width: 16
rw: ro rw: hidden #ro
dtype: double dtype: double
scale: 0.0625 #TBC scale: 0.0625 #TBC
dim: 48 dim: 48
...@@ -277,7 +277,7 @@ variables: ...@@ -277,7 +277,7 @@ variables:
driver: switch_QSFP driver: switch_QSFP
devreg: 0x50.0x03 devreg: 0x50.0x03
width: 8 width: 8
rw: ro rw: hidden #ro
dtype: uint8 dtype: uint8
dim: 48 dim: 48
monitor: true monitor: true
......
...@@ -12,6 +12,7 @@ class i2c_switch2(i2c): ...@@ -12,6 +12,7 @@ class i2c_switch2(i2c):
self.channel2=0 self.channel2=0
self.channel3=0 self.channel3=0
logging.info("i2c switch2 at address %i,%i,%i" % (self.SWaddr1,self.SWaddr2,self.SWaddr3)) logging.info("i2c switch2 at address %i,%i,%i" % (self.SWaddr1,self.SWaddr2,self.SWaddr3))
logging.warn("APSCT switch disabled for testing)
def SetSW1(self,channelbit): def SetSW1(self,channelbit):
channel=1<<(channelbit) channel=1<<(channelbit)
...@@ -20,7 +21,8 @@ class i2c_switch2(i2c): ...@@ -20,7 +21,8 @@ class i2c_switch2(i2c):
self.channel1=channel self.channel1=channel
self.channel2=0 self.channel2=0
self.channel3=0 self.channel3=0
return self.i2csetget(self.SWaddr1,[channel]) return True; #testing without APSCT switch
# return self.i2csetget(self.SWaddr1,[channel])
def SetSW2(self,channelbit): def SetSW2(self,channelbit):
channel=1<<(channelbit) channel=1<<(channelbit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment