10#define SYSTEM_CONFIG_H
14#include "esp_partition.h"
18#include "mqtt_client.h"
23#define EVENT_BUS_QUEUE_SIZE (50U)
25#define RS485_DRIVER_RX_BUFFER_SIZE (2048U)
26#define RS485_DRIVER_RX_QUEUE_SIZE (20U)
28#define SYSTEM_CONFIG_WIFI_SSID (CONFIG_WIFI_SSID)
29#define SYSTEM_CONFIG_WIFI_PASSWORD (CONFIG_WIFI_PASSWORD)
30#define SYSTEM_CONFIG_MQTT_URI (CONFIG_MQTT_URI)
31#define SYSTEM_CONFIG_MQTT_USER (CONFIG_MQTT_USER)
32#define SYSTEM_CONFIG_MQTT_PASSWORD (CONFIG_MQTT_PASSWORD)
34#define SYSTEM_CONFIG_NVS_PARTITION_NAME ("nvs")
35#define SYSTEM_CONFIG_LOGGER_PARTITION_NAME ("log_storage")
36#define SYSTEM_CONFIG_LOGGER_PARTITION_SUBTYPE (0x40)
37#define SYSTEM_CONFIG_CERTS_PARTITION_LABEL ("certs")
38#define SYSTEM_CONFIG_CERTS_PARTITION_SUBTYPE (0x41)
39#define SYSTEM_CONFIG_MTLS_HEADER_MAGIC \
43#define BLACKBOX_LOGGER_DISK_FLUSH_TIMEOUT_US \
44 (CONFIG_BLACKBOX_LOGGER_FLUSH_TIMEOUT)
45#define BLACKBOX_LOGGER_SECTOR_SIZE (CONFIG_BLACKBOX_LOGGER_SECTOR_SIZE)
46#define BLACKBOX_LOGGER_BATCH_SIZE (CONFIG_BLACKBOX_LOGGER_BATCH_SIZE)
47#define BLACKBOX_LOGGER_ALIGN (CONFIG_BLACKBOX_LOGGER_ALIGNMENT)
49#define SYSTEM_CONFIG_SAVE_PERIOD_US \
50 (CONFIG_SYSTEM_CONFIG_SAVE_PERIOD)
Flash-backed circular logging system.
RS485 passive sniffer (RX-only) driver.
BlackBox logger configuration structure.
Definition blackbox_logger.h:66
Modbus analyzer configuration structure.
Definition modbus_analyzer.h:42
MQTT bridge configuration structure.
Definition mqtt_bridge.h:27
NVS manager driver hooks.
Definition nvs_manager.h:47
RS485 driver configuration structure.
Definition rs485_driver.h:50
void system_config_reset(void)
Reset system config.
Definition system_config.c:419
esp_err_t system_config_setup_defaults(void)
Setup default configurations.
Definition system_config.c:223
rs485_driver_config_t * system_config_get_rs485_driver_config(void)
Get rs485 driver configuration.
Definition system_config.c:394
modbus_analyzer_config_t * system_config_get_modbus_analyzer_config(void)
Get Modbus analyzer configuration.
Definition system_config.c:399
esp_err_t system_config_setup(void)
Setup system configurations.
Definition system_config.c:293
blackbox_logger_config_t * system_config_get_blackbox_logger_config(void)
Get Blackbox logger configuration.
Definition system_config.c:404
wifi_config_t * system_config_get_wifi_config(void)
Get WiFi configuration.
Definition system_config.c:409
mqtt_bridge_config_t * system_config_get_mqtt_config(void)
Get MQTT bridge configuration.
Definition system_config.c:389
nvs_manager_ops_t * system_config_get_nvs_manager_ops(void)
Get NVS operations.
Definition system_config.c:414