mirror of
https://github.com/thelsing/knx.git
synced 2024-10-20 20:07:45 +02:00
20 lines
547 B
C
20 lines
547 B
C
|
#pragma once
|
||
|
|
||
|
#include "table_object.h"
|
||
|
|
||
|
class AddressTableObject: public TableObject
|
||
|
{
|
||
|
public:
|
||
|
AddressTableObject(uint8_t* memoryReference);
|
||
|
void readProperty(PropertyID id, uint32_t start, uint32_t count, uint8_t* data);
|
||
|
uint16_t entryCount();
|
||
|
uint16_t getGa(uint16_t tsap);
|
||
|
uint16_t getTsap(uint16_t ga);
|
||
|
uint8_t* save(uint8_t* buffer);
|
||
|
uint8_t* restore(uint8_t* buffer);
|
||
|
bool contains(uint16_t addr);
|
||
|
protected:
|
||
|
virtual void beforeStateChange(LoadState& newState);
|
||
|
private:
|
||
|
uint16_t* _groupAddresses;
|
||
|
};
|