Class Property¶
Defined in File property.h
Inheritance Relationships¶
Base Type¶
public SaveRestore
(Class SaveRestore)
Derived Types¶
public CallbackProperty< T >
(Template Class CallbackProperty)public DataProperty
(Class DataProperty)public FunctionProperty< T >
(Template Class FunctionProperty)
Class Documentation¶
-
class Property : public SaveRestore¶
Subclassed by CallbackProperty< T >, DataProperty, FunctionProperty< T >
Public Functions
-
Property(PropertyID id, bool writeEnable, PropertyDataType type, uint16_t maxElements, uint8_t access)¶
-
virtual ~Property()¶
-
PropertyID Id() const¶
-
bool WriteEnable() const¶
-
PropertyDataType Type() const¶
-
uint16_t MaxElements() const¶
-
uint8_t Access() const¶
-
uint8_t ElementSize() const¶
-
virtual uint8_t read(uint16_t start, uint8_t count, uint8_t *data) const = 0¶
-
virtual uint8_t write(uint16_t start, uint8_t count, const uint8_t *data) = 0¶
-
virtual void command(uint8_t *data, uint8_t length, uint8_t *resultData, uint8_t &resultLength)¶
-
virtual void state(uint8_t *data, uint8_t length, uint8_t *resultData, uint8_t &resultLength)¶
-
uint8_t read(uint8_t &value) const¶
-
uint8_t read(uint16_t &value) const¶
-
uint8_t read(uint32_t &value) const¶
-
uint8_t read(uint8_t *value) const¶
-
uint8_t write(uint8_t value)¶
-
uint8_t write(uint16_t value)¶
-
uint8_t write(uint16_t position, uint16_t value)¶
-
uint8_t write(uint32_t value)¶
-
uint8_t write(const uint8_t *value)¶
Protected Attributes
-
PropertyID _id¶
-
bool _writeEnable¶
-
PropertyDataType _type¶
-
uint16_t _maxElements¶
-
uint8_t _access¶
-
Property(PropertyID id, bool writeEnable, PropertyDataType type, uint16_t maxElements, uint8_t access)¶