knx
ETS configurable knx-stack
address_table_object.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "table_object.h"
13 {
14  public:
20  AddressTableObject(Memory& memory);
21  const uint8_t* restore(const uint8_t* buffer) override;
22 
26  uint16_t entryCount();
34  uint16_t getGroupAddress(uint16_t tsap);
42  uint16_t getTsap(uint16_t groupAddress);
50  bool contains(uint16_t groupAddress);
51 
52  protected:
53  void beforeStateChange(LoadState& newState) override;
54 
55  private:
56  uint16_t* _groupAddresses = 0;
57 };
This class represents the group address table.
uint16_t getGroupAddress(uint16_t tsap)
Get the group address mapped to a TSAP.
bool contains(uint16_t groupAddress)
Check if the address table contains a group address.
uint16_t getTsap(uint16_t groupAddress)
Get the TSAP mapped to a group address.
AddressTableObject(Memory &memory)
The constructor.
void beforeStateChange(LoadState &newState) override
This method is called before the interface object enters a new LoadState.
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
uint16_t entryCount()
returns the number of group addresses of the object.
Definition: memory.h:37
This class provides common functionality for interface objects that are configured by ETS with MemorW...
Definition: table_object.h:13
LoadState
Definition: property.h:198