ESP-Miner/main/thermal/TMP1075.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

16 lines
543 B
C

#ifndef TMP1075_H_
#define TMP1075_H_
#define TMP1075_I2CADDR_DEFAULT 0x4A ///< TMP1075 i2c address
#define TMP1075_TEMP_REG 0x00 ///< Temperature register
#define TMP1075_CONFIG_REG 0x01 ///< Configuration register
#define TMP1075_LOW_LIMIT 0x02 ///< Low limit register
#define TMP1075_HIGH_LIMIT 0x03 ///< High limit register
#define TMP1075_DEVICE_ID 0x0F ///< Device ID register
bool TMP1075_installed(int);
uint8_t TMP1075_read_temperature(int);
esp_err_t TMP1075_init(void);
#endif /* TMP1075_H_ */