mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 23:38:06 -06:00
52 lines
2.2 KiB
XML
52 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?oxygen RNGSchema="file:../xml/ISF_Component_Schema.rnc" type="compact"?>
|
|
|
|
<!-- Note: sync attribute can be sync, async, or guarded. Only for input />
|
|
Note: priority attribute can be high, medium, low or interrupt.
|
|
Only valid for active components input.
|
|
Note kind attribute of component can be ether active or passive.
|
|
-->
|
|
<component name="TestCommand" kind="active" namespace="AcTest">
|
|
<import_port_type>Autocoders/Python/test/command_string/TestPortAi.xml</import_port_type>
|
|
<import_port_type>Fw/Cmd/CmdPortAi.xml</import_port_type>
|
|
<import_port_type>Fw/Cmd/CmdRegPortAi.xml</import_port_type>
|
|
<import_port_type>Fw/Cmd/CmdResponsePortAi.xml</import_port_type>
|
|
|
|
<comment>A component with a single command</comment>
|
|
<commands>
|
|
<!-- Input test command -->
|
|
<command kind="async" opcode="0x100" mnemonic="TEST_CMD_1" >
|
|
<comment>
|
|
A test command
|
|
</comment>
|
|
<args>
|
|
<arg name="arg1" type="I32">
|
|
<comment>The I32 command argument</comment>
|
|
</arg>
|
|
<arg name="arg2" type="string" size="20">
|
|
<comment>The string argument</comment>
|
|
</arg>
|
|
<arg name="arg3" type="ENUM">
|
|
<enum name="SomeEnum">
|
|
<item name="MEMB1"/>
|
|
<item name="MEMB2"/>
|
|
<item name="MEMB3" value="7" comment="This member is important"/>
|
|
<item name="MEMB4" value="15"/>
|
|
</enum>
|
|
<comment>The ENUM argument</comment>
|
|
</arg>
|
|
</args>
|
|
</command>
|
|
</commands>
|
|
<ports>
|
|
<port name="CmdDisp" kind="input" data_type="Fw::Cmd" max_number="1" role="Cmd"/>
|
|
<port name="CmdReg" kind="output" data_type="Fw::CmdReg" max_number="1" role="CmdRegistration"/>
|
|
<port name="CmdStatus" kind="output" data_type="Fw::CmdResponse" max_number="1" role="CmdResponse"/>
|
|
<port name="aport" data_type="Another::Test" kind="async_input" >
|
|
<comment>
|
|
A test port
|
|
</comment>
|
|
</port>
|
|
</ports>
|
|
</component>
|