add restart request

This commit is contained in:
Thomas Kunze 2019-06-24 22:22:56 +02:00
parent 34baf79810
commit da05a1d51b
4 changed files with 17 additions and 1 deletions

View File

@ -292,3 +292,9 @@ void BauSystemB::addSaveRestore(SaveRestore* obj)
{
_memory.addSaveRestore(obj);
}
void BauSystemB::restartRequest(uint16_t asap)
{
_appLayer.restartRequest(AckRequested, LowPriority, NetworkLayerParameter, asap);
}

View File

@ -27,6 +27,7 @@ public:
void readMemory();
void writeMemory();
void addSaveRestore(SaveRestore* obj);
void restartRequest(uint16_t asap);
protected:
virtual DataLinkLayer& dataLinkLayer() = 0;
virtual uint8_t* descriptor() = 0;
@ -56,6 +57,7 @@ protected:
uint8_t* data, uint8_t dataLength);
void groupValueWriteIndication(uint16_t asap, Priority priority, HopCountType hopType,
uint8_t* data, uint8_t dataLength);
virtual InterfaceObject* getInterfaceObject(uint8_t idx) = 0;
void sendNextGroupTelegram();

View File

@ -215,3 +215,9 @@ GroupObject &KnxFacade::getGroupObject(uint16_t goNr)
{
return _bau.groupObjectTable().get(goNr);
}
void KnxFacade::restart(uint16_t individualAddress)
{
_bau.restartRequest(individualAddress);
}

View File

@ -57,7 +57,9 @@ public:
uint16_t paramWord(uint32_t addr);
uint32_t paramInt(uint32_t addr);
GroupObject& getGroupObject(uint16_t goNr);
private:
void restart(uint16_t individualAddress);
private:
BauSystemB& _bau;
uint32_t _ledPinActiveOn = LOW;
uint32_t _ledPin = LED_BUILTIN;