Loading...
Searching...
No Matches

Detailed Description

#include "saul.h"
#include "periph/i2c.h"
+ Include dependency graph for ds75lx.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ds75lx_params_t
 Device initialization parameters. More...
 
struct  ds75lx_t
 Device descriptor for the DS75LX sensor. More...
 

Enumerations

enum  ds75lx_resolution_t { DS75LX_RESOLUTION_9 = 0 , DS75LX_RESOLUTION_10 , DS75LX_RESOLUTION_11 , DS75LX_RESOLUTION_12 }
 Thermometer resolution. More...
 
enum  { DS75LX_OK = 0 , DS75LX_ERR_I2C }
 Status and error return codes. More...
 

Functions

int ds75lx_init (ds75lx_t *dev, const ds75lx_params_t *params)
 Initialize the given DS75LX device.
 
int ds75lx_read_temperature (const ds75lx_t *dev, int16_t *temperature)
 Read temperature value from the given DS75LX device, returned in c°C.
 
int ds75lx_wakeup (const ds75lx_t *dev)
 Wakeup the sensor.
 
int ds75lx_shutdown (const ds75lx_t *dev)
 Shutdown the sensor.