From 26eb580043ad176bdc58d996f30d470e1073ef00 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 2 May 2024 21:52:59 +1000 Subject: move driver includes into a subdir as well --- src/drivers/include/adc.hpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/drivers/include/adc.hpp (limited to 'src/drivers/include/adc.hpp') diff --git a/src/drivers/include/adc.hpp b/src/drivers/include/adc.hpp deleted file mode 100644 index 3e94a9ee..00000000 --- a/src/drivers/include/adc.hpp +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2023 jacqueline - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#pragma once - -#include - -#include "esp_adc/adc_cali.h" -#include "esp_adc/adc_oneshot.h" -#include "esp_err.h" -#include "result.hpp" - -namespace drivers { - -/* - * Handles measuring the battery's current voltage. - */ -class AdcBattery { - public: - static auto Create() -> AdcBattery* { return new AdcBattery(); } - AdcBattery(); - ~AdcBattery(); - - /** - * Returns the current battery level in millivolts. - */ - auto Millivolts() -> uint32_t; - - private: - adc_oneshot_unit_handle_t adc_handle_; - adc_cali_handle_t adc_calibration_handle_; -}; - -} // namespace drivers -- cgit v1.2.3