26 return ntohs(_groupAddresses[0]);
34 return ntohs(_groupAddresses[tsap]);
42 uint16_t low, high, i;
49 uint16_t ga = ntohs(_groupAddresses[i]);
62 for (uint16_t i = 1; i <= size; i++)
63 if (ntohs(_groupAddresses[i]) == addr)
70 #pragma region SaveRestore
76 _groupAddresses = (uint16_t*)
data();
95 _groupAddresses = (uint16_t*)
data();
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.
This class provides common functionality for interface objects that are configured by ETS with MemorW...
void initializeProperties(size_t propertiesSize, Property **properties) override
Intializes the Property-array the the supplied values.
LoadState loadState()
This method returns the LoadState of the interface object.
uint8_t * data()
returns the internal data of the interface object.
virtual void beforeStateChange(LoadState &newState)
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.
@ OT_ADDR_TABLE
Address table object.
@ PID_OBJECT_TYPE
Interface Object Type independent Properties.
@ PDT_UNSIGNED_INT
length: 2