Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » access enums of a proxy
access enums of a proxy [message #723878] Fri, 09 September 2011 18:46
linkinsebas is currently offline linkinsebasFriend
Messages: 22
Registered: April 2011
Junior Member
Hello everybody.

Is it possible to access the enumerations defined within an interface from a module that uses this interface as proxy?

For example, if I have

interface IModuleWithEnum{

    /* Enumeration */
    enum State{
        State_0 = 0x00,
        State_1 = 0x01,
        State_2 = 0x02,
        State_3 = 0x03

    /* Function definitions... */
    Void fxn1();


module ModuleWithEnum inherits IModuleWithEnum{

I can access the elements of the enumeration from ModuleA.c using ModuleA_State_0 without any problems.

But then I define another module:

module ModuleWithProxy {
    proxy PModuleWithEnum inherits IModuleWithEnum;
    /* functions... */

and then I try to access the enumeration from the functions defined in ModuleWithProxy.c using ModuleWithProxy_PModuleWithEnum_State_0. But when I try to build the package, file ModuleWithProxy.c does not compile saying that "identifier ModuleWithProxy_PModuleWithEnum_State_0 is undefined" (However, accesses to ModuleWithProxy_PModuleWithEnum_fxn1() are recognized).

Is what I want to do possible? if so, how is it done? or am I just missing something trivial?
Previous Topic:Optimizations for speed
Next Topic:release script
Goto Forum:

Current Time: Sat Sep 23 12:21:10 GMT 2023

Powered by FUDForum. Page generated in 0.01845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top