Commit d6b38a63 authored by Andrey Filippov's avatar Andrey Filippov

allowed reading compressor control register

parent 9a7406b4
...@@ -501,7 +501,7 @@ class X393ExportC(object): ...@@ -501,7 +501,7 @@ class X393ExportC(object):
frmt_spcs = frmt_spcs) frmt_spcs = frmt_spcs)
stypedefs += self.get_typedef32(comment = "Compressor mode control", stypedefs += self.get_typedef32(comment = "Compressor mode control",
data = self._enc_cmprs_mode(), data = self._enc_cmprs_mode(),
name = "x393_cmprs_mode", typ="wo", name = "x393_cmprs_mode", typ="rw", # to read back last written
frmt_spcs = frmt_spcs) frmt_spcs = frmt_spcs)
stypedefs += self.get_typedef32(comment = "Compressor coring mode (table number)", stypedefs += self.get_typedef32(comment = "Compressor coring mode (table number)",
data = self._enc_cmprs_coring_sel(), data = self._enc_cmprs_coring_sel(),
...@@ -947,7 +947,7 @@ class X393ExportC(object): ...@@ -947,7 +947,7 @@ class X393ExportC(object):
c = "cmprs_chn" c = "cmprs_chn"
sdefines +=[ sdefines +=[
(('Compressor control',)), (('Compressor control',)),
(("X393_CMPRS_CONTROL_REG", c, vrlg.CMPRS_CONTROL_REG + ba, ia, z3, "x393_cmprs_mode", "wo", "Program compressor channel operation mode")), (("X393_CMPRS_CONTROL_REG", c, vrlg.CMPRS_CONTROL_REG + ba, ia, z3, "x393_cmprs_mode", "rw", "Program compressor channel operation mode")),
(("X393_CMPRS_STATUS", c, vrlg.CMPRS_STATUS_CNTRL + ba, ia, z3, "x393_status_ctrl", "rw", "Setup compressor status report mode")), (("X393_CMPRS_STATUS", c, vrlg.CMPRS_STATUS_CNTRL + ba, ia, z3, "x393_status_ctrl", "rw", "Setup compressor status report mode")),
(("X393_CMPRS_FORMAT", c, vrlg.CMPRS_FORMAT + ba, ia, z3, "x393_cmprs_frame_format", "rw", "Compressor frame format")), (("X393_CMPRS_FORMAT", c, vrlg.CMPRS_FORMAT + ba, ia, z3, "x393_cmprs_frame_format", "rw", "Compressor frame format")),
(("X393_CMPRS_COLOR_SATURATION", c, vrlg.CMPRS_COLOR_SATURATION + ba, ia, z3, "x393_cmprs_colorsat", "rw", "Compressor color saturation")), (("X393_CMPRS_COLOR_SATURATION", c, vrlg.CMPRS_COLOR_SATURATION + ba, ia, z3, "x393_cmprs_colorsat", "rw", "Compressor color saturation")),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment