Add Artix TTC configuration command
Since the Artix TTC master has been used in previous test beams, we should add a corresponding configuration command in preparation for the test beams.
I think we'll need two parameters: clockSource
& dataSource
(both strings: external
/ internal
)
The configuration procedure can be found here: https://gitlab.cern.ch/p2-xware/software/serenity-toolbox/-/blob/master/python/pkg/serenity/cmds/ttc.py?ref_type=heads#L44 . Key lines:
controller = ArtixTTCController(lHW)
lClkLocked = controller.reset(False if clksrc == 'internal' else True, False if data_src == 'internal' else True)
I'd also suggest throwing an error at the end of the command if checkStatus
returns false.