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

#include <function_property.h>

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

Public Member Functions

 FunctionProperty (T *io, PropertyID id, void(*commandCallback)(T *, uint8_t *, uint8_t, uint8_t *, uint8_t &), void(*stateCallback)(T *, uint8_t *, uint8_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
 
void command (uint8_t *data, uint8_t length, uint8_t *resultData, uint8_t &resultLength) override
 
void state (uint8_t *data, uint8_t length, uint8_t *resultData, uint8_t &resultLength) 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
 
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 FunctionProperty< T >

Definition at line 7 of file function_property.h.

Constructor & Destructor Documentation

◆ FunctionProperty()

template<class T >
FunctionProperty< T >::FunctionProperty ( T *  io,
PropertyID  id,
void(*)(T *, uint8_t *, uint8_t, uint8_t *, uint8_t &)  commandCallback,
void(*)(T *, uint8_t *, uint8_t, uint8_t *, uint8_t &)  stateCallback 
)
inline

Definition at line 10 of file function_property.h.

Member Function Documentation

◆ command()

template<class T >
void FunctionProperty< T >::command ( uint8_t *  data,
uint8_t  length,
uint8_t *  resultData,
uint8_t &  resultLength 
)
inlineoverridevirtual

Reimplemented from Property.

Definition at line 27 of file function_property.h.

◆ read()

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

Implements Property.

Definition at line 17 of file function_property.h.

◆ state()

template<class T >
void FunctionProperty< T >::state ( uint8_t *  data,
uint8_t  length,
uint8_t *  resultData,
uint8_t &  resultLength 
)
inlineoverridevirtual

Reimplemented from Property.

Definition at line 38 of file function_property.h.

◆ write()

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

Implements Property.

Definition at line 22 of file function_property.h.


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