The ACI has support for retrieving values for *single members* of a struct
property in their primitive type, but not *all* members in their primitive
type. Only all members as a string representation of the entire property.
The string can then be manually parsed. One example of such usage is here:
https://gitlab.com/opencpi/opencpi/-/blob/develop/projects/assets/hdl/cards/fmcomms_2_3_rx.rcc/include/worker_prop_parsers_ad9361_config_proxy.h#L144
From your description it sounds like your property is volatile, for which
your concern of consecutive reads is valid. If the property is not volatile
or readable, then this concern would not entirely be valid, but would
certainly have other considerations.
---------- Forwarded message ---------
From: Brian Padalino <bpadalino_at_gmail.com>
Date: Fri, Apr 24, 2020 at 5:54 PM
Subject: [Discuss OpenCPI] Accessing Complex Properties (struct) of A Worker
To: <discuss_at_lists.opencpi.org>
I have an application where multiple items need to be read out at the same
time for a single property. They are intimately related to each other. So
I have a structure property with multiple members. I have a readsync setup
so that I can set all the members at once based on some internal states.
But it's very important that they all be updated at the same time.
Multiple reads are not useful.
I saw section 7.1.7.1 of the Application Development guide:
https://opencpi.github.io/OpenCPI_Application_Development.pdf
But it's unclear how to get all the values of the struct out at once. Is
this possible? Am I just reading that document incorrectly?
Thanks,
Brian
Received on Sat Apr 25 2020 - 00:41:14 CDT