Files
cariflex/tools/EVerest-main/modules/API/API/limit_decimal_places.hpp
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

30 lines
839 B
C++

// SPDX-License-Identifier: Apache-2.0
// Copyright Pionix GmbH and Contributors to EVerest
#ifndef LIMIT_DECIMAL_PLACES_HPP
#define LIMIT_DECIMAL_PLACES_HPP
#include <generated/interfaces/evse_manager/Interface.hpp>
#include "API.hpp"
namespace module {
struct Conf;
class LimitDecimalPlaces {
public:
LimitDecimalPlaces(const Conf& config) : config(config){};
std::string limit(const types::powermeter::Powermeter& powermeter);
std::string limit(const types::evse_board_support::HardwareCapabilities& hw_capabilities);
std::string limit(const types::evse_manager::Limits& limits);
std::string limit(const types::evse_board_support::Telemetry& telemetry);
double round_to_nearest_step(double value, double step);
private:
const Conf& config;
};
} // namespace module
#endif // LIMIT_DECIMAL_PLACES_HPP