knx
ETS configurable knx-stack
bau_systemB_coupler.cpp
Go to the documentation of this file.
1 #include "bau_systemB_coupler.h"
2 #include "bits.h"
3 #include <string.h>
4 #include <stdio.h>
5 
7  BauSystemB(platform),
8  _platform(platform),
9 #ifdef USE_DATASECURE
10  _appLayer(_deviceObj, _secIfObj, *this),
11 #else
12  _appLayer(*this),
13 #endif
14  _transLayer(_appLayer),
15  _netLayer(_deviceObj, _transLayer)
16 {
20 #ifdef USE_DATASECURE
22 #endif
23 }
24 
26 {
27  return _appLayer;
28 }
29 
31 {
32  _transLayer.loop();
33 #ifdef USE_DATASECURE
34  _appLayer.loop();
35 #endif
36 }
37 
39 {
40  // _configured is set to true initially, if the device was configured with ETS it will be set to true after restart
41 
42  if (!_configured)
43  return false;
44 
46 #ifdef USE_DATASECURE
48 #endif
49 
50  return _configured;
51 }
52 
53 void BauSystemBCoupler::doMasterReset(EraseCode eraseCode, uint8_t channel)
54 {
55  BauSystemB::doMasterReset(eraseCode, channel);
56 
57 #ifdef USE_DATASECURE
58  _secIfObj.masterReset(eraseCode, channel);
59 #endif
60 }
This is an implementation of the application layer as specified in .
void transportLayer(TransportLayer &layer)
Assigns the TransportLayer to which encoded APDU are submitted to.
BauSystemBCoupler(Platform &platform)
TransportLayer _transLayer
NetworkLayerCoupler _netLayer
void doMasterReset(EraseCode eraseCode, uint8_t channel) override
SecurityInterfaceObject _secIfObj
SecureApplicationLayer _appLayer
ApplicationLayer & applicationLayer() override
bool configured() override
virtual void doMasterReset(EraseCode eraseCode, uint8_t channel)
Memory _memory
Definition: bau_systemB.h:123
ApplicationProgramObject _appProgram
Definition: bau_systemB.h:125
DeviceObject _deviceObj
Definition: bau_systemB.h:124
void addSaveRestore(SaveRestore *obj)
Definition: memory.cpp:209
void masterReset(EraseCode eraseCode, uint8_t channel) override
LoadState loadState()
This method returns the LoadState of the interface object.
void networkLayer(NetworkLayer &layer)
EraseCode
Definition: knx_types.h:242
@ LS_LOADED
Definition: property.h:200