Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » usage of PRESENCE (how to descripe && in PRESENCE)
usage of PRESENCE [message #1853021] Wed, 15 June 2022 03:48 Go to next message
Eclipse UserFriend
hello,

as the struct
type record test_presence
{
    B1_Type    f1,
    B3_Type    f2,
    B4_Type    f3    optional,
};


if add
variant (f3) "PRESENCE({f1 = '0'B, f2 = '000'B})"

means if f1 = '1'B or f2 = '001'B, then f3 is present


But now I hope f1 = '0'B or f2 = '000'B, then f3 is not presence,
what should I do?

I donot find the usage in referenceGuide.pdf

Thanks a lot!

[Updated on: Wed, 15 June 2022 03:58] by Moderator

Re: usage of PRESENCE [message #1853022 is a reply to message #1853021] Wed, 15 June 2022 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, but "and" is not supported by the RAW encoder.

Maybe the reorganization of the data structure helps to resolve the issue.

Can you share the original problem?
Re: usage of PRESENCE [message #1853025 is a reply to message #1853022] Wed, 15 June 2022 04:53 Go to previous messageGo to next message
Eclipse UserFriend
thanks for your reply

as the image, I hope descripe the
gSM400AssociatedRadioCapability
field

it is a 3gpp protocol
  • Attachment: 1.png
    (Size: 1.18MB, Downloaded 136 times)

[Updated on: Wed, 15 June 2022 04:55] by Moderator

Re: usage of PRESENCE [message #1853026 is a reply to message #1853025] Wed, 15 June 2022 05:08 Go to previous messageGo to next message
Eclipse UserFriend
According to the comment the gSM400AssociatedRadioCapability present if the gSM400BandsSupported is not 00

try this:

variant (gSM400AssociatedRadioCapability) "PRESENCE({gSM400BandsSupported = '01'B, gSM400BandsSupported = '10'B,  gSM400BandsSupported = '11'B})"


If the maskBit7 is 0, then the gSM400AssociatedRadioCapability is not present.
Re: usage of PRESENCE [message #1853027 is a reply to message #1853026] Wed, 15 June 2022 05:17 Go to previous message
Eclipse UserFriend
THANKS a lot

But if maskBit7 and gSM400AssociatedRadioCapability are not related, Is there a solution to resolve it?
Previous Topic:Ghost field in record to help RAW encoder choose union member
Next Topic:usage of LENGTHTO and UNIT(elements)
Goto Forum:
  


Current Time: Sat Aug 30 23:21:17 EDT 2025

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

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

Back to the top