openpilot/selfdrive/hardware/base.h

26 lines
601 B
C
Raw Normal View History

2021-03-24 11:12:09 -06:00
#pragma once
#include <cstdlib>
#include <fstream>
2021-03-24 11:12:09 -06:00
// no-op base hw class
class HardwareNone {
public:
static constexpr float MAX_VOLUME = 0;
static constexpr float MIN_VOLUME = 0;
static std::string get_os_version() { return ""; }
2021-03-24 11:12:09 -06:00
static void reboot() {}
static void poweroff() {}
static void set_brightness(int percent) {}
static void set_display_power(bool on) {}
2021-03-24 11:12:09 -06:00
static bool get_ssh_enabled() { return false; }
static void set_ssh_enabled(bool enabled) {}
static bool PC() { return false; }
static bool EON() { return false; }
static bool TICI() { return false; }
2021-03-24 11:12:09 -06:00
};