Files
a2bfc/ow-temp.h
2007-09-24 03:27:51 +00:00

19 lines
409 B
C

#ifndef OW_TEMP_H
#define OW_TEMP_H
#include "ow.h"
// 1-Wire temperature sensor functions
// (works with DS18B20; unknown if it'll work with others)
short ow_temp_read(unsigned char* devid, unsigned char format);
unsigned char ow_temp_idcheck(unsigned char* devid);
// 1-Wire temperature sensor constants
#define OW_TEMP_RAW 0
#define OW_TEMP_FAHRENHEIT 1
#define OW_TEMP_CELSIUS 2
#endif // OW_TEMP_H