ESP-Miner/main/thermal/thermal.h
Skot 7dcb69ebdc
GammaTurbo support and HW abstraction (#698)
* initial changes for the gammaturbo bringup
* added preliminary TPS546 changes
* added preliminary EMC2103 support
* ASIC temp seems to be maybe working.
* magically now fan seems to have the right polarity
* added in ideality and beta constants (currently unused). Fixed EMC2103_get_fan_speed()
* abstract fan and ASIC temp into thermal functions
* abstracted voltage regulator specifics out of tasks and into power.c and vcore.c functions
* add TPS546 support for multiple models
* move TPS40305/DS4432U vout setter to DS4432U.c
* move all ASIC specific functions to asic.c
* bad device_model nvs handling
* remove old code
* add workaround for TPS546 VIN_UV_WARN_LIMIT silicon bug.
2025-02-11 22:46:56 -05:00

17 lines
426 B
C

#ifndef THERMAL_H
#define THERMAL_H
#include <stdbool.h>
#include <esp_err.h>
#include "EMC2101.h"
#include "EMC2103.h"
#include "global_state.h"
esp_err_t Thermal_init(DeviceModel device_model, bool polarity);
esp_err_t Thermal_set_fan_percent(DeviceModel device_model, float percent);
uint16_t Thermal_get_fan_speed(DeviceModel device_model);
float Thermal_get_chip_temp(GlobalState * GLOBAL_STATE);
#endif // THERMAL_H