Honeywell ABP2 series pressure and temperature sensor driver. More...
Honeywell ABP2 series pressure and temperature sensor driver.
Definition in file abp2.h.
#include "saul.h"
Include dependency graph for abp2.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | abp2_params |
| Parameters for ABP2 sensors. More... | |
| struct | abp2 |
| Device descriptor for ABP2 sensors. More... | |
| struct | abp2_raw |
| Raw values read from a ABP2 sensor. More... | |
Macros | |
| #define | ABP2_STATUS_BUSY 0x20 |
| Sensor is busy. | |
| #define | ABP2_STATUS_MEMERR 0x04 |
| Memory integrity error. | |
| #define | ABP2_STATUS_MATHSAT 0x01 |
| Math saturation error. | |
| #define | ABP2_STATUS_MASK (ABP2_STATUS_BUSY | ABP2_STATUS_MEMERR | ABP2_STATUS_MATHSAT) |
| A bitwise AND of the status byte with this mask will return true in case of error. | |
Typedefs | |
| typedef struct abp2_params | abp2_params_t |
| Parameters for ABP2 sensors. More... | |
| typedef struct abp2 | abp2_t |
| Device descriptor for ABP2 sensors. | |
| typedef struct abp2_raw | abp2_raw_t |
| Raw values read from a ABP2 sensor. | |
Functions | |
| int | abp2_init (abp2_t *dev, const abp2_params_t *params) |
| Initialize the ABP2 sensor. More... | |
| int | abp2_measure (const abp2_t *dev) |
| Let the sensor make one measurement. More... | |
| int | abp2_read (const abp2_t *dev, int32_t *press, int32_t *temp) |
| Measure pressure and temperature (blocking version). More... | |
| int | abp2_read_nb (const abp2_t *dev, int32_t *press, int32_t *temp) |
| Measure pressure and temperature (non-blocking version). More... | |
| uint8_t | abp2_getstatus (const abp2_t *dev) |
| Read the status byte of the sensor. More... | |
| int | abp2_read_raw (const abp2_t *dev, abp2_raw_t *raw_values) |
| Read pressure and temperature raw values. More... | |
| int | abp2_measure_read (const abp2_t *dev, abp2_raw_t *raw_values) |
| Start measurement and read previous pressure and temperature raw values. More... | |
| int32_t | abp2_pressure (const abp2_t *dev, const abp2_raw_t *raw_values) |
| Convert ADC counts to pressure. More... | |
| int32_t | abp2_temperature (const abp2_t *dev, const abp2_raw_t *raw_values) |
| Convert ADC counts to temperature . More... | |