34 #include <mraa/common.hpp> 35 #include <mraa/uart_ow.hpp> 39 #define DS18B20_DEFAULT_UART 0 128 DS18B20(
int uart=DS18B20_DEFAULT_UART);
148 void update(
int index=-1);
170 void setResolution(
unsigned int index, DS18B20_RESOLUTIONS_T res);
209 std::string
getId(
unsigned int index);
unsigned int ds18b20_devices_found(const ds18b20_context dev)
Definition: ds18b20.c:378
DS18B20(int uart=DS18B20_DEFAULT_UART)
Definition: ds18b20.cxx:39
float getTemperature(unsigned int index, bool fahrenheit=false)
Definition: ds18b20.cxx:66
int devicesFound()
Definition: ds18b20.hpp:196
~DS18B20()
Definition: ds18b20.cxx:47
void copyScratchPad(unsigned int index)
Definition: ds18b20.cxx:89
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
API for the DS18B20 1-Wire Temperature Sensor.
Definition: ds18b20.hpp:114
C API for the DS18B20 1-Wire Temperature Sensor.
void recallEEPROM(unsigned int index)
Definition: ds18b20.cxx:100
void setResolution(unsigned int index, DS18B20_RESOLUTIONS_T res)
Definition: ds18b20.cxx:78
void init()
Definition: ds18b20.cxx:52
std::string getId(unsigned int index)
Definition: ds18b20.cxx:111
void update(int index=-1)
Definition: ds18b20.cxx:57