boothifier/include/my_tsensor.h

24 lines
402 B
C

#pragma once
#include <Temperature_LM75_Derived.h>
#include "PWM_Output.h"
typedef struct{
bool enabled;
float temperature;
float Setpoint1;
float Setpoint2;
float fanPower1;
float fanPower2;
float hyst;
}T_SENSOR;
extern T_SENSOR tSensorSettings;
extern TI_TMP102_Compatible *tSensor;
void Init_TSensor(uint8_t addr);
void UpdateFanControl(float temperature, PWM_Output* pwmOut);