Interface definition for the ADT7310 sensor driver. More...
Interface definition for the ADT7310 sensor driver.
Definition in file adt7310.h.
Go to the source code of this file.
Data Structures | |
struct | adt7310_t |
Device descriptor for ADT7310 sensors. More... | |
Functions | |
int | adt7310_set_config (adt7310_t *dev, uint8_t config) |
Set configuration register of an ADT7310 sensor. | |
int | adt7310_init (adt7310_t *dev, spi_t spi, spi_clk_t clk, gpio_t cs) |
Initialize the ADT7310 sensor driver. | |
int16_t | adt7310_read_raw (const adt7310_t *dev) |
Read raw temperature register value. | |
int32_t | adt7310_read (const adt7310_t *dev) |
Read temperature value from sensor and convert to milli-degrees Celsius. | |
float | adt7310_read_float (const adt7310_t *dev) |
Read temperature value from sensor and convert to degrees Celsius. | |