Skip to content

Commit

Permalink
Register update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Feb 8, 2024
1 parent b62a1d8 commit 88ac937
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
7 changes: 3 additions & 4 deletions Eastron_SDM120.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
log = logging.getLogger()

class Reg_f32b(Reg_num):
def __init__(self, base, *args, **kwargs):
super(Reg_f32b, self).__init__(base, 2, *args, **kwargs)
self.coding = ('>f', '>2H')
self.scale = float(self.scale)
coding = ('>f', '>2H')
count = 2
rtype = float

nr_phases = [ 1, 1, 3, 3 ]

Expand Down
7 changes: 3 additions & 4 deletions Eastron_SDM630v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
log = logging.getLogger()

class Reg_f32b(Reg_num):
def __init__(self, base, *args, **kwargs):
super(Reg_f32b, self).__init__(base, 2, *args, **kwargs)
self.coding = ('>f', '>2H')
self.scale = float(self.scale)
coding = ('>f', '>2H')
count = 2
rtype = float

nr_phases = [ 0, 1, 3, 3 ]

Expand Down
7 changes: 3 additions & 4 deletions Eastron_SDM630v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
log = logging.getLogger()

class Reg_f32b(Reg_num):
def __init__(self, base, *args, **kwargs):
super(Reg_f32b, self).__init__(base, 2, *args, **kwargs)
self.coding = ('>f', '>2H')
self.scale = float(self.scale)
coding = ('>f', '>2H')
count = 2
rtype = float

nr_phases = [ 0, 1, 3, 3 ]

Expand Down
7 changes: 3 additions & 4 deletions Eastron_SDM72D.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
log = logging.getLogger()

class Reg_f32b(Reg_num):
def __init__(self, base, *args, **kwargs):
super(Reg_f32b, self).__init__(base, 2, *args, **kwargs)
self.coding = ('>f', '>2H')
self.scale = float(self.scale)
coding = ('>f', '>2H')
count = 2
rtype = float

nr_phases = [ 0, 1, 3, 3 ]

Expand Down

0 comments on commit 88ac937

Please sign in to comment.