OneWire + DS18X20 Library
Basic functions for OneWire operations + specific DS18x20 operations
|
Macros | |
#define | ds18B20_convert_t(x) ds18x20_convert_t(x) |
#define | ds18S20_convert_t(x) ds18x20_convert_t(x) |
#define | ds18B20_read_scratchpad(x) ds18x20_read_scratchpad(x) |
#define | ds18S20_read_scratchpad(x) ds18x20_read_scratchpad(x) |
#define | ds18B20_copy_scratchpad(x) ds18x20_copy_scratchpad(x); |
#define | ds18S20_copy_scratchpad(x) ds18x20_copy_scratchpad(x); |
#define | ds18B20_recall_E2(x) ds18x20_recall_E2(x) |
#define | ds18S20_recall_E2(x) ds18x20_recall_E2(x) |
#define | ds18B20_read_power_supply(x) ds18x20_read_power_supply(x) |
#define | ds18S20_read_power_supply(x) ds18x20_read_power_supply(x) |
Functions | |
uint8_t | ds18x20_convert_t (uint8_t parasitic_power) |
start temperature conversion More... | |
int16_t | ds18x20_read_temp (void) |
Read temperature from DS18x20. More... | |
int16_t | ds18B20_read_temp (void) |
Read temperature from DS18B20 (12 bit resolution) More... | |
int16_t | ds18S20_read_temp (void) |
Read temperature from DS18S20 (9 bit resolution) More... | |
void | ds18x20_read_scratchpad (uint8_t *buffer) |
Read complete scratchpad of DS18x20 (9 bytes) More... | |
void | ds18S20_write_scratchpad (int8_t th, int8_t tl) |
write th and tl of DS18S20 More... | |
void | ds18B20_write_scratchpad (uint8_t th, uint8_t tl, uint8_t config) |
write th, tl and configuration of DS18B20 More... | |
void | ds18x20_copy_scratchpad (uint8_t parasitic_power) |
copy scratchpad to EEPROM, busy waiting (10ms), More... | |
void | ds18x20_recall_E2 (void) |
copy EEPROM to scratchpad, busy waiting (1ms) More... | |
uint8_t | ds18x20_read_power_supply (void) |
read power supply More... | |
standard functions
uint8_t ds18x20_convert_t | ( | uint8_t | parasitic_power | ) |
int16_t ds18x20_read_temp | ( | void | ) |
int16_t ds18B20_read_temp | ( | void | ) |
int16_t ds18S20_read_temp | ( | void | ) |
void ds18x20_read_scratchpad | ( | uint8_t * | buffer | ) |
void ds18S20_write_scratchpad | ( | int8_t | th, |
int8_t | tl | ||
) |
void ds18B20_write_scratchpad | ( | uint8_t | th, |
uint8_t | tl, | ||
uint8_t | config | ||
) |
void ds18x20_copy_scratchpad | ( | uint8_t | parasitic_power | ) |
void ds18x20_recall_E2 | ( | void | ) |