656 views
in System Integration by
Hello,

I have a device class in my EmWi project which includes lots of device properties.  These are updated by data from the device hardware (e.g. from external memory) in my C code.  I wanted to construct an intrinsic which would represent my hardware during prototyping and also when compiling for Windows.  Is it possible for the intrinsic code to update the properties in this device class in a similar way that my C code does now please?

Thanks,

Jonathan

1 Answer

0 votes
by

Hello Jonathan,

compared with the code in the target system, Intrinsics are limited. The intrinsic can neither access Chora objects existing in the Prototyping environment nor invoke functionality implemented in your project. The communication with Intrinsics is always 'one-way' -> the GUI application invokes a function implemented in the Intrinsics module to query a data value or to perform some operation within the Intrinsics module.

For your application case you would need to provide in the Intrinsics Module functions for all data values. Then the functions can be invoked from the device class. In other words the device class queries the data actively. To not interfere with the code implemented for the target system, you can derive for this purpose a new variant of the device class and ensure that this variant is used during prototyping only as described in the section Adapt Device Interfaces for Prototyping.

I hope it helps you further.

Best regards

Paul Banach

by
Hello Paul,

Thanks for your quick reply - I think that I understand the problem better now.

Best regards,

Jonathan

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...