mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-19 06:12:17 +01:00
* port TCH Supra 402 branch * refactor TMP1075 (unused?) driver using i2c_master module * pulled in @Bitmaker-hub stratum_task.c DNS changes from PR #185 * removing serial debug --------- Co-authored-by: Skot <skot@bitnet.cx>
15 lines
513 B
C
15 lines
513 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);
|
|
|
|
#endif /* TMP1075_H_ */
|