Device driver interface for the HSC sensor.
More...
Device driver interface for the HSC sensor.
This driver provides [S]ensor [A]ctuator [U]ber [L]ayer capabilities.
|
| file | hsc_internals.h |
| | Internal addresses, constants for the HSC sensor.
|
| |
| file | hsc_params.h |
| | Default configuration for HSC.
|
| |
| file | hsc.h |
| | Device driver interface for the HSC sensor.
|
| |
◆ hsc_init()
Initialize the given HSC device.
- Parameters
-
| [out] | dev | Initialized device descriptor of HSC device |
| [in] | params | Initialization parameters |
- Return values
-
| 0 | Success |
| -ENXIO | No HSC at given address |
- Returns
- -EIO An error occurred when reading calibration values
◆ hsc_read_pressure()
| int hsc_read_pressure |
( |
const hsc_t * |
dev, |
|
|
int32_t * |
dest |
|
) |
| |
Read pressure value from the given HSC device, returned in uBar.
- Parameters
-
| [in] | dev | Device descriptor of HSC device to read from |
| [out] | dest | Pressure in uBar |
- Return values
-
| 0 | Success |
| -ENXIO | No HSC at given address |
- Returns
- -EIO An error occurred when reading calibration values
◆ hsc_read_temperature()
| int hsc_read_temperature |
( |
const hsc_t * |
dev, |
|
|
int16_t * |
dest |
|
) |
| |
Read temperature value from the given HSC device, returned in 0.1°C.
- Parameters
-
| [in] | dev | Device descriptor of HSC device to read from |
| [out] | dest | Temperature in 0.1°C |
- Return values
-
| 0 | Success |
| -ENXIO | No HSC at given address |
- Returns
- -EIO An error occurred when reading calibration values