15def mspec(inst, plugin, conn_refs):
17 Helper function to create Module Specification objects
21 :param plugin: Appfwk Module Plugin name
23 :param cinfos: List of dunedaq.iomanager.ConnectionRef objects
26 :returns: A constructed ModSpec object
27 :rtype: dunedaq.appfwk.app.ModSpec
29 return app.ModSpec(inst=inst, plugin=plugin,
31 conn_refs=app.ConnectionReferences_t(conn_refs)
71def mrccmd(cmdid, instate, outstate, mods):
73 Helper function to create appfwk's Commands addressed to modules.
75 :param cmdid: The coommand id
77 :param instate: The state before command execution
79 :param outstate: The state after command execution
81 :param mods: List of module name/data structures
84 :returns: A constructed Command object
85 :rtype: dunedaq.rcif.cmd.RCCommand
87 return rccmd.RCCommand(
89 entry_state=rccmd.State(instate),
90 exit_state=rccmd.State(outstate),
92 modules=cmd.AddressedCmds(