Device driver interface for the HSC sensor. More...
Device driver interface for the HSC sensor.
Definition in file hsc.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. More... | |
| int | hsc_read_temperature (const hsc_t *dev, int16_t *dest) |
| Read temperature value from the given HSC device, returned in 0.1°C. More... | |
| int | hsc_read_pressure (const hsc_t *dev, int32_t *dest) |
| Read pressure value from the given HSC device, returned in uBar. More... | |
Default configuration values | |
| #define | CONFIG_HSC_I2C_ADDR (0x28) |
| Use address 0x28 by default. | |
| #define | CONFIG_HSC_RANGE (40U) |
| Default to 40 millibar range. | |