2024-06-13 08:01:47 +00:00
|
|
|
/**
|
|
|
|
* @ Author: Yifan Chen
|
|
|
|
* @ Create Time: 2024-06-13 09:38:54
|
|
|
|
* @ Modified by: Yifan Chen
|
2024-06-20 08:28:15 +00:00
|
|
|
* @ Modified time: 2024-06-14 10:32:44
|
2024-06-13 08:01:47 +00:00
|
|
|
* @ Description:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DS18B20_H
|
|
|
|
#define DS18B20_H
|
|
|
|
extern float ds18b20_read_temp(unsigned char ch);
|
|
|
|
extern void ds18b20_start_convert(unsigned char ch);
|
|
|
|
extern void ds18b20_io_init(unsigned char ch);
|
|
|
|
extern char ds18b20_rst(unsigned char io);
|
|
|
|
extern unsigned char ds18b20_read_data(unsigned char ch);
|
|
|
|
extern void ds18b20_write_data(unsigned char ch, unsigned char byte);
|
2024-06-20 08:28:15 +00:00
|
|
|
|
|
|
|
#ifdef TIME_CHECK
|
|
|
|
|
|
|
|
#endif
|
2024-06-13 08:01:47 +00:00
|
|
|
#endif
|