Closed
Description
Right now, this class uses two uint32_t variables to store its address and all accesses are based on msb/lsb too. However, C (also on AVR) supports the uint64_t (unsigned long long) type, which could hold the entire address in a single variable. Any reason for not using this?
Adding this now should be possible without breaking compatibility:
- Add a constructor that takes a uint64_t
- Add uint64_t get() and void set(uint64_t) methods
- Leave all current methods in place
It might make sense to add a uint8_t get(uint8_t) method as well, to retrieve a single byte of the address (which allows simplifying ZBTxRequest::getFrameData and Tx64Request::getFrameData).
Metadata
Metadata
Assignees
Labels
No labels