diff --git a/src/drivers/vishaytherm.cpp b/src/drivers/vishaytherm.cpp new file mode 100644 index 0000000..4d1dcf3 --- /dev/null +++ b/src/drivers/vishaytherm.cpp @@ -0,0 +1,14 @@ +#include "drivers/vishaytherm.hpp" + +#include "unit_config.hpp" + +void VishayTherm::init() { +} + +ThermistorReading VishayTherm::readTherm() { + ThermistorReading reading; + + reading.celsius = 2.345f; + + return reading; +} diff --git a/src/drivers/vishaytherm.hpp b/src/drivers/vishaytherm.hpp new file mode 100644 index 0000000..8c87d9f --- /dev/null +++ b/src/drivers/vishaytherm.hpp @@ -0,0 +1,19 @@ +#ifndef VISHAYTHERM_HPP_ +#define VISHAYTHERM_HPP_ + +#include + +#include "hal.h" + +#include "drivers/adc_device.hpp" +#include "sensor/thermistor.hpp" + +class VishayTherm : protected ADCDevice<2, 4>, public Thermistor { +public: + using ADCDevice::ADCDevice; + + void init() override; + ThermistorReading readTherm() override; +}; + +#endif