barometer10 2.1.0.0
|
This file contains API for Barometer 10 Click Driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | barometer10_t |
Barometer 10 Click context object. More... | |
struct | barometer10_cfg_t |
Barometer 10 Click configuration object. More... | |
struct | barometer10_sensor_cfg_t |
Barometer 10 Click sensor configuration object. More... | |
Enumerations | |
enum | barometer10_return_value_t { BAROMETER10_OK = 0 , BAROMETER10_ERROR = -1 } |
Barometer 10 Click return value data. More... | |
Functions | |
void | barometer10_cfg_setup (barometer10_cfg_t *cfg) |
Barometer 10 configuration object setup function. | |
err_t | barometer10_init (barometer10_t *ctx, barometer10_cfg_t *cfg) |
Barometer 10 initialization function. | |
err_t | barometer10_default_cfg (barometer10_t *ctx) |
Barometer 10 default configuration function. | |
err_t | barometer10_generic_write (barometer10_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Barometer 10 I2C writing function. | |
err_t | barometer10_generic_read (barometer10_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Barometer 10 I2C reading function. | |
err_t | barometer10_sw_reset (barometer10_t *ctx) |
Barometer 10 software reset function. | |
err_t | barometer10_get_device_id (barometer10_t *ctx, uint8_t *device_id) |
Barometer 10 gets device ID function. | |
err_t | barometer10_get_config (barometer10_t *ctx, barometer10_sensor_cfg_t *config) |
Barometer 10 gets configuration function. | |
err_t | barometer10_set_config (barometer10_t *ctx, barometer10_sensor_cfg_t config) |
Barometer 10 set configuration function. | |
err_t | barometer10_trigger_one_shot (barometer10_t *ctx) |
Barometer 10 trigger one-shot function. | |
err_t | barometer10_get_pressure_output (barometer10_t *ctx, int32_t *pressure_raw) |
Barometer 10 gets pressure output function. | |
err_t | barometer10_get_temperature_output (barometer10_t *ctx, int16_t *temperature_raw) |
Barometer 10 gets temperature output function. | |
err_t | barometer10_get_pressure (barometer10_t *ctx, float *pressure) |
Barometer 10 gets pressure function. | |
err_t | barometer10_get_temperature (barometer10_t *ctx, float *temperature) |
Barometer 10 gets temperature function. | |
uint8_t | barometer10_get_int_pin (barometer10_t *ctx) |
Barometer 10 gets interrupt function. | |
This file contains API for Barometer 10 Click Driver.