esp32-warm-water
esp32 based project for the control of a heating element based on temperature
|
definitions for wrapper component to help setup and interface with temp sensor More...
Go to the source code of this file.
Functions | |
int | ds18b20_wrapped_init (void) |
init the sensor intitialises the onewire bus and finds and intialises ds18b20 sensors along the pin More... | |
void | ds18b20_wrapped_deinit (void) |
deinit the sensor cleans up and frees all of the devices and the onewire bus More... | |
void | ds18b20_wrapped_read (void) |
print the temps runs conversion on all the owb devices, waits for the conversion and then prints out the results when it receives them More... | |
void | ds18b20_wrapped_capture (float *results, int size) |
capture temps to results this function runs conversion on all the owb devices, waits for conversion to finish and then reads the temperatures into the provided results array More... | |
definitions for wrapper component to help setup and interface with temp sensor
Definition in file ds18b20_wrapper.h.
void ds18b20_wrapped_capture | ( | float * | results, |
int | size | ||
) |
capture temps to results this function runs conversion on all the owb devices, waits for conversion to finish and then reads the temperatures into the provided results array
[in] | results | a pointer to the array to capture results to |
[out] | results | the array pointer that has been populated with data |
size | the number of devices found and the size of the results array |
Definition at line 248 of file ds18b20_wrapper.c.
void ds18b20_wrapped_deinit | ( | void | ) |
deinit the sensor cleans up and frees all of the devices and the onewire bus
Definition at line 174 of file ds18b20_wrapper.c.
int ds18b20_wrapped_init | ( | void | ) |
init the sensor intitialises the onewire bus and finds and intialises ds18b20 sensors along the pin
Definition at line 61 of file ds18b20_wrapper.c.
void ds18b20_wrapped_read | ( | void | ) |
print the temps runs conversion on all the owb devices, waits for the conversion and then prints out the results when it receives them
Definition at line 195 of file ds18b20_wrapper.c.