knx
ETS configurable knx-stack
association_table_object.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "table_object.h"
4 
6 {
7  public:
9 
10  const uint8_t* restore(const uint8_t* buffer) override;
11 
12  int32_t translateAsap(uint16_t asap);
13  int32_t nextAsap(uint16_t tsap, uint16_t& startIdx);
14 
15  protected:
16  void beforeStateChange(LoadState& newState) override;
17 
18  private:
19  uint16_t entryCount();
20  uint16_t getTSAP(uint16_t idx);
21  uint16_t getASAP(uint16_t idx);
22  void prepareBinarySearch();
23  uint16_t* _tableData = 0;
24  uint16_t sortedEntryCount;
25 };
int32_t translateAsap(uint16_t asap)
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
void beforeStateChange(LoadState &newState) override
This method is called before the interface object enters a new LoadState.
int32_t nextAsap(uint16_t tsap, uint16_t &startIdx)
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