sensor_ds18b20.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
void sensor_ds18b20_setup(void);
uint64_t sensor_ds18b20_number(void);
bool sensor_ds18b20_only(void);
bool sensor_ds18b20_list(uint64_t* code);
bool sensor_ds18b20_convert(uint64_t code);
float sensor_ds18b20_temperature(uint64_t code);
bool sensor_ds18b20_precision(uint64_t code, uint8_t precision);
sensor_ds18b20_only
bool sensor_ds18b20_only(void)
verify if only DS18B20 sensors are on the bus
Definition: sensor_ds18b20.c:72
sensor_ds18b20_precision
bool sensor_ds18b20_precision(uint64_t code, uint8_t precision)
set conversion precision
Definition: sensor_ds18b20.c:144
sensor_ds18b20_temperature
float sensor_ds18b20_temperature(uint64_t code)
get converted temperature
Definition: sensor_ds18b20.c:113
sensor_ds18b20_convert
bool sensor_ds18b20_convert(uint64_t code)
start converting (e.g.
Definition: sensor_ds18b20.c:87
sensor_ds18b20_list
bool sensor_ds18b20_list(uint64_t *code)
send all DS18B20 slaves on the bus
Definition: sensor_ds18b20.c:78
sensor_ds18b20_number
uint64_t sensor_ds18b20_number(void)
get number of DS18B20 sensors on bus
Definition: sensor_ds18b20.c:46
sensor_ds18b20_setup
void sensor_ds18b20_setup(void)
setup 1-Wire peripheral to communicate with sensors on bus
Definition: sensor_ds18b20.c:40