Skip to content
Snippets Groups Projects
Commit f153dcef authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Change most MPs to arrays

parent 2543afbe
Branches
Tags
No related merge requests found
...@@ -42,8 +42,6 @@ class RCUSCC(Device): ...@@ -42,8 +42,6 @@ class RCUSCC(Device):
- Type:'DevULong' - Type:'DevULong'
OPC_Time_Out OPC_Time_Out
- Type:'DevDouble' - Type:'DevDouble'
RCU
- Type:'DevULong'
""" """
# PROTECTED REGION ID(RCUSCC.class_variable) ENABLED START # # PROTECTED REGION ID(RCUSCC.class_variable) ENABLED START #
client = 0 client = 0
...@@ -70,106 +68,70 @@ class RCUSCC(Device): ...@@ -70,106 +68,70 @@ class RCUSCC(Device):
mandatory=True mandatory=True
) )
RCU = device_property(
dtype='DevULong',
mandatory=True
)
# ---------- # ----------
# Attributes # Attributes
# ---------- # ----------
Attenuator1_R = attribute( Attenuator_R = attribute(
dtype='DevLong64', dtype=('DevLong64',),
) max_dim_x=32, max_dim_y=3,
Attenuator1_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
)
Attenuator2_R = attribute(
dtype='DevLong64',
)
Attenuator2_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
)
Attenuator3_R = attribute(
dtype='DevLong64',
)
Attenuator3_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
) )
Band1_R = attribute( Attenuator_RW = attribute(
dtype='DevLong64', dtype=('DevLong64',),
) max_dim_x=32, max_dim_y=3,
Band1_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE, access=AttrWriteType.READ_WRITE,
) )
Band2_R = attribute( Band_R = attribute(
dtype='DevLong64', dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
) )
Band2_RW = attribute( Band_RW = attribute(
dtype='DevLong64', dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
access=AttrWriteType.READ_WRITE, access=AttrWriteType.READ_WRITE,
) )
Band3_R = attribute( CLK_PLL_locked_R = attribute(
dtype='DevLong64', dtype=('DevLong64',),
) max_dim_x=32,
Band3_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
) )
# Dither1_Frequency_R = attribute( # Dither_Frequency_R = attribute(
# dtype='DevDouble', # dtype=('DevDouble',),
# ) # max_dim_x=32, max_dim_y=2,
# # )
# Dither1_Frequency_RW = attribute(
# dtype='DevDouble',
# access=AttrWriteType.READ_WRITE,
# )
# #
# Dither2_Frequency_R = attribute( # Dither_Frequency_RW = attribute(
# dtype='DevDouble', # dtype=('DevDouble',),
# ) # max_dim_x=32, max_dim_y=2,
# # access=AttrWriteType.READ_WRITE,
# Dither2_Frequency_RW = attribute( # )
# dtype='DevDouble',
# access=AttrWriteType.READ_WRITE, LED_R = attribute(
# ) dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
LED0_R = attribute(
dtype='DevLong64',
) )
LED0_RW = attribute( LED_RW = attribute(
dtype='DevLong64', dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
access=AttrWriteType.READ_WRITE, access=AttrWriteType.READ_WRITE,
) )
Pwr_dig_R = attribute( Pwr_dig_R = attribute(
dtype='DevLong64', dtype=('DevLong64',),
max_dim_x=32,
) )
Temperature_R = attribute( Temperature_R = attribute(
dtype='DevDouble', dtype=('DevDouble',),
max_dim_x=32,
) )
# --------------- # ---------------
# General methods # General methods
# --------------- # ---------------
...@@ -185,64 +147,37 @@ class RCUSCC(Device): ...@@ -185,64 +147,37 @@ class RCUSCC(Device):
# Set default values in the RW/R attributes and add them to # Set default values in the RW/R attributes and add them to
# the mapping. # the mapping.
self._Attenuator1_R = 0 self._Attenuator_R = ((0,),)
self.attribute_mapping["Attenuator1_R"] = {} self.attribute_mapping["Attenuator_R"] = {}
self._Attenuator1_RW = 0
self.attribute_mapping["Attenuator1_RW"] = {}
self._Attenuator2_R = 0
self.attribute_mapping["Attenuator2_R"] = {}
self._Attenuator2_RW = 0
self.attribute_mapping["Attenuator2_RW"] = {}
self._Attenuator3_R = 0
self.attribute_mapping["Attenuator3_R"] = {}
self._Attenuator3_RW = 0
self.attribute_mapping["Attenuator3_RW"] = {}
self._Band1_R = 0
self.attribute_mapping["Band1_R"] = {}
self._Band1_RW = 0
self.attribute_mapping["Band1_RW"] = {}
self._Band2_R = 0
self.attribute_mapping["Band2_R"] = {}
self._Band2_RW = 0 self._Attenuator_RW = ((0,),)
self.attribute_mapping["Band2_RW"] = {} self.attribute_mapping["Attenuator_RW"] = {}
self._Band3_R = 0 self._CLK_PLL_locked_R = ((0,),)
self.attribute_mapping["Band3_R"] = {} self.attribute_mapping["CLK_PLL_locked_R"] = {}
self._Band3_RW = 0 self._Band_R = ((0,),)
self.attribute_mapping["Band3_RW"] = {} self.attribute_mapping["Band_R"] = {}
self._Dither1_Frequency_R = 0 self._Band_RW = ((0,),)
self.attribute_mapping["Dither1_Frequency_R"] = {} self.attribute_mapping["Band_RW"] = {}
self._Dither1_Frequency_RW = 0 self._Dither_Frequency_R = ((0.0,),)
self.attribute_mapping["Dither1_Frequency_RW"] = {} self.attribute_mapping["Dither_Frequency_R"] = {}
self._Dither2_Frequency_R = 0 self._Dither_Frequency_RW = ((0.0,),)
self.attribute_mapping["Dither2_Frequency_R"] = {} self.attribute_mapping["Dither_Frequency_RW"] = {}
self._Dither2_Frequency_RW = 0 self._LED_R = ((0,),)
self.attribute_mapping["Dither2_Frequency_RW"] = {} self.attribute_mapping["LED_R"] = {}
self._LED0_R = 0 self._LED0_RW = ((0,),)
self.attribute_mapping["LED0_R"] = {} self.attribute_mapping["LED_RW"] = {}
self._LED0_RW = 0 self._Pwr_dig_R = (0,)
self.attribute_mapping["LED0_RW"] = {}
self._Pwr_dig_R = 0
self.attribute_mapping["Pwr_dig_R"] = {} self.attribute_mapping["Pwr_dig_R"] = {}
self._Temperature_R = 0 self._Temperature_R = (0.0,)
self.attribute_mapping["Temperature_R"] = {} self.attribute_mapping["Temperature_R"] = {}
...@@ -266,49 +201,43 @@ class RCUSCC(Device): ...@@ -266,49 +201,43 @@ class RCUSCC(Device):
self.debug_stream("Mapping OPC-UA MP/CP to attributes...") self.debug_stream("Mapping OPC-UA MP/CP to attributes...")
self.attribute_mapping["Attenuator1_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator1_R".format(self.name_space_index, self.RCU)]) # 2020-11-27, thomas
# TODO
self.attribute_mapping["Attenuator1_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator1_RW".format(self.name_space_index, self.RCU)]) # Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Attenuator_R"] = (self.pcc_node.get_child(["{}:RCUs_Attenuator1_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator2_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator3_R".format(self.name_space_index)]))
self.attribute_mapping["Attenuator2_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator2_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator2_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator2_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator3_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator3_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator3_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator3_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Band1_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band1_R".format(self.name_space_index, self.RCU)]) # 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Attenuator_RW"] = (self.pcc_node.get_child(["{}:RCUs_Attenuator1_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator2_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator3_RW".format(self.name_space_index)]))
self.attribute_mapping["Band1_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band1_RW".format(self.name_space_index, self.RCU)]) # 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Band_R"] = (self.pcc_node.get_child(["{}:RCUs_Band1_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band2_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band3_R".format(self.name_space_index)]))
self.attribute_mapping["Band2_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band2_R".format(self.name_space_index, self.RCU)]) # 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Band_RW"] = (self.pcc_node.get_child(["{}:RCUs_Band1_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band2_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band3_RW".format(self.name_space_index)]))
self.attribute_mapping["Band2_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band2_RW".format(self.name_space_index, self.RCU)]) self.attribute_mapping["CLK_PLL_locked_R"] = self.pcc_node.get_child(["{}:CLK_PLL_locked_R".format(self.name_space_index)])
self.attribute_mapping["Band3_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band3_R".format(self.name_space_index, self.RCU)]) # self.attribute_mapping["Dither_Frequency_R"] = self.pcc_node.get_child(["{}:RCUs_Dither_Frequency_R".format(self.name_space_index)])
self.attribute_mapping["Band3_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band3_RW".format(self.name_space_index, self.RCU)]) # self.attribute_mapping["Dither_Frequency_RW"] = self.pcc_node.get_child(["{}:RCUs_Dither_Frequency_RW".format(self.name_space_index)])
# self.attribute_mapping["Dither1_Frequency_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither1_Frequency_R".format(self.name_space_index, self.RCU)]) self.attribute_mapping["LED_R"] = self.pcc_node.get_child(["{}:RCUs_LED0_R".format(self.name_space_index)])
# self.attribute_mapping["Dither1_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither1_Frequency_RW".format(self.name_space_index, self.RCU)]) self.attribute_mapping["LED_RW"] = self.pcc_node.get_child(["{}:RCUs_LED0_RW".format(self.name_space_index)])
# self.attribute_mapping["Dither2_Frequency_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither2_Frequency_R".format(self.name_space_index, self.RCU)]) self.attribute_mapping["Pwr_dig_R"] = self.pcc_node.get_child(["{}:RCUs_Pwr_dig_R".format(self.name_space_index)])
# self.attribute_mapping["Dither2_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither2_Frequency_RW".format(self.name_space_index, self.RCU)]) self.attribute_mapping["Temperature_R"] = self.pcc_node.get_child(["{}:RCUs_Temperature_R".format(self.name_space_index)])
self.attribute_mapping["LED0_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_LED0_R".format(self.name_space_index, self.RCU)]) # self.attribute_mapping["RCU_off"] = self.pcc_node.get_child(["{}:RCUs_RCU_off".format(self.name_space_index)])
self.attribute_mapping["LED0_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_LED0_RW".format(self.name_space_index, self.RCU)]) # self.attribute_mapping["RCU_on"] = self.pcc_node.get_child(["{}:RCUs_RCU_on".format(self.name_space_index)])
self.attribute_mapping["Pwr_dig_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Pwr_dig_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Temperature_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Temperature_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["RCU_off"] = self.pcc_node.get_child(["{}:RCU{:02d}_RCU_off".format(self.name_space_index, self.RCU)])
self.attribute_mapping["RCU_on"] = self.pcc_node.get_child(["{}:RCU{:02d}_RCU_on".format(self.name_space_index, self.RCU)])
self.debug_stream("Mapping OPC-UA MP/CP to attributes done.") self.debug_stream("Mapping OPC-UA MP/CP to attributes done.")
...@@ -343,194 +272,94 @@ class RCUSCC(Device): ...@@ -343,194 +272,94 @@ class RCUSCC(Device):
# ------------------ # ------------------
# Attributes methods # Attributes methods
# ------------------ # ------------------
def read_Attenuator1_R(self): def read_Attenuator_R(self):
# PROTECTED REGION ID(RCUSCC.Attenuator1_R_read) ENABLED START # # PROTECTED REGION ID(RCUSCC.Attenuator_R_read) ENABLED START #
"""Return the Attenuator1_R attribute.""" """Return the Attenuator_R attribute."""
self._Attenuator1_R = self.attribute_mapping["Attenuator1_R"].get_value() self._Attenuator_R = (self.attribute_mapping["Attenuator_R"][0].get_value(), self.attribute_mapping["Attenuator_R"][1].get_value(), self.attribute_mapping["Attenuator_R"][2].get_value())
return self._Attenuator1_R return self._Attenuator_R
# PROTECTED REGION END # // RCUSCC.Attenuator1_R_read # PROTECTED REGION END # // RCUSCC.Attenuator_R_read
def read_Attenuator1_RW(self): def read_Attenuator_RW(self):
# PROTECTED REGION ID(RCUSCC.Attenuator1_RW_read) ENABLED START # # PROTECTED REGION ID(RCUSCC.Attenuator_RW_read) ENABLED START #
"""Return the Attenuator1_R attribute.""" """Return the Attenuator_R attribute."""
self._Attenuator1_RW = self.attribute_mapping["Attenuator1_RW"].get_value() self._Attenuator_RW = (self.attribute_mapping["Attenuator_RW"][0].get_value(), self.attribute_mapping["Attenuator_RW"][1].get_value(), self.attribute_mapping["Attenuator_RW"][2].get_value())
return self._Attenuator1_RW return self._Attenuator_RW
# PROTECTED REGION END # // RCUSCC.Attenuator1_RW_read # PROTECTED REGION END # // RCUSCC.Attenuator_RW_read
def write_Attenuator1_RW(self, value): def write_Attenuator_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Attenuator1_RW_write) ENABLED START # # PROTECTED REGION ID(RCUSCC.Attenuator_RW_write) ENABLED START #
"""Set the Attenuator1_RW attribute.""" """Set the Attenuator_RW attribute."""
self.attribute_mapping["Attenuator1_RW"].set_value(value) self.attribute_mapping["Attenuator_RW"][0].set_value(value[0])
self._Attenuator1_RW = value self.attribute_mapping["Attenuator_RW"][1].set_value(value[1])
# PROTECTED REGION END # // RCUSCC.Attenuator1_RW_write self.attribute_mapping["Attenuator_RW"][2].set_value(value[2])
self._Attenuator_RW = value
def read_Attenuator2_R(self): # PROTECTED REGION END # // RCUSCC.Attenuator_RW_write
# PROTECTED REGION ID(RCUSCC.Attenuator2_R_read) ENABLED START #
"""Return the Attenuator2_R attribute.""" def read_Band_R(self):
self._Attenuator2_R = self.attribute_mapping["Attenuator2_R"].get_value() # PROTECTED REGION ID(RCUSCC.Band_R_read) ENABLED START #
return self._Attenuator2_R """Return the Band_R attribute."""
# PROTECTED REGION END # // RCUSCC.Attenuator2_R_read self._Band_R = (self.attribute_mapping["Band_R"][0].get_value(), self.attribute_mapping["Band_R"][1].get_value(), self.attribute_mapping["Band_R"][2].get_value())
return self._Band_R
def read_Attenuator2_RW(self): # PROTECTED REGION END # // RCUSCC.Band_R_read
# PROTECTED REGION ID(RCUSCC.Attenuator2_RW_read) ENABLED START #
"""Return the Attenuator2_R attribute.""" def read_Band_RW(self):
self._Attenuator2_RW = self.attribute_mapping["Attenuator2_RW"].get_value() # PROTECTED REGION ID(RCUSCC.Band_RW_read) ENABLED START #
return self._Attenuator2_RW """Return the Band_R attribute."""
# PROTECTED REGION END # // RCUSCC.Attenuator2_RW_read self._Band_RW = (self.attribute_mapping["Band_RW"][0].get_value(), self.attribute_mapping["Band_RW"][1].get_value(), self.attribute_mapping["Band_RW"][2].get_value())
return self._Band_RW
def write_Attenuator2_RW(self, value): # PROTECTED REGION END # // RCUSCC.Band_RW_read
# PROTECTED REGION ID(RCUSCC.Attenuator2_RW_write) ENABLED START #
"""Set the Attenuator2_RW attribute.""" def write_Band_RW(self, value):
self.attribute_mapping["Attenuator2_RW"].set_value(value) # PROTECTED REGION ID(RCUSCC.Band_RW_write) ENABLED START #
self._Attenuator2_RW = value """Set the Band_RW attribute."""
# PROTECTED REGION END # // RCUSCC.Attenuator2_RW_write self.attribute_mapping["Band_RW"][0].set_value(value[0])
self.attribute_mapping["Band_RW"][1].set_value(value[1])
def read_Attenuator3_R(self): self.attribute_mapping["Band_RW"][2].set_value(value[2])
# PROTECTED REGION ID(RCUSCC.Attenuator3_R_read) ENABLED START # self._Band_RW = value
"""Return the Attenuator3_R attribute.""" # PROTECTED REGION END # // RCUSCC.Band_RW_write
self._Attenuator3_R = self.attribute_mapping["Attenuator3_R"].get_value()
return self._Attenuator3_R def read_Dither_Frequency_R(self):
# PROTECTED REGION END # // RCUSCC.Attenuator3_R_read # PROTECTED REGION ID(RCUSCC.Dither_Frequency_R_read) ENABLED START #
"""Return the Dither_Frequency_R attribute."""
def read_Attenuator3_RW(self): self._Dither_Frequency_R = (self.attribute_mapping["Dither_Frequency_R"][0].get_value(), self.attribute_mapping["Dither_Frequency_R"][1].get_value())
# PROTECTED REGION ID(RCUSCC.Attenuator3_RW_read) ENABLED START # return self._Dither_Frequency_R
"""Return the Attenuator3_R attribute.""" # PROTECTED REGION END # // RCUSCC.Dither_Frequency_R_read
self._Attenuator3_RW = self.attribute_mapping["Attenuator3_RW"].get_value()
return self._Attenuator3_RW def read_Dither_Frequency_RW(self):
# PROTECTED REGION END # // RCUSCC.Attenuator3_RW_read # PROTECTED REGION ID(RCUSCC.Dither_Frequency_RW_read) ENABLED START #
"""Return the Dither_Frequency_R attribute."""
def write_Attenuator3_RW(self, value): self._Dither_Frequency_RW = (self.attribute_mapping["Dither_Frequency_RW"][0].get_value(), self.attribute_mapping["Dither_Frequency_RW"][1].get_value())
# PROTECTED REGION ID(RCUSCC.Attenuator3_RW_write) ENABLED START # return self._Dither_Frequency_RW
"""Set the Attenuator3_RW attribute.""" # PROTECTED REGION END # // RCUSCC.Dither_Frequency_RW_read
self.attribute_mapping["Attenuator3_RW"].set_value(value)
self._Attenuator3_RW = value def write_Dither_Frequency_RW(self, value):
# PROTECTED REGION END # // RCUSCC.Attenuator3_RW_write # PROTECTED REGION ID(RCUSCC.Dither_Frequency_RW_write) ENABLED START #
"""Set the Dither_Frequency_RW attribute."""
def read_Band1_R(self): self.attribute_mapping["Dither_Frequency_RW"][0].set_value(value[0])
# PROTECTED REGION ID(RCUSCC.Band1_R_read) ENABLED START # self.attribute_mapping["Dither_Frequency_RW"][1].set_value(value[1])
"""Return the Band1_R attribute.""" self._Dither_Frequency_RW = value
self._Band1_R = self.attribute_mapping["Band1_R"].get_value() # PROTECTED REGION END # // RCUSCC.Dither_Frequency_RW_write
return self._Band1_R
# PROTECTED REGION END # // RCUSCC.Band1_R_read def read_LED_R(self):
# PROTECTED REGION ID(RCUSCC.LED_R_read) ENABLED START #
def read_Band1_RW(self): """Return the LED_R attribute."""
# PROTECTED REGION ID(RCUSCC.Band1_RW_read) ENABLED START # self._LED_R = self.attribute_mapping["LED_R"].get_value()
"""Return the Band1_R attribute.""" return self._LED_R
self._Band1_RW = self.attribute_mapping["Band1_RW"].get_value() # PROTECTED REGION END # // RCUSCC.LED_R_read
return self._Band1_RW
# PROTECTED REGION END # // RCUSCC.Band1_RW_read def read_LED_RW(self):
# PROTECTED REGION ID(RCUSCC.LED_RW_read) ENABLED START #
def write_Band1_RW(self, value): """Return the LED_RW attribute."""
# PROTECTED REGION ID(RCUSCC.Band1_RW_write) ENABLED START # self._LED_RW = self.attribute_mapping["LED_RW"].get_value()
"""Set the Band1_RW attribute.""" return self._LED_RW
self.attribute_mapping["Band1_RW"].set_value(value) # PROTECTED REGION END # // RCUSCC.LED_RW_read
self._Band1_RW = value
# PROTECTED REGION END # // RCUSCC.Band1_RW_write def write_LED_RW(self, value):
# PROTECTED REGION ID(RCUSCC.LED_RW_write) ENABLED START #
def read_Band2_R(self): """Set the LED_RW attribute."""
# PROTECTED REGION ID(RCUSCC.Band2_R_read) ENABLED START # self.attribute_mapping["LED_RW"].set_value(value)
"""Return the Band2_R attribute.""" self._LED_RW = value
self._Band2_R = self.attribute_mapping["Band2_R"].get_value() # PROTECTED REGION END # // RCUSCC.LED_RW_write
return self._Band2_R
# PROTECTED REGION END # // RCUSCC.Band2_R_read
def read_Band2_RW(self):
# PROTECTED REGION ID(RCUSCC.Band2_RW_read) ENABLED START #
"""Return the Band2_R attribute."""
self._Band2_RW = self.attribute_mapping["Band2_RW"].get_value()
return self._Band2_RW
# PROTECTED REGION END # // RCUSCC.Band2_RW_read
def write_Band2_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Band2_RW_write) ENABLED START #
"""Set the Band2_RW attribute."""
self.attribute_mapping["Band2_RW"].set_value(value)
self._Band2_RW = value
# PROTECTED REGION END # // RCUSCC.Band2_RW_write
def read_Band3_R(self):
# PROTECTED REGION ID(RCUSCC.Band3_R_read) ENABLED START #
"""Return the Band3_R attribute."""
self._Band3_R = self.attribute_mapping["Band3_R"].get_value()
return self._Band3_R
# PROTECTED REGION END # // RCUSCC.Band3_R_read
def read_Band3_RW(self):
# PROTECTED REGION ID(RCUSCC.Band3_RW_read) ENABLED START #
"""Return the Band3_R attribute."""
self._Band3_RW = self.attribute_mapping["Band3_RW"].get_value()
return self._Band3_RW
# PROTECTED REGION END # // RCUSCC.Band3_RW_read
def write_Band3_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Band3_RW_write) ENABLED START #
"""Set the Band3_RW attribute."""
self.attribute_mapping["Band3_RW"].set_value(value)
self._Band3_RW = value
# PROTECTED REGION END # // RCUSCC.Band3_RW_write
def read_Dither1_Frequency_R(self):
# PROTECTED REGION ID(RCUSCC.Dither1_Frequency_R_read) ENABLED START #
"""Return the Dither1_Frequency_R attribute."""
self._Dither1_Frequency_R = self.attribute_mapping["Dither1_Frequency_R"].get_value()
return self._Dither1_Frequency_R
# PROTECTED REGION END # // RCUSCC.Dither1_Frequency_R_read
def read_Dither1_Frequency_RW(self):
# PROTECTED REGION ID(RCUSCC.Dither1_Frequency_RW_read) ENABLED START #
"""Return the Dither1_Frequency_R attribute."""
self._Dither1_Frequency_RW = self.attribute_mapping["Dither1_Frequency_RW"].get_value()
return self._Dither1_Frequency_RW
# PROTECTED REGION END # // RCUSCC.Dither1_Frequency_RW_read
def write_Dither1_Frequency_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Dither1_Frequency_RW_write) ENABLED START #
"""Set the Dither1_Frequency_RW attribute."""
self.attribute_mapping["Dither1_Frequency_RW"].set_value(value)
self._Dither1_Frequency_RW = value
# PROTECTED REGION END # // RCUSCC.Dither1_Frequency_RW_write
def read_Dither2_Frequency_R(self):
# PROTECTED REGION ID(RCUSCC.Dither2_Frequency_R_read) ENABLED START #
"""Return the Dither2_Frequency_R attribute."""
self._Dither2_Frequency_R = self.attribute_mapping["Dither2_Frequency_R"].get_value()
return self._Dither2_Frequency_R
# PROTECTED REGION END # // RCUSCC.Dither2_Frequency_R_read
def read_Dither2_Frequency_RW(self):
# PROTECTED REGION ID(RCUSCC.Dither2_Frequency_RW_read) ENABLED START #
"""Return the Dither2_Frequency_R attribute."""
self._Dither2_Frequency_RW = self.attribute_mapping["Dither2_Frequency_RW"].get_value()
return self._Dither2_Frequency_RW
# PROTECTED REGION END # // RCUSCC.Dither2_Frequency_RW_read
def write_Dither2_Frequency_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Dither2_Frequency_RW_write) ENABLED START #
"""Set the Dither2_Frequency_RW attribute."""
self.attribute_mapping["Dither2_Frequency_RW"].set_value(value)
self._Dither2_Frequency_RW = value
# PROTECTED REGION END # // RCUSCC.Dither2_Frequency_RW_write
def read_LED0_R(self):
# PROTECTED REGION ID(RCUSCC.LED0_R_read) ENABLED START #
"""Return the LED0_R attribute."""
self._LED0_R = self.attribute_mapping["LED0_R"].get_value()
return self._LED0_R
# PROTECTED REGION END # // RCUSCC.LED0_R_read
def read_LED0_RW(self):
# PROTECTED REGION ID(RCUSCC.LED0_RW_read) ENABLED START #
"""Return the LED0_RW attribute."""
self._LED0_RW = self.attribute_mapping["LED0_RW"].get_value()
return self._LED0_RW
# PROTECTED REGION END # // RCUSCC.LED0_RW_read
def write_LED0_RW(self, value):
# PROTECTED REGION ID(RCUSCC.LED0_RW_write) ENABLED START #
"""Set the LED0_RW attribute."""
self.attribute_mapping["LED0_RW"].set_value(value)
self._LED0_RW = value
# PROTECTED REGION END # // RCUSCC.LED0_RW_write
def read_Pwr_dig_R(self): def read_Pwr_dig_R(self):
# PROTECTED REGION ID(RCUSCC.Pwr_dig_R_read) ENABLED START # # PROTECTED REGION ID(RCUSCC.Pwr_dig_R_read) ENABLED START #
...@@ -546,6 +375,13 @@ class RCUSCC(Device): ...@@ -546,6 +375,13 @@ class RCUSCC(Device):
return self._Temperature_R return self._Temperature_R
# PROTECTED REGION END # // RCUSCC.Temperature_R_read # PROTECTED REGION END # // RCUSCC.Temperature_R_read
def read_CLK_PLL_locked_R(self):
# PROTECTED REGION ID(RCUSCC.CLK_PLL_locked_R_read) ENABLED START #
"""Return the CLK_PLL_locked_R attribute."""
self._CLK_PLL_locked_R = self.attribute_mapping["CLK_PLL_locked_R"].get_value()
return self._CLK_PLL_locked_R
# PROTECTED REGION END # // RCUSCC.CLK_PLL_locked_R_read
# -------- # --------
# Commands # Commands
...@@ -596,7 +432,7 @@ class RCUSCC(Device): ...@@ -596,7 +432,7 @@ class RCUSCC(Device):
:return:None :return:None
""" """
self.attribute_mapping["RCU_off"]() # self.attribute_mapping["RCU_off"]()
# PROTECTED REGION END # // RCUSCC.RCU_off # PROTECTED REGION END # // RCUSCC.RCU_off
@command( @command(
...@@ -608,7 +444,7 @@ class RCUSCC(Device): ...@@ -608,7 +444,7 @@ class RCUSCC(Device):
:return:None :return:None
""" """
self.attribute_mapping["RCU_on"]() # self.attribute_mapping["RCU_on"]()
# PROTECTED REGION END # // RCUSCC.RCU_on # PROTECTED REGION END # // RCUSCC.RCU_on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment