Home
last modified time | relevance | path

Searched refs:PresenceSensor (Results 1 – 20 of 20) sorted by relevance

/openbmc/phosphor-fan-presence/presence/
H A Dpsensor.hpp23 class PresenceSensor class
26 PresenceSensor(const PresenceSensor&) = default;
27 PresenceSensor& operator=(const PresenceSensor&) = default;
28 PresenceSensor(PresenceSensor&&) = default;
29 PresenceSensor& operator=(PresenceSensor&&) = default;
30 virtual ~PresenceSensor() = default;
31 PresenceSensor() : id(nextId) in PresenceSensor() function in phosphor::fan::presence::PresenceSensor
79 friend bool operator==(const PresenceSensor& l, const PresenceSensor& r);
96 inline bool operator==(const PresenceSensor& l, const PresenceSensor& r) in operator ==()
H A Dfallback.hpp16 class PresenceSensor;
45 const std::vector<std::reference_wrapper<PresenceSensor>>& s, in Fallback()
60 const std::vector<std::reference_wrapper<PresenceSensor>>& s) : in Fallback()
74 void stateChanged(bool present, PresenceSensor& /*sensor*/) override;
85 std::vector<std::reference_wrapper<PresenceSensor>> sensors;
H A Danyof.hpp19 class PresenceSensor;
47 const std::vector<std::reference_wrapper<PresenceSensor>>& s,
57 const std::vector<std::reference_wrapper<PresenceSensor>>& s) : in AnyOf()
71 void stateChanged(bool present, PresenceSensor& sensor) override;
137 std::vector<std::tuple<std::reference_wrapper<PresenceSensor>, bool, bool>>
H A Djson_parser.hpp34 using fanPolicy = std::tuple<Fan, std::vector<std::unique_ptr<PresenceSensor>>>;
38 std::function<std::unique_ptr<PresenceSensor>(size_t, const json&)>;
148 std::unique_ptr<PresenceSensor> getTach(size_t fanIndex, const json& method);
158 std::unique_ptr<PresenceSensor> getGpio(size_t fanIndex, const json& method);
H A Drpolicy.hpp13 class PresenceSensor;
57 virtual void stateChanged(bool present, PresenceSensor& sensor) = 0;
H A Dgpio.hpp25 class Gpio : public PresenceSensor
122 class NullGpio : public PresenceSensor
H A Derror_reporter.hpp14 class PresenceSensor;
47 std::tuple<Fan, std::vector<std::unique_ptr<PresenceSensor>>>>&
H A Djson_parser.cpp125 std::vector<std::unique_ptr<PresenceSensor>> sensors; in process()
265 std::unique_ptr<PresenceSensor> getTach(size_t fanIndex, const json& method) in getTach()
286 std::unique_ptr<PresenceSensor> getGpio(size_t fanIndex, const json& method) in getGpio()
355 std::vector<std::reference_wrapper<PresenceSensor>> pSensors; in getAnyof()
370 std::vector<std::reference_wrapper<PresenceSensor>> pSensors; in getFallback()
H A Dpsensor.cpp24 std::size_t PresenceSensor::nextId = 1;
H A Danyof.cpp37 const std::vector<std::reference_wrapper<PresenceSensor>>& s, in AnyOf()
62 void AnyOf::stateChanged(bool present, PresenceSensor& sensor) in stateChanged()
H A Dtach.hpp27 class Tach : public PresenceSensor
H A Dfallback.cpp33 void Fallback::stateChanged(bool present, PresenceSensor& /*sensor*/) in stateChanged() argument
H A Derror_reporter.cpp49 std::tuple<Fan, std::vector<std::unique_ptr<PresenceSensor>>>>& fans) : in ErrorReporter()
/openbmc/dbus-sensors/src/
H A DTachSensor.hpp19 class PresenceSensor class
22 PresenceSensor(const std::string& gpioName, bool inverted,
24 ~PresenceSensor();
71 std::unique_ptr<PresenceSensor>&& presence,
88 std::unique_ptr<PresenceSensor> presence;
H A DTachSensor.cpp50 std::unique_ptr<PresenceSensor>&& presenceSensor, in TachSensor()
217 PresenceSensor::PresenceSensor(const std::string& gpioName, bool inverted, in PresenceSensor() function in PresenceSensor
255 PresenceSensor::~PresenceSensor() in ~PresenceSensor()
261 void PresenceSensor::monitorPresence() in monitorPresence()
282 void PresenceSensor::read() in read()
297 bool PresenceSensor::getValue() const in getValue()
H A DFanMain.cpp432 std::unique_ptr<PresenceSensor> presenceSensor(nullptr); in createSensors()
452 presenceSensor = std::make_unique<PresenceSensor>( in createSensors()
/openbmc/phosphor-fan-presence/presence/test/
H A Dfallbacktest.cpp30 class TestSensor : public PresenceSensor
74 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts}; in TEST()
107 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST()
153 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST()
192 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST()
225 std::vector<std::reference_wrapper<PresenceSensor>> sensors{ts1, ts2}; in TEST()
/openbmc/phosphor-fan-presence/presence/templates/
H A Dfallback.mako.hpp3 ${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
H A Danyof.mako.hpp3 ${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
H A Dgenerated.mako.hpp28 using Sensors = std::array<std::unique_ptr<PresenceSensor>, ${len(sensors)}>;