mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	Makes the data link layer accessible from outside
This commit is contained in:
		
							parent
							
								
									9d7c8acde6
								
							
						
					
					
						commit
						03f55f5503
					
				@ -151,4 +151,7 @@ bool Bau07B0::isAckRequired(uint16_t address, bool isGrpAddr)
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TpUartDataLinkLayer* Bau07B0::getDataLinkLayer() {
 | 
			
		||||
    return (TpUartDataLinkLayer*)&_dlLayer;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -16,6 +16,7 @@ class Bau07B0 : public BauSystemBDevice, public ITpUartCallBacks, public DataLin
 | 
			
		||||
    bool enabled() override;
 | 
			
		||||
    void enabled(bool value) override;
 | 
			
		||||
 | 
			
		||||
    TpUartDataLinkLayer* getDataLinkLayer();
 | 
			
		||||
  protected:
 | 
			
		||||
    InterfaceObject* getInterfaceObject(uint8_t idx);
 | 
			
		||||
    InterfaceObject* getInterfaceObject(ObjectType objectType, uint8_t objectInstance);
 | 
			
		||||
 | 
			
		||||
@ -167,4 +167,11 @@ bool Bau091A::isAckRequired(uint16_t address, bool isGrpAddr)
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
IpDataLinkLayer* Bau091A::getPrimaryDataLinkLayer() {
 | 
			
		||||
    return (IpDataLinkLayer*)&_dlLayerPrimary;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TpUartDataLinkLayer* Bau091A::getSecondaryDataLinkLayer() {
 | 
			
		||||
    return (TpUartDataLinkLayer*)&_dlLayerSecondary;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -18,6 +18,8 @@ class Bau091A : public BauSystemBCoupler, public ITpUartCallBacks, public DataLi
 | 
			
		||||
    bool enabled() override;
 | 
			
		||||
    void enabled(bool value) override;
 | 
			
		||||
 | 
			
		||||
    IpDataLinkLayer* getPrimaryDataLinkLayer();
 | 
			
		||||
    TpUartDataLinkLayer* getSecondaryDataLinkLayer();
 | 
			
		||||
  protected:
 | 
			
		||||
    InterfaceObject* getInterfaceObject(uint8_t idx);
 | 
			
		||||
    InterfaceObject* getInterfaceObject(ObjectType objectType, uint8_t objectInstance);
 | 
			
		||||
 | 
			
		||||
@ -181,5 +181,7 @@ void Bau27B0::domainAddressSerialNumberReadLocalConfirm(Priority priority, HopCo
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
RfDataLinkLayer* Bau27B0::getDataLinkLayer() {
 | 
			
		||||
    return (RfDataLinkLayer*)&_dlLayer;
 | 
			
		||||
}
 | 
			
		||||
#endif // #ifdef USE_RF
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,7 @@ class Bau27B0 : public BauSystemBDevice
 | 
			
		||||
    bool enabled() override;
 | 
			
		||||
    void enabled(bool value) override;
 | 
			
		||||
 | 
			
		||||
    RfDataLinkLayer* getDataLinkLayer();
 | 
			
		||||
  protected:
 | 
			
		||||
    InterfaceObject* getInterfaceObject(uint8_t idx);
 | 
			
		||||
    InterfaceObject* getInterfaceObject(ObjectType objectType, uint8_t objectInstance);
 | 
			
		||||
 | 
			
		||||
@ -154,4 +154,11 @@ void Bau2920::loop()
 | 
			
		||||
    BauSystemBCoupler::loop();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TpUartDataLinkLayer* Bau2920::getPrimaryDataLinkLayer() {
 | 
			
		||||
    return (TpUartDataLinkLayer*)&_dlLayerPrimary;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
RfDataLinkLayer* Bau2920::getSecondaryDataLinkLayer() {
 | 
			
		||||
    return (RfDataLinkLayer*)&_dlLayerSecondary;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,8 @@ class Bau2920 : public BauSystemBCoupler
 | 
			
		||||
    bool enabled() override;
 | 
			
		||||
    void enabled(bool value) override;
 | 
			
		||||
 | 
			
		||||
    TpUartDataLinkLayer* getPrimaryDataLinkLayer();
 | 
			
		||||
    RfDataLinkLayer* getSecondaryDataLinkLayer();
 | 
			
		||||
  protected:
 | 
			
		||||
    InterfaceObject* getInterfaceObject(uint8_t idx);
 | 
			
		||||
    InterfaceObject* getInterfaceObject(ObjectType objectType, uint8_t objectInstance);
 | 
			
		||||
 | 
			
		||||
@ -145,4 +145,7 @@ void Bau57B0::loop()
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
IpDataLinkLayer* Bau57B0::getDataLinkLayer() {
 | 
			
		||||
    return (IpDataLinkLayer*)&_dlLayer;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -16,6 +16,7 @@ class Bau57B0 : public BauSystemBDevice, public DataLinkLayerCallbacks
 | 
			
		||||
    bool enabled() override;
 | 
			
		||||
    void enabled(bool value) override;
 | 
			
		||||
    
 | 
			
		||||
    IpDataLinkLayer* getDataLinkLayer();
 | 
			
		||||
  protected:
 | 
			
		||||
    InterfaceObject* getInterfaceObject(uint8_t idx);
 | 
			
		||||
    InterfaceObject* getInterfaceObject(ObjectType objectType, uint8_t objectInstance);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user