29 lines
560 B
C
29 lines
560 B
C
///Copyright (c) 2022, 四川汇源光通信有限公司
|
|
///All rights reserved.
|
|
///@file tmp75.h
|
|
///@brief tmp75驱动程序
|
|
///
|
|
///@details
|
|
///@note
|
|
///@author lqc
|
|
///@date 2022/05/23
|
|
///
|
|
///@version v1.0 2022/05/23 初始版本
|
|
|
|
#ifndef __TMP75_H_
|
|
#define __TMP75_H_
|
|
|
|
#include "gd32f4xx.h"
|
|
#include "drv_i2c.h"
|
|
|
|
|
|
#define TMP75_SCL_HIGH I2C_SCL_HIGH
|
|
#define TMP75_SCL_LOW I2C_SCL_LOW
|
|
|
|
#define TMP75_SDA_HIGH I2C_SDA_HIGH
|
|
#define TMP75_SDA_LOW I2C_SDA_LOW
|
|
#define TMP75_SDA_GET I2C_SDA_GET
|
|
|
|
float tmp75_read_temp(void);
|
|
|
|
#endif |