#pragma once #include #include #include #include #include #include #include #include struct MCUTempSensor : public Sensor { MCUTempSensor(std::shared_ptr& conn, boost::asio::io_context& io, const std::string& name, const std::string& sensorConfiguration, sdbusplus::asio::object_server& objectServer, std::vector&& thresholdData, uint8_t busId, uint8_t mcuAddress, uint8_t tempReg); ~MCUTempSensor() override; void checkThresholds(void) override; void read(void); void init(void); uint8_t busId; uint8_t mcuAddress; uint8_t tempReg; private: int getMCURegsInfoWord(uint8_t regs, int32_t* pu32data) const; sdbusplus::asio::object_server& objectServer; boost::asio::steady_timer waitTimer; };