How to use RiCGEN_PORT_I and OUT_PORT macro in Rhapsody C
How do you use RiCGEN_PORT_I and OUT_PORT macro to call operations and events on the other side of interface via ports?
In Rhapsody C, if a primitive operation is added to a port that has events passed through it, you may come across "outbound is not a member" error reported on event code generation. In such case, you need to use RiCGEN_PORT_I instead of RiCGEN_PORT macro. Furthermore, use of RiCGEN_PORT_I and OUT_PORT macro is not clear to new users.
In the example below, Block1 uses the code below (*1) in order to call ev() and primitiveOp1() provided by Block2 through the link Port-Port1:
For non-rapid ports, you must use the macro RiCGEN_PORT_I macro (not RiCGEN_PORT) in order to generate events on the other side of the interface.
All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
More support for:
Software version: 7.5, 188.8.131.52, 7.5.1, 184.108.40.206, 7.5.2, 220.127.116.11, 7.5.3, 18.104.22.168, 22.214.171.124, 126.96.36.199, 7.6, 188.8.131.52, 7.6.1, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.1
Operating system(s): Linux, Windows
Reference #: 1678130
Modified date: 14 July 2014