Loading...
Searching...
No Matches

Device driver interface for the HSC sensor. More...

Detailed Description

Device driver interface for the HSC sensor.

Author
Quang Pham phhr_.nosp@m.quan.nosp@m.g@liv.nosp@m.e.co.nosp@m.m

Definition in file hsc.h.

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

Go to the source code of this file.

Data Structures

struct  hsc_params_t
 Device initialization parameters. More...
 
struct  hsc_t
 Device descriptor for the HSC sensor. More...
 

Functions

int hsc_init (hsc_t *dev, const hsc_params_t *params)
 Initialize the given HSC device.
 
int hsc_read_temperature (const hsc_t *dev, int16_t *dest)
 Read temperature value from the given HSC device, returned in 0.1°C.
 
int hsc_read_pressure (const hsc_t *dev, int32_t *dest)
 Read pressure value from the given HSC device, returned in uBar.
 

Default configuration values

#define CONFIG_HSC_I2C_ADDR   (0x28)
 Use address 0x28 by default.
 
#define CONFIG_HSC_RANGE   (40U)
 Default to 40 millibar range.