Firmware  0.0.0
Loading...
Searching...
No Matches
convert.hpp
Go to the documentation of this file.
1// Copyright (C) 2025 Vincent Hamp
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
21
22#pragma once
23
24#include <esp_adc/adc_cali.h>
25
26namespace analog {
27
32
33inline adc_cali_handle_t cali_handle{};
34
35} // namespace analog
Definition adc_task_function.cpp:30
ztl::implicit_wrapper< ztl::smallest_signed_t< 0, max_measurement >, struct CurrentMeasurementTag > CurrentMeasurement
Definition config.hpp:236
ztl::implicit_wrapper< CurrentMeasurement::value_type, struct CurrentTag > Current
Definition config.hpp:240
VoltageMeasurement mV2measurement(Voltage mV)
Convert Voltage to VoltageMeasurement.
Definition convert.cpp:55
ztl::implicit_wrapper< VoltageMeasurement::value_type, struct VoltageTag > Voltage
Definition config.hpp:233
Voltage measurement2mV(VoltageMeasurement meas)
Convert VoltageMeasurement to Voltage.
Definition convert.cpp:46
adc_cali_handle_t cali_handle
Definition convert.hpp:33
CurrentMeasurement mA2measurement(Current mA)
Convert Current to CurrentMeasurement.
Definition convert.cpp:73
ztl::implicit_wrapper< ztl::smallest_signed_t< 0, max_measurement >, struct VoltageMeasurementTag > VoltageMeasurement
Definition config.hpp:229
Current measurement2mA(CurrentMeasurement meas)
Convert CurrentMeasurement to Current.
Definition convert.cpp:65