Skip to content

Reorganize common.py and create HGCROC I2C wrapper

Artur Lobanov requested to merge reorg_roc_i2c into HGCROCv2
  1. Reorganizing the common.py file: moving the FPGA-related functions to fpga_control.py and ROC I2C-related to roc_i2.py.

  2. In parallel, created a wrapper for the HGCROC I2C parameters. This abstraction in hgcroc_i2c_wrapper.py allows accessings parameters by set_roc_parameter and read_roc_parameter functions. The arguments are the subblock name, "index" (half or channel) and parameter name.

  3. Coupled to the above, created a simple GUI roc_sc_gui.py that allows reading and setting individual parameters using a drop-down menu.

The MR is ready to merge. I just need to clean-up / port the existing scripts.

Edited by Artur Lobanov

Merge request reports