knx
ETS configurable knx-stack
CallbackProperty< T > Class Template Reference

#include <callback_property.h>

Inheritance diagram for CallbackProperty< T >:
[legend]
Collaboration diagram for CallbackProperty< T >:
[legend]

Public Member Functions

 CallbackProperty (T *io, PropertyID id, bool writeEnable, PropertyDataType type, uint16_t maxElements, uint8_t access, uint8_t(*readCallback)(T *, uint16_t, uint8_t, uint8_t *), uint8_t(*writeCallback)(T *, uint16_t, uint8_t, const uint8_t *))
 
 CallbackProperty (T *io, PropertyID id, bool writeEnable, PropertyDataType type, uint16_t maxElements, uint8_t access, uint8_t(*readCallback)(T *, uint16_t, uint8_t, uint8_t *))
 
uint8_t read (uint16_t start, uint8_t count, uint8_t *data) const override
 
uint8_t write (uint16_t start, uint8_t count, const uint8_t *data) override
 
- Public Member Functions inherited from Property
 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 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)
 
- Public Member Functions inherited from SaveRestore
virtual uint8_t * save (uint8_t *buffer)
 This method is called when the object should save its state to the buffer. More...
 
virtual const uint8_t * restore (const uint8_t *buffer)
 This method is called when the object should restore its state from the buffer. More...
 
virtual uint16_t saveSize ()
 

Additional Inherited Members

- Protected Attributes inherited from Property
PropertyID _id
 
bool _writeEnable
 
PropertyDataType _type
 
uint16_t _maxElements
 
uint8_t _access
 

Detailed Description

template<class T>
class CallbackProperty< T >

Definition at line 7 of file callback_property.h.

Constructor & Destructor Documentation

◆ CallbackProperty() [1/2]

template<class T >
CallbackProperty< T >::CallbackProperty ( T *  io,
PropertyID  id,
bool  writeEnable,
PropertyDataType  type,
uint16_t  maxElements,
uint8_t  access,
uint8_t(*)(T *, uint16_t, uint8_t, uint8_t *)  readCallback,
uint8_t(*)(T *, uint16_t, uint8_t, const uint8_t *)  writeCallback 
)
inline

Definition at line 10 of file callback_property.h.

◆ CallbackProperty() [2/2]

template<class T >
CallbackProperty< T >::CallbackProperty ( T *  io,
PropertyID  id,
bool  writeEnable,
PropertyDataType  type,
uint16_t  maxElements,
uint8_t  access,
uint8_t(*)(T *, uint16_t, uint8_t, uint8_t *)  readCallback 
)
inline

Definition at line 16 of file callback_property.h.

Member Function Documentation

◆ read()

template<class T >
uint8_t CallbackProperty< T >::read ( uint16_t  start,
uint8_t  count,
uint8_t *  data 
) const
inlineoverridevirtual

Implements Property.

Definition at line 21 of file callback_property.h.

◆ write()

template<class T >
uint8_t CallbackProperty< T >::write ( uint16_t  start,
uint8_t  count,
const uint8_t *  data 
)
inlineoverridevirtual

Implements Property.

Definition at line 28 of file callback_property.h.


The documentation for this class was generated from the following file: