Reorganize common.py and create HGCROC I2C wrapper
-
Reorganizing the
common.py
file: moving the FPGA-related functions tofpga_control.py
and ROC I2C-related toroc_i2.py
. -
In parallel, created a wrapper for the HGCROC I2C parameters. This abstraction in
hgcroc_i2c_wrapper.py
allows accessings parameters byset_roc_parameter
andread_roc_parameter
functions. The arguments are the subblock name, "index" (half or channel) and parameter name. -
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