Fetch the repository succeeded.
#pragma once
#include "conf.hpp"
#include "pid/ec/pid.hpp"
#include <phosphor-logging/log.hpp>
#include <sdbusplus/bus.hpp>
#include <cstdint>
#include <limits>
#include <map>
#include <string>
namespace pid_control
{
void tryRestartControlLoops(bool first = true);
/*
* Given a configuration structure, fill out the information we use within the
* PID loop.
*/
void initializePIDStruct(ec::pid_info_t* info, const ec::pidinfo& initial);
void dumpPIDStruct(ec::pid_info_t* info);
struct SensorThresholds
{
double lowerThreshold = std::numeric_limits<double>::quiet_NaN();
double upperThreshold = std::numeric_limits<double>::quiet_NaN();
};
const std::string sensorintf = "xyz.openbmc_project.Sensor.Value";
const std::string criticalThreshInf =
"xyz.openbmc_project.Sensor.Threshold.Critical";
const std::string propertiesintf = "org.freedesktop.DBus.Properties";
/*
* Given a path that optionally has a glob portion, fill it out.
*/
std::string FixupPath(std::string original);
/*
* Splice together two vectors, "Inputs" and "TempToMargin" from JSON,
* into one vector of SensorInput structures containing info from both.
*/
std::vector<conf::SensorInput>
spliceInputs(const std::vector<std::string>& inputNames,
const std::vector<double>& inputTempToMargin,
const std::vector<std::string>& missingAcceptableNames);
/*
* Recovers the original "Inputs" vector from spliceInputs().
*/
std::vector<std::string>
splitNames(const std::vector<conf::SensorInput>& sensorInputs);
/*
* Dump active configuration.
*/
void debugPrint(const std::map<std::string, conf::SensorConfig>& sensorConfig,
const std::map<int64_t, conf::PIDConf>& zoneConfig,
const std::map<int64_t, conf::ZoneConfig>& zoneDetailsConfig);
} // namespace pid_control
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。