91 lines
3.0 KiB
C++
91 lines
3.0 KiB
C++
#pragma once
|
|
|
|
#include "activation/activation_replay_service.h"
|
|
#include "adapters/effect_router.h"
|
|
#include "adapters/esp_audio_engine.h"
|
|
#include "app/application.h"
|
|
#include "connectivity/connectivity_manager.h"
|
|
#include "connectivity/dual_network_transport.h"
|
|
#include "connectivity/wifi_credential_store.h"
|
|
#include "configuration/remote_behavior_config.h"
|
|
#include "diagnostics/audio_tap.h"
|
|
#include "diagnostics/runtime_diagnostics_service.h"
|
|
#include "friend/friend_service.h"
|
|
#include "friend/friend_store.h"
|
|
#include "memory/memory_cache.h"
|
|
#include "platform/borla_s3/borla_s3_platform.h"
|
|
#include "platform/borla_s3/battery_monitor.h"
|
|
#include "platform/borla_s3/ble_friend_exchange.h"
|
|
#include "platform/borla_s3/bmi270_sensor.h"
|
|
#include "platform/borla_s3/button_input.h"
|
|
#include "platform/borla_s3/capacitive_touch_input.h"
|
|
#include "platform/borla_s3/es8311_audio_output.h"
|
|
#include "platform/borla_s3/esp_websocket_transport.h"
|
|
#include "platform/borla_s3/esp_wifi_transport.h"
|
|
#include "platform/borla_s3/i2c_bus.h"
|
|
#include "platform/borla_s3/ml307_transport.h"
|
|
#include "ota/ota_service.h"
|
|
#include "provisioning/ble_provisioning_service.h"
|
|
#include "power/idle_service.h"
|
|
#include "power/power_service.h"
|
|
#include "protocol/realtime_config.h"
|
|
#include "protocol/realtime_protocol.h"
|
|
#include "sensor/sensor_service.h"
|
|
#include "schedule/alarm_service.h"
|
|
#include "schedule/alarm_store.h"
|
|
#include "schedule/alert_ringer.h"
|
|
#include "schedule/reminder_service.h"
|
|
#include "schedule/schedule_coordinator.h"
|
|
#include "platform/borla_s3/tca9555.h"
|
|
namespace borla {
|
|
|
|
class CompositionRoot final {
|
|
public:
|
|
CompositionRoot();
|
|
|
|
bool Initialize();
|
|
[[noreturn]] void Run();
|
|
|
|
private:
|
|
bool InitializeSystemServices();
|
|
BorlaS3I2cBus i2c_bus_;
|
|
TCA9555 tca9555_;
|
|
BorlaS3Platform platform_;
|
|
Es8311AudioOutput audio_output_;
|
|
EspAudioEngine audio_;
|
|
ActivationReplayService activation_replay_;
|
|
NvsMemoryCache memory_cache_;
|
|
NvsRemoteBehaviorConfig remote_behavior_config_;
|
|
RuntimeDiagnosticsService diagnostics_;
|
|
AudioTap audio_tap_;
|
|
NvsWifiCredentialStore wifi_credentials_;
|
|
EspWifiTransport wifi_transport_;
|
|
Ml307Transport cellular_transport_;
|
|
DualNetworkTransport dual_network_transport_;
|
|
ConnectivityManager connectivity_;
|
|
NvsRealtimeConfigStore realtime_config_;
|
|
EspWebsocketTransport websocket_transport_;
|
|
RealtimeProtocol realtime_;
|
|
BleFriendExchange ble_friend_exchange_;
|
|
NvsFriendStore friend_store_;
|
|
FriendService friend_service_;
|
|
CapacitiveTouchInput touch_;
|
|
Bmi270Sensor imu_;
|
|
BatteryMonitor battery_;
|
|
SensorService sensors_;
|
|
NvsAlarmStore alarm_store_;
|
|
ReminderService reminders_;
|
|
AlarmService alarms_;
|
|
ScheduleCoordinator schedule_;
|
|
AlertRinger alert_ringer_;
|
|
BleProvisioningService provisioning_;
|
|
OtaService ota_;
|
|
PowerService power_;
|
|
EffectRouter effect_router_;
|
|
Application application_;
|
|
IdleService idle_;
|
|
ButtonInput button_;
|
|
};
|
|
|
|
} // namespace borla
|