27 DEVICE: uhal device identifier
28 IDS: id(s) of the target endpoint(s).
31 lDevice = obj.mConnectionManager.getDevice(str(device))
33 lDevice.setTimeoutPeriod(obj.mTimeout)
36 echo(
'Created IRIG device')
37 lTopDesign = lDevice.getNode(
'')
38 lBoardInfo = toolbox.readSubNodes(lDevice.getNode(
'io.config'),
False)
41 if lBoardInfo[
'board_type'].value()
in kLibrarySupportedBoards
and lBoardInfo[
'design_type'].value()
in kLibrarySupportedDesigns:
42 lTopDesign.validate_firmware_version()
44 echo(lDevice.getNode(
'io').get_hardware_info())
46 secho(
"Failed to retrieve hardware information! I2C issue? Initial board reset needed?", fg=
'yellow')
48 secho(
"Error: {}".format(e), fg=
'red')
51 obj.mTopDesign = lDevice.getNode(
'')
52 obj.mIRIG = lDevice.getNode(
'irig_time_source')
57@irig.command('status')