Definition visibility problem [message #1715410] |
Mon, 23 November 2015 11:57 |
Muhammad Uzair Messages: 35 Registered: November 2015 |
Member |
|
|
Hi,
I am having problem is the visibility of enumerations.
Following enumeration is defined in an ASN file:
AccessStratumRelease ::= ENUMERATED { rel8, rel9, rel10, rel11, rel12, spare3, spare2, spare1, ...}
In another module, in which this ASN file is imported, an instance of this enumeration is defined
AccessStratumRelease p_ReleaseIndicator_UE
Afterwards, the value of this 'p_ReleaseIndicator_UE' is checked using statement
if (not match(p_ReleaseIndicator_UE, complement(rel8)))
Upon compiling, I am getting this error
"There is no visible definition with name `rel8' in module `module name'"
I have tried passing this enum member as AccessStratumRelease :rel8, but that doesn't help either. I need your help in resolving this error.
Best Regards,
Muhammad Uzair
|
|
|
Re: Definition visibility problem [message #1715430 is a reply to message #1715410] |
Mon, 23 November 2015 14:17 |
|
Hi Muhammad,
the syntax for inline templates is
match(<value>, <type>:<template>)
so you need to use:
if (not match(p_ReleaseIndicator_UE, AccessStratumRelease : complement(rel8)))
Is this what you've tried?
Best regards
Elemer
|
|
|
|
Powered by
FUDForum. Page generated in 0.03804 seconds