Contiki 3.x
|
Driver for the DS18B20 temperature sensor.More...
#include "onewire.h"
Go to the source code of this file.
Functions | |
void | ds18b20_init (void) |
Initialize the DS18B20 driver. More... | |
void | ds18b20_convert_temperature (const ow_rom_code_t id) |
Tell a DS18B20 sensor to initiate a temperature conversion. More... | |
uint8_t | ds18b20_read_scratchpad (const ow_rom_code_t id, uint8_t *dest) |
Read the scratchpad of a DS18B20 sensor. More... | |
Driver for the DS18B20 temperature sensor.
Definition in file ds18b20.h.
void ds18b20_convert_temperature | ( | const ow_rom_code_t | id | ) |
Tell a DS18B20 sensor to initiate a temperature conversion.
id | The ROM code of the sensor, 0 for SKIP ROM. |
Definition at line 64 of file ds18b20.c.
References ow_skip_or_match_rom(), and ow_write_bytes().
void ds18b20_init | ( | void | ) |
uint8_t ds18b20_read_scratchpad | ( | const ow_rom_code_t | id, |
uint8_t * | dest | ||
) |
Read the scratchpad of a DS18B20 sensor.
id | The ROM code of the sensor, 0 for SKIP ROM. |
dest | A destination buffer, must be at least 9 bytes long. |
Definition at line 85 of file ds18b20.c.
References ow_compute_crc(), ow_read_bytes(), ow_skip_or_match_rom(), and ow_write_bytes().