change header paths

This commit is contained in:
Thomas Kunze 2024-08-20 01:22:25 +02:00
parent e73e4da8f1
commit 09a3fe13c9
94 changed files with 591 additions and 540 deletions

View File

@ -3,185 +3,199 @@ project(knx-linux VERSION 1.5)
set(LIBRARIES_FROM_REFERENCES "") set(LIBRARIES_FROM_REFERENCES "")
set(SOURCES set(SOURCES
knx/address_table_object.cpp ./knx/application_layer/apdu.cpp
knx/address_table_object.h ./knx/application_layer/apdu.h
knx/apdu.cpp ./knx/application_layer/application_layer.cpp
knx/apdu.h ./knx/application_layer/application_layer.h
knx/application_layer.cpp ./knx/bau/bau.cpp
knx/application_layer.h ./knx/bau/bau.h
knx/application_program_object.cpp ./knx/bau/bau_systemB.cpp
knx/application_program_object.h ./knx/bau/bau_systemB.h
knx/association_table_object.cpp ./knx/coupler/bau_systemB_coupler.cpp
knx/association_table_object.h ./knx/coupler/bau_systemB_coupler.h
knx/bau.cpp ./knx/bau/bau_systemB_device.cpp
knx/bau.h ./knx/bau/bau_systemB_device.h
knx/bau07B0.cpp ./knx/bits.cpp
knx/bau07B0.h ./knx/bits.h
knx/bau091A.cpp ./knx/cemi_server/cemi_server.cpp
knx/bau091A.h ./knx/cemi_server/cemi_server.h
knx/bau27B0.cpp ./knx/cemi_server/cemi_server_object.cpp
knx/bau27B0.h ./knx/cemi_server/cemi_server_object.h
knx/bau2920.cpp ./knx/cemi_server/usb_tunnel_interface.cpp
knx/bau2920.h ./knx/cemi_server/usb_tunnel_interface.h
knx/bau57B0.cpp ./knx/config.h
knx/bau57B0.h ./knx/coupler/bau091A.cpp
knx/bau_systemB.cpp ./knx/coupler/bau091A.h
knx/bau_systemB.h ./knx/coupler/bau2920.cpp
knx/bau_systemB_coupler.cpp ./knx/coupler/bau2920.h
knx/bau_systemB_coupler.h ./knx/coupler/router_object.cpp
knx/bau_systemB_device.cpp ./knx/coupler/router_object.h
knx/bau_systemB_device.h ./knx/datalink_layer/cemi_frame.cpp
knx/bits.cpp ./knx/datalink_layer/cemi_frame.h
knx/bits.h ./knx/datalink_layer/data_link_layer.cpp
knx/callback_property.h ./knx/datalink_layer/data_link_layer.h
knx/cemi_frame.cpp ./knx/data_secure/secure_application_layer.cpp
knx/cemi_frame.h ./knx/data_secure/secure_application_layer.h
knx/cemi_server.cpp ./knx/data_secure/security_interface_object.cpp
knx/cemi_server.h ./knx/data_secure/security_interface_object.h
knx/cemi_server_object.cpp ./knx/group_object/datapoint_types.cpp
knx/cemi_server_object.h ./knx/group_object/datapoint_types.h
knx/config.h ./knx/group_object/dpt.cpp
knx/datapoint_types.cpp ./knx/group_object/dpt.h
knx/datapoint_types.h ./knx/group_object/dptconvert.cpp
knx/data_link_layer.cpp ./knx/group_object/dptconvert.h
knx/data_link_layer.h ./knx/group_object/group_object.cpp
knx/data_property.cpp ./knx/group_object/group_object.h
knx/data_property.h ./knx/group_object/knx_value.cpp
knx/device_object.cpp ./knx/group_object/knx_value.h
knx/device_object.h ./knx/interface_object/address_table_object.cpp
knx/dpt.cpp ./knx/interface_object/address_table_object.h
knx/dpt.h ./knx/interface_object/application_program_object.cpp
knx/dptconvert.cpp ./knx/interface_object/application_program_object.h
knx/dptconvert.h ./knx/interface_object/association_table_object.cpp
knx/function_property.h ./knx/interface_object/association_table_object.h
knx/group_object.cpp ./knx/interface_object/callback_property.h
knx/group_object.h ./knx/interface_object/data_property.cpp
knx/group_object_table_object.cpp ./knx/interface_object/data_property.h
knx/group_object_table_object.h ./knx/interface_object/device_object.cpp
knx/interface_object.cpp ./knx/interface_object/device_object.h
knx/interface_object.h ./knx/interface_object/function_property.h
knx/ip/ip_data_link_layer.cpp ./knx/interface_object/group_object_table_object.cpp
knx/ip/ip_data_link_layer.h ./knx/interface_object/group_object_table_object.h
knx/ip/ip_host_protocol_address_information.cpp ./knx/interface_object/interface_object.cpp
knx/ip/ip_host_protocol_address_information.h ./knx/interface_object/interface_object.h
knx/ip/ip_parameter_object.cpp ./knx/interface_object/property.cpp
knx/ip/ip_parameter_object.h ./knx/interface_object/property.h
knx/ip/knx_ip_ch.cpp ./knx/interface_object/table_object.cpp
knx/ip/knx_ip_ch.h ./knx/interface_object/table_object.h
knx/ip/knx_ip_config_dib.cpp ./knx/ip/bau57B0.cpp
knx/ip/knx_ip_config_dib.h ./knx/ip/bau57B0.h
knx/ip/knx_ip_config_request.cpp ./knx/ip/ip_data_link_layer.cpp
knx/ip/knx_ip_config_request.h ./knx/ip/ip_data_link_layer.h
knx/ip/knx_ip_connect_request.cpp ./knx/ip/ip_host_protocol_address_information.cpp
knx/ip/knx_ip_connect_request.h ./knx/ip/ip_host_protocol_address_information.h
knx/ip/knx_ip_connect_response.cpp ./knx/ip/ip_parameter_object.cpp
knx/ip/knx_ip_connect_response.h ./knx/ip/ip_parameter_object.h
knx/ip/knx_ip_crd.cpp ./knx/ip/knx_ip_ch.cpp
knx/ip/knx_ip_crd.h ./knx/ip/knx_ip_ch.h
knx/ip/knx_ip_cri.cpp ./knx/ip/knx_ip_config_dib.cpp
knx/ip/knx_ip_cri.h ./knx/ip/knx_ip_config_dib.h
knx/ip/knx_ip_description_request.cpp ./knx/ip/knx_ip_config_request.cpp
knx/ip/knx_ip_description_request.h ./knx/ip/knx_ip_config_request.h
knx/ip/knx_ip_description_response.cpp ./knx/ip/knx_ip_connect_request.cpp
knx/ip/knx_ip_description_response.h ./knx/ip/knx_ip_connect_request.h
knx/ip/knx_ip_device_information_dib.cpp ./knx/ip/knx_ip_connect_response.cpp
knx/ip/knx_ip_device_information_dib.h ./knx/ip/knx_ip_connect_response.h
knx/ip/knx_ip_dib.cpp ./knx/ip/knx_ip_crd.cpp
knx/ip/knx_ip_dib.h ./knx/ip/knx_ip_crd.h
knx/ip/knx_ip_disconnect_request.cpp ./knx/ip/knx_ip_cri.cpp
knx/ip/knx_ip_disconnect_request.h ./knx/ip/knx_ip_cri.h
knx/ip/knx_ip_disconnect_response.cpp ./knx/ip/knx_ip_description_request.cpp
knx/ip/knx_ip_disconnect_response.h ./knx/ip/knx_ip_description_request.h
knx/ip/knx_ip_extended_device_information_dib.cpp ./knx/ip/knx_ip_description_response.cpp
knx/ip/knx_ip_extended_device_information_dib.h ./knx/ip/knx_ip_description_response.h
knx/ip/knx_ip_frame.cpp ./knx/ip/knx_ip_device_information_dib.cpp
knx/ip/knx_ip_frame.h ./knx/ip/knx_ip_device_information_dib.h
knx/ip/knx_ip_knx_addresses_dib.cpp ./knx/ip/knx_ip_dib.cpp
knx/ip/knx_ip_knx_addresses_dib.h ./knx/ip/knx_ip_dib.h
knx/ip/knx_ip_routing_indication.cpp ./knx/ip/knx_ip_disconnect_request.cpp
knx/ip/knx_ip_routing_indication.h ./knx/ip/knx_ip_disconnect_request.h
knx/ip/knx_ip_search_request.cpp ./knx/ip/knx_ip_disconnect_response.cpp
knx/ip/knx_ip_search_request.h ./knx/ip/knx_ip_disconnect_response.h
knx/ip/knx_ip_search_request_extended.cpp ./knx/ip/knx_ip_extended_device_information_dib.cpp
knx/ip/knx_ip_search_request_extended.h ./knx/ip/knx_ip_extended_device_information_dib.h
knx/ip/knx_ip_search_response.cpp ./knx/ip/knx_ip_frame.cpp
knx/ip/knx_ip_search_response.h ./knx/ip/knx_ip_frame.h
knx/ip/knx_ip_search_response_extended.cpp ./knx/ip/knx_ip_knx_addresses_dib.cpp
knx/ip/knx_ip_search_response_extended.h ./knx/ip/knx_ip_knx_addresses_dib.h
knx/ip/knx_ip_state_request.cpp ./knx/ip/knx_ip_routing_indication.cpp
knx/ip/knx_ip_state_request.h ./knx/ip/knx_ip_routing_indication.h
knx/ip/knx_ip_state_response.cpp ./knx/ip/knx_ip_search_request.cpp
knx/ip/knx_ip_state_response.h ./knx/ip/knx_ip_search_request.h
knx/ip/knx_ip_supported_service_dib.cpp ./knx/ip/knx_ip_search_request_extended.cpp
knx/ip/knx_ip_supported_service_dib.h ./knx/ip/knx_ip_search_request_extended.h
knx/ip/knx_ip_tunneling_ack.cpp ./knx/ip/knx_ip_search_response.cpp
knx/ip/knx_ip_tunneling_ack.h ./knx/ip/knx_ip_search_response.h
knx/ip/knx_ip_tunneling_info_dib.cpp ./knx/ip/knx_ip_search_response_extended.cpp
knx/ip/knx_ip_tunneling_info_dib.h ./knx/ip/knx_ip_search_response_extended.h
knx/ip/knx_ip_tunneling_request.cpp ./knx/ip/knx_ip_state_request.cpp
knx/ip/knx_ip_tunneling_request.h ./knx/ip/knx_ip_state_request.h
knx/ip/knx_ip_tunnel_connection.cpp ./knx/ip/knx_ip_state_response.cpp
knx/ip/knx_ip_tunnel_connection.h ./knx/ip/knx_ip_state_response.h
knx/ip/service_families.h ./knx/ip/knx_ip_supported_service_dib.cpp
knx/knx_types.h ./knx/ip/knx_ip_supported_service_dib.h
knx/knx_types.cpp ./knx/ip/knx_ip_tunneling_ack.cpp
knx/knx_value.cpp ./knx/ip/knx_ip_tunneling_ack.h
knx/knx_value.h ./knx/ip/knx_ip_tunneling_info_dib.cpp
knx/memory.cpp ./knx/ip/knx_ip_tunneling_info_dib.h
knx/memory.h ./knx/ip/knx_ip_tunneling_request.cpp
knx/network_layer.cpp ./knx/ip/knx_ip_tunneling_request.h
knx/network_layer.h ./knx/ip/knx_ip_tunnel_connection.cpp
knx/network_layer_coupler.cpp ./knx/ip/knx_ip_tunnel_connection.h
knx/network_layer_coupler.h ./knx/ip/service_families.h
knx/network_layer_device.cpp ./knx/knx_facade.cpp
knx/network_layer_device.h ./knx/knx_facade.h
knx/network_layer_entity.cpp ./knx/knx_types.cpp
knx/network_layer_entity.h ./knx/knx_types.h
knx/npdu.cpp ./knx/network_layer/network_layer.cpp
knx/npdu.h ./knx/network_layer/network_layer.h
knx/platform/linux_platform.cpp ./knx/coupler/network_layer_coupler.cpp
knx/platform/linux_platform.h ./knx/coupler/network_layer_coupler.h
knx/platform.cpp ./knx/network_layer/network_layer_device.cpp
knx/platform.h ./knx/network_layer/network_layer_device.h
knx/property.cpp ./knx/network_layer/network_layer_entity.cpp
knx/property.h ./knx/network_layer/network_layer_entity.h
knx/rf/rf_data_link_layer.cpp ./knx/network_layer/npdu.cpp
knx/rf/rf_data_link_layer.h ./knx/network_layer/npdu.h
knx/rf/rf_medium_object.cpp ./knx/platform/arduino_platform.cpp
knx/rf/rf_medium_object.h ./knx/platform/arduino_platform.h
knx/rf/rf_physical_layer.h ./knx/platform/cc1310_platform.cpp
knx/rf/rf_physical_layer_cc1101.cpp ./knx/platform/cc1310_platform.h
knx/rf/rf_physical_layer_cc1101.h ./knx/platform/esp32_platform.cpp
knx/rf/rf_physical_layer_cc1310.cpp ./knx/platform/esp32_platform.h
knx/rf/rf_physical_layer_cc1310.h ./knx/platform/esp_platform.cpp
knx/router_object.cpp ./knx/platform/esp_platform.h
knx/router_object.h ./knx/platform/linux_platform.cpp
knx/save_restore.h ./knx/platform/linux_platform.h
knx/secure_application_layer.cpp ./knx/platform/platform.cpp
knx/secure_application_layer.h ./knx/platform/platform.h
knx/security_interface_object.cpp ./knx/platform/rp2040_arduino_platform.cpp
knx/security_interface_object.h ./knx/platform/rp2040_arduino_platform.h
knx/table_object.cpp ./knx/platform/samd_platform.cpp
knx/table_object.h ./knx/platform/samd_platform.h
knx/tpdu.cpp ./knx/platform/stm32_platform.cpp
knx/tpdu.h ./knx/platform/stm32_platform.h
knx/tpuart_data_link_layer.cpp ./knx/rf/bau27B0.cpp
knx/tpuart_data_link_layer.h ./knx/rf/bau27B0.h
knx/tp_frame.cpp ./knx/rf/rf_data_link_layer.cpp
knx/tp_frame.h ./knx/rf/rf_data_link_layer.h
knx/transport_layer.cpp ./knx/rf/rf_medium_object.cpp
knx/transport_layer.h ./knx/rf/rf_medium_object.h
knx/usb_tunnel_interface.cpp ./knx/rf/rf_physical_layer.h
knx/usb_tunnel_interface.h ./knx/rf/rf_physical_layer_cc1101.cpp
knx/util/aes.c ./knx/rf/rf_physical_layer_cc1101.h
knx/util/aes.h ./knx/rf/rf_physical_layer_cc1310.cpp
knx/util/aes.hpp ./knx/rf/rf_physical_layer_cc1310.h
knx/util/simple_map.h ./knx/tp/bau07B0.cpp
knx/util/logger.h ./knx/tp/bau07B0.h
knx/util/logger.cpp ./knx/tp/tpuart_data_link_layer.cpp
knx.h ./knx/tp/tpuart_data_link_layer.h
knx_facade.cpp ./knx/tp/tp_frame.cpp
knx_facade.h ./knx/tp/tp_frame.h
./knx/transport_layer/tpdu.cpp
./knx/transport_layer/tpdu.h
./knx/transport_layer/transport_layer.cpp
./knx/transport_layer/transport_layer.h
./knx/util/aes.c
./knx/util/aes.h
./knx/util/aes.hpp
./knx/util/logger.cpp
./knx/util/logger.h
./knx/util/memory.cpp
./knx/util/memory.h
./knx/util/save_restore.h
./knx/util/simple_map.h
./knx.h
) )

View File

@ -1,6 +1,7 @@
#include "apdu.h" #include "apdu.h"
#include "cemi_frame.h"
#include "bits.h" #include "../datalink_layer/cemi_frame.h"
#include "../bits.h"
APDU::APDU(uint8_t* data, CemiFrame& frame): _data(data), _frame(frame) APDU::APDU(uint8_t* data, CemiFrame& frame): _data(data), _frame(frame)
{ {

View File

@ -1,8 +1,9 @@
#pragma once #pragma once
#include <stdint.h> #include "../util/logger.h"
#include "util/logger.h" #include "../knx_types.h"
#include "knx_types.h"
#include <string.h>
class CemiFrame; class CemiFrame;

View File

@ -1,13 +1,16 @@
#include "application_layer.h" #include "application_layer.h"
#include "transport_layer.h"
#include "cemi_frame.h"
#include "association_table_object.h"
#include "apdu.h" #include "apdu.h"
#include "bau.h" #include "../transport_layer/transport_layer.h"
#include "string.h" #include "../datalink_layer/cemi_frame.h"
#include "../interface_object/association_table_object.h"
#include "../bau/bau.h"
#include "../util/logger.h"
#include "../bits.h"
// for memcpy
#include <cstring>
#include <stdio.h> #include <stdio.h>
#include "util/logger.h"
#include "bits.h"
#define LOGGER Logger::logger("ApplicationLayer") #define LOGGER Logger::logger("ApplicationLayer")

View File

@ -1,8 +1,9 @@
#pragma once #pragma once
#include <stdint.h>
#include "knx_types.h"
#include "apdu.h" #include "apdu.h"
#include "../knx_types.h"
#include <cstdint>
class AssociationTableObject; class AssociationTableObject;
class BusAccessUnit; class BusAccessUnit;

View File

@ -1,7 +1,9 @@
#pragma once #pragma once
#include "../knx_types.h"
#include "../interface_object/interface_object.h"
#include <stdint.h> #include <stdint.h>
#include "knx_types.h"
#include "interface_object.h"
typedef void (*BeforeRestartCallback)(void); typedef void (*BeforeRestartCallback)(void);
typedef bool (*FunctionPropertyCallback)(uint8_t objectIndex, uint8_t propertyId, uint8_t length, uint8_t* data, uint8_t* resultData, uint8_t& resultLength); typedef bool (*FunctionPropertyCallback)(uint8_t objectIndex, uint8_t propertyId, uint8_t length, uint8_t* data, uint8_t* resultData, uint8_t& resultLength);

View File

@ -1,5 +1,7 @@
#include "bau_systemB.h" #include "bau_systemB.h"
#include "bits.h"
#include "../bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,16 +1,17 @@
#pragma once #pragma once
#include "config.h"
#include "bau.h" #include "bau.h"
#include "security_interface_object.h"
#include "application_program_object.h" #include "../config.h"
#include "application_layer.h" #include "../data_secure/security_interface_object.h"
#include "secure_application_layer.h" #include "../data_secure/secure_application_layer.h"
#include "transport_layer.h" #include "../interface_object/application_program_object.h"
#include "network_layer.h" #include "../application_layer/application_layer.h"
#include "data_link_layer.h" #include "../transport_layer/transport_layer.h"
#include "platform.h" #include "../network_layer/network_layer.h"
#include "memory.h" #include "../datalink_layer/data_link_layer.h"
#include "../platform/platform.h"
#include "../util/memory.h"
class BauSystemB : protected BusAccessUnit class BauSystemB : protected BusAccessUnit
{ {

View File

@ -1,5 +1,7 @@
#include "bau_systemB_device.h" #include "bau_systemB_device.h"
#include "bits.h"
#include "../bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,20 +1,21 @@
#pragma once #pragma once
#include "config.h"
#include "bau_systemB.h" #include "bau_systemB.h"
#include "device_object.h"
#include "address_table_object.h" #include "../config.h"
#include "association_table_object.h" #include "../interface_object/device_object.h"
#include "group_object_table_object.h" #include "../interface_object/address_table_object.h"
#include "security_interface_object.h" #include "../interface_object/association_table_object.h"
#include "application_program_object.h" #include "../interface_object/group_object_table_object.h"
#include "application_layer.h" #include "../interface_object/application_program_object.h"
#include "secure_application_layer.h" #include "../data_secure/security_interface_object.h"
#include "transport_layer.h" #include "../data_secure/secure_application_layer.h"
#include "network_layer_device.h" #include "../application_layer/application_layer.h"
#include "data_link_layer.h" #include "../transport_layer/transport_layer.h"
#include "platform.h" #include "../network_layer/network_layer_device.h"
#include "memory.h" #include "../datalink_layer/data_link_layer.h"
#include "../platform/platform.h"
#include "../util/memory.h"
class BauSystemBDevice : public BauSystemB class BauSystemBDevice : public BauSystemB
{ {

View File

@ -1,10 +1,12 @@
#include "cemi_server.h" #include "cemi_server.h"
#include "cemi_frame.h"
#include "bau_systemB.h"
#include "usb_tunnel_interface.h" #include "usb_tunnel_interface.h"
#include "data_link_layer.h" #include "../bau/bau_systemB.h"
#include "string.h" #include "../datalink_layer/cemi_frame.h"
#include "bits.h" #include "../datalink_layer/data_link_layer.h"
#include "../bits.h"
#include <cstring>
#include <stdio.h> #include <stdio.h>
CemiServer::CemiServer(BauSystemB& bau) CemiServer::CemiServer(BauSystemB& bau)

View File

@ -1,8 +1,8 @@
#pragma once #pragma once
#include <stdint.h>
#include "knx_types.h"
#include "usb_tunnel_interface.h" #include "usb_tunnel_interface.h"
#include "../knx_types.h"
#include <stdint.h>
class BauSystemB; class BauSystemB;
class DataLinkLayer; class DataLinkLayer;

View File

@ -1,7 +1,8 @@
#include <cstring>
#include "cemi_server_object.h" #include "cemi_server_object.h"
#include "bits.h"
#include "data_property.h" #include "../bits.h"
#include <cstring>
CemiServerObject::CemiServerObject() CemiServerObject::CemiServerObject()
{ {

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "interface_object.h" #include "../interface_object/interface_object.h"
class CemiServerObject: public InterfaceObject class CemiServerObject: public InterfaceObject
{ {

View File

@ -1,12 +1,12 @@
#include "usb_tunnel_interface.h" #include "usb_tunnel_interface.h"
#include "cemi_server.h" #include "cemi_server.h"
#include "cemi_frame.h" #include "../datalink_layer/cemi_frame.h"
#include "../bits.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "bits.h"
#define MAX_EP_SIZE 64 #define MAX_EP_SIZE 64
#define HID_HEADER_SIZE 3 #define HID_HEADER_SIZE 3
#define MAX_KNX_TELEGRAM_SIZE 263 #define MAX_KNX_TELEGRAM_SIZE 263

View File

@ -1,9 +1,10 @@
#include "bau091A.h" #include "bau091A.h"
#include "bits.h" #include "bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
using namespace std;
/* ToDos /* ToDos
Announce the line status of sec side 03_05_01 4.4.3 Announce the line status of sec side 03_05_01 4.4.3

View File

@ -1,13 +1,12 @@
#pragma once #pragma once
#include "config.h"
#include "bau_systemB_coupler.h" #include "bau_systemB_coupler.h"
#include "router_object.h" #include "../config.h"
#include "ip/ip_parameter_object.h" #include "../interface_object/router_object.h"
#include "ip/ip_data_link_layer.h" #include "../ip/ip_parameter_object.h"
#include "tpuart_data_link_layer.h" #include "../ip/ip_data_link_layer.h"
#include "cemi_server_object.h" #include "../tp/tpuart_data_link_layer.h"
#include "../cemi_server/cemi_server_object.h"
class Bau091A : public BauSystemBCoupler, public ITpUartCallBacks, public DataLinkLayerCallbacks class Bau091A : public BauSystemBCoupler, public ITpUartCallBacks, public DataLinkLayerCallbacks
{ {

View File

@ -1,7 +1,9 @@
#include "bau2920.h" #include "bau2920.h"
#include "bits.h"
#include <string.h> #include "../bits.h"
#include <stdio.h>
#include <cstring>
#include <cstdio>
using namespace std; using namespace std;

View File

@ -1,17 +1,17 @@
#pragma once #pragma once
#include "config.h" #include "../config.h"
#include "bau_systemB_coupler.h" #include "bau_systemB_coupler.h"
#include "tpuart_data_link_layer.h" #include "tpuart_data_link_layer.h"
#if defined(DeviceFamily_CC13X0) #if defined(DeviceFamily_CC13X0)
#include "rf/rf_physical_layer_cc1310.h" #include "../rf/rf_physical_layer_cc1310.h"
#else #else
#include "rf/rf_physical_layer_cc1101.h" #include "../rf/rf_physical_layer_cc1101.h"
#endif #endif
#include "rf/rf_data_link_layer.h" #include "../rf/rf_data_link_layer.h"
#include "rf/rf_medium_object.h" #include "../rf/rf_medium_object.h"
#include "cemi_server_object.h" #include "../cemi_server/cemi_server_object.h"
class Bau2920 : public BauSystemBCoupler class Bau2920 : public BauSystemBCoupler
{ {

View File

@ -1,5 +1,7 @@
#include "bau_systemB_coupler.h" #include "bau_systemB_coupler.h"
#include "bits.h"
#include "../bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,18 +1,19 @@
#pragma once #pragma once
#include "config.h"
#include "bau_systemB.h"
#include "device_object.h"
#include "security_interface_object.h"
#include "application_program_object.h"
#include "router_object.h" #include "router_object.h"
#include "application_layer.h"
#include "secure_application_layer.h"
#include "transport_layer.h"
#include "network_layer_coupler.h" #include "network_layer_coupler.h"
#include "data_link_layer.h"
#include "platform.h" #include "../config.h"
#include "memory.h" #include "../bau/bau_systemB.h"
#include "../interface_object/device_object.h"
#include "../interface_object/application_program_object.h"
#include "../data_secure/security_interface_object.h"
#include "../data_secure/secure_application_layer.h"
#include "../application_layer/application_layer.h"
#include "../transport_layer/transport_layer.h"
#include "../datalink_layer/data_link_layer.h"
#include "../platform/platform.h"
#include "../util/memory.h"
class BauSystemBCoupler : public BauSystemB class BauSystemBCoupler : public BauSystemB
{ {

View File

@ -1,10 +1,10 @@
#include "network_layer_coupler.h" #include "network_layer_coupler.h"
#include "data_link_layer.h"
#include "device_object.h"
#include "router_object.h" #include "router_object.h"
#include "tpdu.h" #include "../interface_object/device_object.h"
#include "cemi_frame.h" #include "../transport_layer/tpdu.h"
#include "bits.h" #include "../datalink_layer/data_link_layer.h"
#include "../bits.h"
NetworkLayerCoupler::NetworkLayerCoupler(DeviceObject& deviceObj, NetworkLayerCoupler::NetworkLayerCoupler(DeviceObject& deviceObj,
TransportLayer& layer) : TransportLayer& layer) :

View File

@ -1,11 +1,10 @@
#pragma once #pragma once
#include <stdint.h> #include "../knx_types.h"
#include "knx_types.h"
#include "npdu.h"
#include "transport_layer.h"
#include "network_layer_entity.h"
#include "network_layer.h" #include "network_layer.h"
#include "transport_layer.h"
#include <stdint.h>
class DeviceObject; class DeviceObject;
class RouterObject; class RouterObject;

View File

@ -1,13 +1,10 @@
#include "config.h" #include "router_object.h"
#include "../config.h"
#include "../bits.h"
#include "../util/memory.h"
#include <cstring> #include <cstring>
#include "router_object.h"
#include "bits.h"
#include "memory.h"
#include "data_property.h"
#include "callback_property.h"
#include "function_property.h"
// Filter Table Realization Type 3 // Filter Table Realization Type 3
// The Filter Table Realisation Type 3 shall be organised as a memory mapped bit-field of // The Filter Table Realisation Type 3 shall be organised as a memory mapped bit-field of

View File

@ -1,9 +1,8 @@
#pragma once #pragma once
#include "config.h" #include "../interface_object/table_object.h"
#include "../config.h"
#include "table_object.h" #include "../knx_types.h"
#include "knx_types.h"
class Memory; class Memory;

View File

@ -1,25 +1,28 @@
#include "config.h" #include "../config.h"
#ifdef USE_DATASECURE #ifdef USE_DATASECURE
#include "secure_application_layer.h" #include "secure_application_layer.h"
#include "transport_layer.h"
#include "cemi_frame.h"
#include "association_table_object.h"
#include "address_table_object.h"
#include "security_interface_object.h" #include "security_interface_object.h"
#include "device_object.h" #include "../bau/bau.h"
#include "apdu.h" #include "../application_layer/apdu.h"
#include "bau.h" #include "../transport_layer/transport_layer.h"
#include "string.h" #include "../datalink_layer/cemi_frame.h"
#include "bits.h" #include "../interface_object/association_table_object.h"
#include "util/logger.h" #include "../interface_object/address_table_object.h"
#include "../interface_object/device_object.h"
#include "../bits.h"
#include "../util/logger.h"
#include <cstring>
#define LOGGER Logger::logger("SecureApplicationLayer") #define LOGGER Logger::logger("SecureApplicationLayer")
// Select what cipher modes to include. We need AES128-CBC and AES128-CTR modes. // Select what cipher modes to include. We need AES128-CBC and AES128-CTR modes.
#define CBC 1 #define CBC 1
#define CTR 1 #define CTR 1
#define ECB 0 #define ECB 0
#include "util/aes.hpp" #include "../util/aes.hpp"
static constexpr uint8_t kSecureDataPdu = 0; static constexpr uint8_t kSecureDataPdu = 0;
static constexpr uint8_t kSecureSyncRequest = 2; static constexpr uint8_t kSecureSyncRequest = 2;

View File

@ -1,10 +1,10 @@
#pragma once #pragma once
#include "application_layer.h" #include "../application_layer/application_layer.h"
#include "../knx_types.h"
#include "../util/simple_map.h"
#include <stdint.h> #include <stdint.h>
#include "knx_types.h"
#include "apdu.h"
#include "util/simple_map.h"
class DeviceObject; class DeviceObject;
class SecurityInterfaceObject; class SecurityInterfaceObject;

View File

@ -1,13 +1,11 @@
#include "config.h" #include "../config.h"
#ifdef USE_DATASECURE #ifdef USE_DATASECURE
#include <cstring>
#include "security_interface_object.h" #include "security_interface_object.h"
#include "secure_application_layer.h" #include "secure_application_layer.h"
#include "bits.h" #include "../bits.h"
#include "data_property.h"
#include "callback_property.h" #include <cstring>
#include "function_property.h"
// Our FDSK. It is never changed from ETS. This is the permanent default tool key that is restored on every factory reset of the device. // Our FDSK. It is never changed from ETS. This is the permanent default tool key that is restored on every factory reset of the device.
const uint8_t SecurityInterfaceObject::_fdsk[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }; const uint8_t SecurityInterfaceObject::_fdsk[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F };

View File

@ -1,10 +1,10 @@
#pragma once #pragma once
#include "config.h" #include "../config.h"
#ifdef USE_DATASECURE #ifdef USE_DATASECURE
#include "interface_object.h" #include "../interface_object/interface_object.h"
#include "knx_types.h" #include "../knx_types.h"
class SecurityInterfaceObject: public InterfaceObject class SecurityInterfaceObject: public InterfaceObject
{ {

View File

@ -1,7 +1,9 @@
#include "cemi_frame.h" #include "cemi_frame.h"
#include "bits.h"
#include "string.h" #include "../bits.h"
#include <stdio.h>
#include <cstring>
#include <cstdio>
/* /*
cEMI Frame Format cEMI Frame Format

View File

@ -1,13 +1,13 @@
#pragma once #pragma once
#include "knx_types.h" #include "../knx_types.h"
#include <stdint.h> #include "../application_layer/apdu.h"
#include "npdu.h" #include "../transport_layer/tpdu.h"
#include "tpdu.h" #include "../network_layer/npdu.h"
#include "apdu.h" #include "../config.h"
#include "config.h" #include "../util/logger.h"
#include "util/logger.h"
#include <stdint.h>
#define NPDU_LPDU_DIFF 8 #define NPDU_LPDU_DIFF 8
#define TPDU_NPDU_DIFF 1 #define TPDU_NPDU_DIFF 1

View File

@ -1,11 +1,10 @@
#include "data_link_layer.h" #include "data_link_layer.h"
#include "platform.h" #include "../platform/platform.h"
#include "device_object.h" #include "../interface_object/device_object.h"
#include "cemi_server.h" #include "../cemi_server/cemi_server.h"
#include "cemi_frame.h" #include "../util/logger.h"
#include "util/logger.h" #include "../bits.h"
#include "bits.h"
#define LOGGER Logger::logger("DataLinkLayer") #define LOGGER Logger::logger("DataLinkLayer")

View File

@ -1,16 +1,19 @@
#pragma once #pragma once
#include "config.h" #include "../config.h"
#include "cemi_frame.h"
#include "../interface_object/device_object.h"
#include "../knx_types.h"
#include "../network_layer/network_layer_entity.h"
#ifdef KNX_TUNNELING
#include "../ip/ip_parameter_object.h"
#endif
#include "../cemi_server/cemi_server.h"
#include "../bau/bau.h"
#include <stdint.h> #include <stdint.h>
#include "device_object.h"
#include "knx_types.h"
#include "network_layer_entity.h"
#ifdef KNX_TUNNELING
#include "ip/ip_parameter_object.h"
#endif
#include "cemi_server.h"
#include "bau.h"
class Platform; class Platform;

View File

@ -9,6 +9,7 @@
*/ */
#include "datapoint_types.h" #include "datapoint_types.h"
#include <stdint.h> #include <stdint.h>
// Sign for a negative DPT9 float value // Sign for a negative DPT9 float value

View File

@ -1,8 +1,9 @@
#include "dpt.h" #include "dpt.h"
#include "util/logger.h"
#define LOGGER Logger::logger("Dpt")
#include "bits.h" #include "../util/logger.h"
#include "../bits.h"
#define LOGGER Logger::logger("Dpt")
Dpt::Dpt() Dpt::Dpt()
{} {}

View File

@ -1,5 +1,7 @@
#include "dptconvert.h" #include "dptconvert.h"
#include "bits.h"
#include "../bits.h"
#include <cmath> #include <cmath>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>

View File

@ -28,11 +28,11 @@
#pragma once #pragma once
#include <cstdint>
#include "dpt.h" #include "dpt.h"
#include "knx_value.h" #include "knx_value.h"
#include <cstdint>
/** /**
* Converts the KNX Payload given by the specific DPT and puts the value in the KNXValue struc * Converts the KNX Payload given by the specific DPT and puts the value in the KNXValue struc
*/ */

View File

@ -1,8 +1,10 @@
#include "group_object.h" #include "group_object.h"
#include "string.h"
#include "datapoint_types.h" #include "datapoint_types.h"
#include "group_object_table_object.h" #include "../interface_objects/group_object_table_object.h"
#include "bits.h" #include "../bits.h"
#include <cstring>
#ifdef SMALL_GROUPOBJECT #ifdef SMALL_GROUPOBJECT
GroupObjectUpdatedHandler GroupObject::_updateHandlerStatic = 0; GroupObjectUpdatedHandler GroupObject::_updateHandlerStatic = 0;

View File

@ -1,9 +1,10 @@
#pragma once #pragma once
#include "../knx_types.h"
#include "dptconvert.h"
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include "knx_types.h"
#include "dptconvert.h"
class GroupObjectTableObject; class GroupObjectTableObject;

View File

@ -1,9 +1,9 @@
#include <cstring>
#include "address_table_object.h" #include "address_table_object.h"
#include "data_property.h"
#include "util/logger.h" #include "../util/logger.h"
#include "bits.h" #include "../bits.h"
#include <cstring>
#define LOGGER Logger::logger("AddressTableObject") #define LOGGER Logger::logger("AddressTableObject")

View File

@ -1,10 +1,10 @@
#include "application_program_object.h" #include "application_program_object.h"
#include "data_property.h"
#include "callback_property.h" #include "../group_object/dptconvert.h"
#include "dptconvert.h" #include "../util/logger.h"
#include "../bits.h"
#include <cstring> #include <cstring>
#include "util/logger.h"
#include "bits.h"
#define LOGGER Logger::logger("ApplicationProgramObject") #define LOGGER Logger::logger("ApplicationProgramObject")

View File

@ -1,9 +1,9 @@
#include <cstring>
#include "association_table_object.h" #include "association_table_object.h"
#include "data_property.h"
#include "util/logger.h" #include "../util/logger.h"
#include "bits.h" #include "../bits.h"
#include <cstring>
#define LOGGER Logger::logger("AssociationTableObject") #define LOGGER Logger::logger("AssociationTableObject")

View File

@ -1,5 +1,6 @@
#include "data_property.h" #include "data_property.h"
#include "bits.h"
#include "../bits.h"
#include <cstring> #include <cstring>

View File

@ -1,9 +1,9 @@
#include <cstring>
#include "device_object.h" #include "device_object.h"
#include "bits.h"
#include "data_property.h" #include "../bits.h"
#include "callback_property.h" #include "../config.h"
#include "config.h"
#include <cstring>
#define LEN_KNX_SERIAL 6 #define LEN_KNX_SERIAL 6

View File

@ -1,10 +1,10 @@
#include <cstring>
#include "group_object_table_object.h" #include "group_object_table_object.h"
#include "group_object.h"
#include "data_property.h" #include "../group_object/group_object.h"
#include "util/logger.h" #include "../util/logger.h"
#include "bits.h" #include "../bits.h"
#include <cstring>
#define LOGGER Logger::logger("GroupObjectTableObject") #define LOGGER Logger::logger("GroupObjectTableObject")

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "table_object.h" #include "table_object.h"
#include "group_object.h" #include "../group_object/group_object.h"
class GroupObjectTableObject : public TableObject class GroupObjectTableObject : public TableObject
{ {

View File

@ -1,8 +1,8 @@
#include <cstring>
#include "interface_object.h" #include "interface_object.h"
#include "data_property.h"
#include "bits.h" #include "../bits.h"
#include <cstring>
InterfaceObject::~InterfaceObject() InterfaceObject::~InterfaceObject()
{ {

View File

@ -1,9 +1,13 @@
#pragma once #pragma once
#include <stddef.h>
#include "property.h" #include "property.h"
#include "save_restore.h" #include "data_property.h"
#include "knx_types.h" #include "callback_property.h"
#include "function_property.h"
#include "../util/save_restore.h"
#include "../knx_types.h"
#include <stddef.h>
/** Enum for the type of an interface object. See Section 2.2 of knx:3/7/3 */ /** Enum for the type of an interface object. See Section 2.2 of knx:3/7/3 */
enum ObjectType enum ObjectType

View File

@ -1,8 +1,8 @@
#include "property.h" #include "property.h"
#include "bits.h"
#include "../bits.h"
#include <cstring> #include <cstring>
using namespace std;
PropertyID Property::Id() const PropertyID Property::Id() const
{ {

View File

@ -9,8 +9,9 @@
*/ */
#pragma once #pragma once
#include "../util/save_restore.h"
#include <stdint.h> #include <stdint.h>
#include "save_restore.h"
/** The data type of a property. */ /** The data type of a property. */
enum PropertyDataType enum PropertyDataType

View File

@ -1,10 +1,8 @@
#include <string.h>
#include "table_object.h" #include "table_object.h"
#include "bits.h" #include "../bits.h"
#include "memory.h" #include "../util/memory.h"
#include "callback_property.h"
#include "data_property.h" #include <cstring>
BeforeTablesUnloadCallback TableObject::_beforeTablesUnload = 0; BeforeTablesUnloadCallback TableObject::_beforeTablesUnload = 0;
uint8_t TableObject::_tableUnloadCount = 0; uint8_t TableObject::_tableUnloadCount = 0;

View File

@ -1,5 +1,7 @@
#include "bau57B0.h" #include "bau57B0.h"
#include "bits.h"
#include "../bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,11 +1,11 @@
#pragma once #pragma once
#include "config.h" #include "../config.h"
#include "bau_systemB_device.h" #include "ip_parameter_object.h"
#include "ip/ip_parameter_object.h" #include "ip_data_link_layer.h"
#include "ip/ip_data_link_layer.h" #include "../bau/bau_systemB_device.h"
#include "cemi_server_object.h" #include "../cemi_server/cemi_server_object.h"
class Bau57B0 : public BauSystemBDevice, public DataLinkLayerCallbacks class Bau57B0 : public BauSystemBDevice, public DataLinkLayerCallbacks
{ {

View File

@ -1,18 +1,10 @@
#include "ip_data_link_layer.h" #include "ip_data_link_layer.h"
#include "../bits.h"
#include "../platform.h"
#include "../device_object.h"
#include "knx_ip_routing_indication.h" #include "knx_ip_routing_indication.h"
#include "knx_ip_search_request.h" #include "knx_ip_search_request.h"
#include "knx_ip_search_response.h" #include "knx_ip_search_response.h"
#include "knx_ip_search_request_extended.h" #include "knx_ip_search_request_extended.h"
#include "knx_ip_search_response_extended.h" #include "knx_ip_search_response_extended.h"
#include "../util/logger.h"
#define LOGGER Logger::logger("IpDataLinkLayer")
#include "knx_ip_connect_request.h" #include "knx_ip_connect_request.h"
#include "knx_ip_connect_response.h" #include "knx_ip_connect_response.h"
#include "knx_ip_state_request.h" #include "knx_ip_state_request.h"
@ -24,7 +16,12 @@
#include "knx_ip_description_request.h" #include "knx_ip_description_request.h"
#include "knx_ip_description_response.h" #include "knx_ip_description_response.h"
#include "knx_ip_config_request.h" #include "knx_ip_config_request.h"
#include "../bits.h"
#include "../platform/platform.h"
#include "../interface_object/device_object.h"
#include "../util/logger.h"
#define LOGGER Logger::logger("IpDataLinkLayer")
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>
#include "../data_link_layer.h" #include "../datalink_layer/data_link_layer.h"
#include "ip_parameter_object.h" #include "ip_parameter_object.h"
#include "knx_ip_tunnel_connection.h" #include "knx_ip_tunnel_connection.h"
#include "service_families.h" #include "service_families.h"

View File

@ -1,8 +1,6 @@
#include "ip_parameter_object.h" #include "ip_parameter_object.h"
#include "../bits.h" #include "../bits.h"
#include "../data_property.h"
#include "../callback_property.h"
// 224.0.23.12 // 224.0.23.12
#define DEFAULT_MULTICAST_ADDR ((uint32_t)0xE000170C) #define DEFAULT_MULTICAST_ADDR ((uint32_t)0xE000170C)

View File

@ -1,8 +1,7 @@
#pragma once #pragma once
#include "../interface_object.h" #include "../inteface_object/device_object.h"
#include "../device_object.h" #include "../platform/platform.h"
#include "../platform.h"
#define KNXIP_MULTICAST_PORT 3671 #define KNXIP_MULTICAST_PORT 3671

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "../cemi_frame.h" #include "../datalink_layer/cemi_frame.h"
#define LEN_KNXIP_HEADER 0x6 #define LEN_KNXIP_HEADER 0x6

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "knx_ip_frame.h" #include "knx_ip_frame.h"
#include "../cemi_frame.h" #include "../datalink_layer/cemi_frame.h"
class KnxIpRoutingIndication : public KnxIpFrame class KnxIpRoutingIndication : public KnxIpFrame
{ {

View File

@ -1,5 +1,5 @@
#pragma once #pragma once
#include "../platform.h" #include "../platform/platform.h"
class KnxIpTunnelConnection class KnxIpTunnelConnection
{ {

View File

@ -1,9 +1,8 @@
#pragma once #pragma once
#include "knx_ip_frame.h" #include "knx_ip_frame.h"
#include "../cemi_frame.h"
#include "knx_ip_ch.h" #include "knx_ip_ch.h"
#include "../datalink_layer/cemi_frame.h"
class KnxIpTunnelingAck : public KnxIpFrame class KnxIpTunnelingAck : public KnxIpFrame
{ {
public: public:

View File

@ -1,6 +1,6 @@
#include "knx_facade.h" #include "knx_facade.h"
#include "knx/bits.h" #include "bits.h"
#ifndef KNX_NO_AUTOMATIC_GLOBAL_INSTANCE #ifndef KNX_NO_AUTOMATIC_GLOBAL_INSTANCE

View File

@ -1,14 +1,13 @@
#pragma once #pragma once
#include "knx/util/logger.h" #include "util/logger.h"
#include "knx/config.h" #include "config.h"
#include "knx/bau.h" #include "bau/bau.h"
#include "knx/bau07B0.h" #include "tp/bau07B0.h"
#include "knx/bau091A.h" #include "rf/bau27B0.h"
#include "knx/bau27B0.h" #include "ip/bau57B0.h"
#include "knx/bau2920.h" #include "coupler/bau091A.h"
#include "knx/bau57B0.h" #include "coupler/bau2920.h"
#include "knx/bits.h" #include "knx/bits.h"
#ifndef USERDATA_SAVE_SIZE #ifndef USERDATA_SAVE_SIZE
@ -16,19 +15,19 @@
#endif #endif
#ifdef ARDUINO_ARCH_SAMD #ifdef ARDUINO_ARCH_SAMD
#include "knx/platform/samd_platform.h" #include "platform/samd_platform.h"
#elif defined(ARDUINO_ARCH_RP2040) #elif defined(ARDUINO_ARCH_RP2040)
#include "knx/platform/rp2040_arduino_platform.h" #include "platform/rp2040_arduino_platform.h"
#elif defined(ARDUINO_ARCH_ESP8266) #elif defined(ARDUINO_ARCH_ESP8266)
#include "knx/platform/esp_platform.h" #include "platform/esp_platform.h"
#elif defined(ARDUINO_ARCH_ESP32) #elif defined(ARDUINO_ARCH_ESP32)
#include "knx/platform/esp32_platform.h" #include "platform/esp32_platform.h"
#elif defined(ARDUINO_ARCH_STM32) #elif defined(ARDUINO_ARCH_STM32)
#include "knx/platform/stm32_platform.h" #include "platform/stm32_platform.h"
#elif __linux__ #elif __linux__
#include "knx/platform/linux_platform.h" #include "platform/linux_platform.h"
#else #else
#include "knx/platform/cc1310_platform.h" #include "platform/cc1310_platform.h"
#endif #endif
#ifndef KNX_NO_AUTOMATIC_GLOBAL_INSTANCE #ifndef KNX_NO_AUTOMATIC_GLOBAL_INSTANCE

View File

@ -1,10 +1,9 @@
#include "network_layer.h" #include "network_layer.h"
#include "device_object.h"
#include "data_link_layer.h" #include "../interface_object/device_object.h"
#include "tpdu.h" #include "../datalink_layer/data_link_layer.h"
#include "cemi_frame.h" #include "../transport_layer/tpdu.h"
#include "bits.h" #include "../bits.h"
#include "apdu.h"
NetworkLayer::NetworkLayer(DeviceObject& deviceObj, TransportLayer& layer) : NetworkLayer::NetworkLayer(DeviceObject& deviceObj, TransportLayer& layer) :
_deviceObj(deviceObj), _deviceObj(deviceObj),

View File

@ -1,10 +1,11 @@
#pragma once #pragma once
#include <stdint.h>
#include "knx_types.h"
#include "npdu.h" #include "npdu.h"
#include "transport_layer.h"
#include "network_layer_entity.h" #include "network_layer_entity.h"
#include "../transport_layer/transport_layer.h"
#include "../knx_types.h"
#include <cstdint>
class DeviceObject; class DeviceObject;
class APDU; class APDU;

View File

@ -1,9 +1,10 @@
#include "network_layer_device.h" #include "network_layer_device.h"
#include "device_object.h"
#include "tpdu.h" #include "../interface_object/device_object.h"
#include "cemi_frame.h" #include "../transport_layer/tpdu.h"
#include "util/logger.h" #include "../datalink_layer/cemi_frame.h"
#include "bits.h" #include "../util/logger.h"
#include "../bits.h"
#define LOGGER Logger::logger("NetworkLayerDevice") #define LOGGER Logger::logger("NetworkLayerDevice")

View File

@ -1,11 +1,11 @@
#pragma once #pragma once
#include <stdint.h>
#include "knx_types.h"
#include "npdu.h"
#include "transport_layer.h"
#include "network_layer_entity.h" #include "network_layer_entity.h"
#include "network_layer.h" #include "network_layer.h"
#include "../transport_layer/transport_layer.h"
#include "../knx_types.h"
#include <stdint.h>
class DeviceObject; class DeviceObject;

View File

@ -1,8 +1,9 @@
#include "network_layer.h"
#include "network_layer_entity.h" #include "network_layer_entity.h"
#include "tpdu.h"
#include "data_link_layer.h" #include "network_layer.h"
#include "bits.h" #include "../transport_layer/tpdu.h"
#include "../datalink_layer/data_link_layer.h"
#include "../bits.h"
NetworkLayerEntity::NetworkLayerEntity(NetworkLayer& netLayer, uint8_t entityIndex) : _netLayer(netLayer), _entityIndex(entityIndex) NetworkLayerEntity::NetworkLayerEntity(NetworkLayer& netLayer, uint8_t entityIndex) : _netLayer(netLayer), _entityIndex(entityIndex)
{ {

View File

@ -1,8 +1,9 @@
#pragma once #pragma once
#include <stdint.h>
#include "knx_types.h"
#include "npdu.h" #include "npdu.h"
#include "../knx_types.h"
#include <cstdint>
class DataLinkLayer; class DataLinkLayer;
class NetworkLayer; class NetworkLayer;

View File

@ -1,7 +1,9 @@
#include "npdu.h" #include "npdu.h"
#include "cemi_frame.h"
#include <string.h> #include "../datalink_layer/cemi_frame.h"
#include "bits.h" #include "../bits.h"
#include <cstring>
NPDU::NPDU(uint8_t* data, CemiFrame& frame): _data(data), _frame(frame) NPDU::NPDU(uint8_t* data, CemiFrame& frame): _data(data), _frame(frame)
{ {

View File

@ -1,7 +1,8 @@
#pragma once #pragma once
#include <stdint.h> #include "../util/logger.h"
#include "util/logger.h"
#include <cstdint>
class CemiFrame; class CemiFrame;
class TPDU; class TPDU;

View File

@ -1,10 +1,10 @@
#include "bau27B0.h" #include "bau27B0.h"
#include "bits.h" #include "bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
using namespace std;
Bau27B0::Bau27B0(Platform& platform) Bau27B0::Bau27B0(Platform& platform)
: BauSystemBDevice(platform), : BauSystemBDevice(platform),
_dlLayer(_deviceObj, _rfMediumObj, _netLayer.getInterface(), _platform) _dlLayer(_deviceObj, _rfMediumObj, _netLayer.getInterface(), _platform)

View File

@ -1,17 +1,17 @@
#pragma once #pragma once
#include "config.h" #include "../config.h"
#include "bau_systemB_device.h" #include "rf_medium_object.h"
#include "rf/rf_medium_object.h"
#if defined(DeviceFamily_CC13X0) #if defined(DeviceFamily_CC13X0)
#include "rf/rf_physical_layer_cc1310.h" #include "rf_physical_layer_cc1310.h"
#else #else
#include "rf/rf_physical_layer_cc1101.h" #include "rf_physical_layer_cc1101.h"
#endif #endif
#include "rf/rf_data_link_layer.h" #include "rf_data_link_layer.h"
#include "cemi_server.h" #include "../bau/bau_systemB_device.h"
#include "cemi_server_object.h" #include "../cemi_server/cemi_server.h"
#include "../cemi_server/cemi_server_object.h"
class Bau27B0 : public BauSystemBDevice class Bau27B0 : public BauSystemBDevice
{ {

View File

@ -1,16 +1,17 @@
#include "rf_data_link_layer.h"
#if defined(DeviceFamily_CC13X0) #if defined(DeviceFamily_CC13X0)
#include "rf_physical_layer_cc1310.h" #include "rf_physical_layer_cc1310.h"
#else #else
#include "rf_physical_layer_cc1101.h" #include "rf_physical_layer_cc1101.h"
#endif #endif
#include "rf_data_link_layer.h"
#include "../bits.h"
#include "../platform.h"
#include "../device_object.h"
#include "../address_table_object.h"
#include "rf_medium_object.h" #include "rf_medium_object.h"
#include "../cemi_frame.h" #include "../bits.h"
#include "../platform/platform.h"
#include "../interface_object/device_object.h"
#include "../interface_object/address_table_object.h"
#include "../datalink_layer/cemi_frame.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -2,8 +2,9 @@
#include "../config.h" #include "../config.h"
#include <stdint.h> #include "..datalink_layer/data_link_layer.h"
#include "../data_link_layer.h"
#include <cstdint>
#define MAX_KNX_TELEGRAM_SIZE 263 #define MAX_KNX_TELEGRAM_SIZE 263

View File

@ -1,8 +1,8 @@
#include <cstring>
#include "rf_medium_object.h" #include "rf_medium_object.h"
#include "../bits.h" #include "../bits.h"
#include "../data_property.h"
#include "../function_property.h" #include <cstring>
RfMediumObject::RfMediumObject() RfMediumObject::RfMediumObject()
{ {

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "../interface_object.h" #include "../interface_object/interface_object.h"
class RfMediumObject: public InterfaceObject class RfMediumObject: public InterfaceObject
{ {

View File

@ -1,8 +1,8 @@
#pragma once #pragma once
#include <stdint.h> #include "../platform/platform.h"
#include "../platform.h" #include <stdint.h>
// Calculate the real packet size out of the L-field of FT3 frame data. See KNX-RF spec. 3.2.5 Data Link Layer frame format // Calculate the real packet size out of the L-field of FT3 frame data. See KNX-RF spec. 3.2.5 Data Link Layer frame format
#define PACKET_SIZE(lField) ((((lField - 10 /*size of first pkt*/))/16 + 2 /*CRC in first pkt */) * 2 /*to bytes*/ +lField + 1 /*size of len byte*/) #define PACKET_SIZE(lField) ((((lField - 10 /*size of first pkt*/))/16 + 2 /*CRC in first pkt */) * 2 /*to bytes*/ +lField + 1 /*size of len byte*/)

View File

@ -1,8 +1,8 @@
#ifndef DeviceFamily_CC13X0 #ifndef DeviceFamily_CC13X0
#include "rf_physical_layer_cc1101.h" #include "rf_physical_layer_cc1101.h"
#include "rf_data_link_layer.h"
#include "rf_data_link_layer.h"
#include "../bits.h" #include "../bits.h"
#include "../platform.h" #include "../platform.h"

View File

@ -4,10 +4,10 @@
#include "../config.h" #include "../config.h"
#include <stdint.h>
#include "rf_physical_layer.h" #include "rf_physical_layer.h"
#include <stdint.h>
/*----------------------------------[standard]--------------------------------*/ /*----------------------------------[standard]--------------------------------*/
#define CC1101_TIMEOUT 2000 // Time to wait for a response from CC1101 #define CC1101_TIMEOUT 2000 // Time to wait for a response from CC1101

View File

@ -1,11 +1,6 @@
#ifdef DeviceFamily_CC13X0 #ifdef DeviceFamily_CC13X0
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "rf_physical_layer_cc1310.h" #include "rf_physical_layer_cc1310.h"
#include "rf_data_link_layer.h" #include "rf_data_link_layer.h"
#include <ti/devices/DeviceFamily.h> #include <ti/devices/DeviceFamily.h>
@ -13,12 +8,15 @@
#include DeviceFamily_constructPath(driverlib/rf_prop_mailbox.h) #include DeviceFamily_constructPath(driverlib/rf_prop_mailbox.h)
#include <ti/drivers/rf/RF.h> #include <ti/drivers/rf/RF.h>
#include "smartrf_settings/smartrf_settings.h" #include "smartrf_settings/smartrf_settings.h"
#include "../platform/platform.h"
#include "../platform/cc1310_platform.h" #include "../platform/cc1310_platform.h"
#include "Board.h" #include "Board.h"
#include "../bits.h"
#include "bits.h"
#include "platform.h" #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define RX_MAX_BUFFER_LENGTH 256 #define RX_MAX_BUFFER_LENGTH 256
#define RF_TERMINATION_EVENT_MASK (RF_EventLastCmdDone | RF_EventLastFGCmdDone | RF_EventCmdAborted | RF_EventCmdStopped | RF_EventCmdCancelled) #define RF_TERMINATION_EVENT_MASK (RF_EventLastCmdDone | RF_EventLastFGCmdDone | RF_EventCmdAborted | RF_EventCmdStopped | RF_EventCmdCancelled)

View File

@ -3,11 +3,10 @@
#ifdef DeviceFamily_CC13X0 #ifdef DeviceFamily_CC13X0
#include "../config.h" #include "../config.h"
#include "rf_physical_layer.h"
#include <stdint.h> #include <stdint.h>
#include "rf_physical_layer.h"
#define RX_PACKET_TIMEOUT 20 // Wait 20ms for packet reception to complete #define RX_PACKET_TIMEOUT 20 // Wait 20ms for packet reception to complete
// loop states // loop states

View File

@ -1,10 +1,10 @@
#include "bau07B0.h" #include "bau07B0.h"
#include "bits.h" #include "bits.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
using namespace std;
Bau07B0::Bau07B0(Platform& platform) Bau07B0::Bau07B0(Platform& platform)
: BauSystemBDevice(platform), DataLinkLayerCallbacks(), : BauSystemBDevice(platform), DataLinkLayerCallbacks(),
_dlLayer(_deviceObj, _netLayer.getInterface(), _platform, (ITpUartCallBacks&) * this, (DataLinkLayerCallbacks*) this) _dlLayer(_deviceObj, _netLayer.getInterface(), _platform, (ITpUartCallBacks&) * this, (DataLinkLayerCallbacks*) this)

View File

@ -1,11 +1,11 @@
#pragma once #pragma once
#include "config.h" #include "../config.h"
#include "bau_systemB_device.h" #include "../bau/bau_systemB_device.h"
#include "tpuart_data_link_layer.h" #include "../tp/tpuart_data_link_layer.h"
#include "cemi_server.h" #include "../cemi_server/cemi_server.h"
#include "cemi_server_object.h" #include "../cemi_server/cemi_server_object.h"
class Bau07B0 : public BauSystemBDevice, public ITpUartCallBacks, public DataLinkLayerCallbacks class Bau07B0 : public BauSystemBDevice, public ITpUartCallBacks, public DataLinkLayerCallbacks
{ {

View File

@ -1,4 +1,5 @@
#include "tp_frame.h" #include "tp_frame.h"
#include "bits.h" #include "bits.h"
void TpFrame::printIt() const void TpFrame::printIt() const

View File

@ -1,9 +1,10 @@
#pragma once #pragma once
#include "cemi_frame.h" #include "../datalink_layer/cemi_frame.h"
#include "util/logger.h" #include "../util/logger.h"
#include <cstring> #include <cstring>
#include <stdint.h> #include <cstdint>
// Means that the frame is invalid // Means that the frame is invalid
#define TP_FRAME_FLAG_INVALID 0b10000000 #define TP_FRAME_FLAG_INVALID 0b10000000

View File

@ -1,11 +1,10 @@
#pragma GCC optimize("O3")
#include "address_table_object.h"
#include "cemi_frame.h"
#include "device_object.h"
#include "platform.h"
#include "tpuart_data_link_layer.h" #include "tpuart_data_link_layer.h"
#include "bits.h"
#include "../interface_object/address_table_object.h"
#include "../interface_object/device_object.h"
#include "../datalink_layer/cemi_frame.h"
#include "../platform/platform.h"
#include "../bits.h"
/* /*
* A new implementation of the tpuart connection. * A new implementation of the tpuart connection.

View File

@ -1,7 +1,8 @@
#pragma once #pragma once
#include "data_link_layer.h"
#include "tp_frame.h" #include "tp_frame.h"
#include "../datalink_layer/data_link_layer.h"
#include <stdint.h> #include <stdint.h>
#define MAX_KNX_TELEGRAM_SIZE 263 #define MAX_KNX_TELEGRAM_SIZE 263

View File

@ -1,6 +1,7 @@
#include "tpdu.h" #include "tpdu.h"
#include "cemi_frame.h" #include "cemi_frame.h"
#include "bits.h" #include "../bits.h"
TPDU::TPDU(uint8_t* data, CemiFrame& frame): _data(data), _frame(frame) TPDU::TPDU(uint8_t* data, CemiFrame& frame): _data(data), _frame(frame)
{ {

View File

@ -1,8 +1,10 @@
#pragma once #pragma once
#include "stdint.h" #include "../knx_types.h"
#include "knx_types.h" #include "../util/logger.h"
#include "util/logger.h"
#include <cstdint>
class CemiFrame; class CemiFrame;
class APDU; class APDU;

View File

@ -1,13 +1,13 @@
#include "transport_layer.h" #include "transport_layer.h"
#include "apdu.h"
#include "cemi_frame.h" #include "../application_layer/application_layer.h"
#include "network_layer.h" #include "../network_layer/network_layer.h"
#include "application_layer.h" #include "../platform/platform.h"
#include "platform.h" #include "../util/logger.h"
#include "util/logger.h"
#include <stdio.h>
#include "bits.h" #include "bits.h"
#include <stdio.h>
#define LOGGER Logger::logger("TransportLayer") #define LOGGER Logger::logger("TransportLayer")
TransportLayer::TransportLayer(ApplicationLayer& layer): _savedFrame(0), TransportLayer::TransportLayer(ApplicationLayer& layer): _savedFrame(0),

View File

@ -1,10 +1,11 @@
#pragma once #pragma once
#include <stdint.h>
#include "knx_types.h"
#include "tpdu.h" #include "tpdu.h"
#include "address_table_object.h" #include "../knx_types.h"
#include "cemi_frame.h" #include "../interface_object/address_table_object.h"
#include "../datalink_layer/cemi_frame.h"
#include <stdint.h>
class ApplicationLayer; class ApplicationLayer;
class APDU; class APDU;

View File

@ -1,11 +1,10 @@
#include "memory.h" #include "memory.h"
#include "util/logger.h" #include "logger.h"
#include "../bits.h"
#define LOGGER Logger::logger("Memory")
#include <string.h> #include <string.h>
#include "bits.h" #define LOGGER Logger::logger("Memory")
Memory::Memory(Platform& platform, DeviceObject& deviceObject) Memory::Memory(Platform& platform, DeviceObject& deviceObject)
: _platform(platform), _deviceObject(deviceObject) : _platform(platform), _deviceObject(deviceObject)

View File

@ -2,9 +2,9 @@
#include <stdint.h> #include <stdint.h>
#include "save_restore.h" #include "save_restore.h"
#include "platform.h" #include "../platform/platform.h"
#include "device_object.h" #include "../interface_object/device_object.h"
#include "table_object.h" #include "../interface_object/table_object.h"
#define MAXSAVE 5 #define MAXSAVE 5
#define MAXTABLEOBJ 4 #define MAXTABLEOBJ 4