Class ExternalProperty
Defined in File props.h
Inheritance Relationships
Base Type
public DeviceProperty
(Class DeviceProperty)
Class Documentation
-
class ExternalProperty : public DeviceProperty
Property backed by an external variable.
References an external variable for storage, allowing the property to reflect changes to the external variable.
Public Functions
-
ExternalProperty(uint32_t *externalValue, PropertyAccess access = PropertyAccess::ReadOnly)
Constructor.
- Parameters:
externalValue – Pointer to external variable
access – Access control (default: ReadOnly)
-
virtual uint32_t get_value() const override
Get the external value.
- Returns:
Current value of the external variable
-
virtual void set_value(uint32_t new_value) override
Set the external value.
- Parameters:
new_value – New value to set in the external variable
-
ExternalProperty(uint32_t *externalValue, PropertyAccess access = PropertyAccess::ReadOnly)