Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ea2702bf879294cc09137c3c4e3a2465588a451d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!--  generated by featurizer  -->
<p>A PortClass allows a specifc implementation of a port class of a protocol</p>
<pre><code class=room customHighlighted><span class=comment>// This example uses the port class interface provided by the c code generator
</span><span class=keyword>ProtocolClass</span> PingPong {
	<span class=keyword>incoming</span> {
		<span class=keyword>Message</span> ping(uint8)
	}
	<span class=keyword>outgoing</span> {
		<span class=keyword>Message</span> pong(uint8)
	}
	<span class=keyword>regular</span> <span class=keyword>PortClass</span> {
		<span class=comment>//...
</span>	}
	<span class=keyword>conjugated</span> <span class=keyword>PortClass</span> {
		<span class=comment>// ...
</span>	}
}
</code></pre>

Back to the top