update lookup table example

This commit is contained in:
Amar Mahmutbegovic
2024-09-23 00:17:56 +02:00
parent 6090eba6d3
commit 87087b3bfb
11 changed files with 301 additions and 72 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include <expected>
#include <units.hpp>
namespace hal
{
class adc {
public:
enum class error {
timeout
};
virtual void init() = 0;
virtual std::expected<units::voltage, adc::error> get_reading() = 0;
};
};