2021-03-21 21:29:31 +00:00
|
|
|
|
|
|
|
#include "System.h"
|
|
|
|
|
2021-05-18 22:44:37 +00:00
|
|
|
System::System() : _boardConfig(0), _userConfig(0), _isWifiEthConnected(false) {
|
2021-03-21 21:29:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
System::~System() {
|
|
|
|
}
|
|
|
|
|
2021-05-18 22:44:37 +00:00
|
|
|
void System::setBoardConfig(BoardConfig const *const boardConfig) {
|
|
|
|
_boardConfig = boardConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
void System::setUserConfig(Configuration const *const userConfig) {
|
|
|
|
_userConfig = userConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
BoardConfig const *const System::getBoardConfig() const {
|
2021-03-21 21:29:31 +00:00
|
|
|
return _boardConfig;
|
|
|
|
}
|
|
|
|
|
2021-05-18 22:44:37 +00:00
|
|
|
Configuration const *const System::getUserConfig() const {
|
2021-03-21 21:29:31 +00:00
|
|
|
return _userConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
TaskManager &System::getTaskManager() {
|
|
|
|
return _taskManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
Display &System::getDisplay() {
|
|
|
|
return _display;
|
|
|
|
}
|
2021-03-27 21:02:43 +00:00
|
|
|
|
|
|
|
bool System::isWifiEthConnected() const {
|
|
|
|
return _isWifiEthConnected;
|
|
|
|
}
|
|
|
|
|
|
|
|
void System::connectedViaWifiEth(bool status) {
|
|
|
|
_isWifiEthConnected = status;
|
|
|
|
}
|