8 #define LEN_KNX_SERIAL 6
15 uint8_t serialNumber[] = {0x00, 0xFA, 0x01, 0x02, 0x03, 0x04};
16 uint8_t
hardwareType[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
23 [](
DeviceObject * io, uint16_t start, uint8_t count, uint8_t* data) -> uint8_t
27 uint16_t currentNoOfElements = 1;
40 [](
DeviceObject * io, uint16_t start, uint8_t count, uint8_t* data) -> uint8_t
44 uint16_t currentNoOfElements = 1;
52 [](
DeviceObject * io, uint16_t start, uint8_t count,
const uint8_t* data) -> uint8_t
62 [](
DeviceObject * io, uint16_t start, uint8_t count, uint8_t* data) -> uint8_t
66 uint16_t currentNoOfElements = 1;
71 *data = ((io->_ownAddress >> 8) & 0xff);
76 [](
DeviceObject * io, uint16_t start, uint8_t count, uint8_t* data) -> uint8_t
80 uint16_t currentNoOfElements = 1;
85 *data = (io->_ownAddress & 0xff);
100 buffer =
pushWord(_ownAddress, buffer);
106 buffer =
popWord(_ownAddress, buffer);
125 #define USER_STOPPED 0x1
126 #define OWN_ADDR_DUPL 0x2
127 #define VERIFY_MODE 0x4
128 #define SAFE_STATE 0x8
138 data |= OWN_ADDR_DUPL;
140 data &= ~OWN_ADDR_DUPL;
150 return (data & VERIFY_MODE) > 0;
162 data &= ~VERIFY_MODE;
169 return _prgMode == 1;
189 uint8_t data[LEN_KNX_SERIAL];
204 uint8_t data[LEN_KNX_SERIAL];
293 return (value >> 4) & 0x07;
uint8_t * pushInt(uint32_t i, uint8_t *data)
uint8_t * pushByteArray(const uint8_t *src, uint32_t size, uint8_t *data)
uint8_t * pushWord(uint16_t w, uint8_t *data)
const uint8_t * popInt(uint32_t &i, const uint8_t *data)
const uint8_t * popWord(uint16_t &w, const uint8_t *data)
const uint8_t * hardwareType()
const uint8_t * rfDomainAddress()
uint16_t saveSize() override
uint16_t manufacturerId()
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
const uint8_t * orderNumber()
void individualAddressDuplication(bool value)
uint8_t defaultHopCount()
uint8_t * save(uint8_t *buffer) override
This method is called when the object should save its state to the buffer.
uint16_t individualAddress()
uint8_t * save(uint8_t *buffer) override
This method is called when the object should save its state to the buffer.
const uint8_t * propertyData(PropertyID id)
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
virtual void initializeProperties(size_t propertiesSize, Property **properties)
Intializes the Property-array the the supplied values.
uint16_t saveSize() override
T propertyValue(PropertyID id)
Property * property(PropertyID id)
Gets property with PropertyID id if it exists and nullptr otherwise.
virtual uint8_t read(uint16_t start, uint8_t count, uint8_t *data) const =0
virtual uint8_t write(uint16_t start, uint8_t count, const uint8_t *data)=0
@ OT_DEVICE
Device object.
@ PID_OBJECT_TYPE
Interface Object Type independent Properties.
@ PID_ROUTING_COUNT
Properties in the Device Object.
@ PID_RF_DOMAIN_ADDRESS_CEMI_SERVER
@ PDT_GENERIC_06
length: 6
@ PDT_GENERIC_02
length: 2
@ PDT_GENERIC_10
length: 10
@ PDT_UNSIGNED_INT
length: 2
@ PDT_UNSIGNED_CHAR
length: 1