barometer12 2.1.0.0
|
This file contains API for Barometer 12 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | barometer12_t |
Barometer 12 Click context object. More... | |
struct | barometer12_cfg_t |
Barometer 12 Click configuration object. More... | |
struct | barometer12_invpres_t |
Barometer 12 Click structure to hold pressure sensor related parameters object. More... | |
Enumerations | |
enum | barometer12_return_value_t { BAROMETER12_OK = 0 , BAROMETER12_ERROR = -1 } |
Barometer 12 Click return value data. More... | |
Functions | |
void | barometer12_cfg_setup (barometer12_cfg_t *cfg) |
Barometer 12 configuration object setup function. | |
err_t | barometer12_init (barometer12_t *ctx, barometer12_cfg_t *cfg) |
Barometer 12 initialization function. | |
err_t | barometer12_default_cfg (barometer12_t *ctx) |
Barometer 12 default configuration function. | |
err_t | barometer12_generic_write (barometer12_t *ctx, uint16_t cmd, uint16_t *data_in, uint8_t len) |
Barometer 12 I2C writing function. | |
err_t | barometer12_generic_read (barometer12_t *ctx, uint16_t cmd, uint16_t *data_out, uint8_t len) |
Barometer 12 I2C reading function. | |
err_t | barometer12_set_command (barometer12_t *ctx, uint16_t cmd) |
Barometer 12 set command function. | |
err_t | barometer12_soft_reset (barometer12_t *ctx) |
Barometer 12 software reset function. | |
err_t | barometer12_get_device_id (barometer12_t *ctx, uint16_t *device_id) |
Barometer 12 get device ID function. | |
err_t | barometer12_set_up_otp_read (barometer12_t *ctx) |
Barometer 12 set up OTP read function. | |
err_t | barometer12_get_otp (barometer12_t *ctx, uint16_t *otp_data) |
Barometer 12 get OTP function. | |
err_t | barometer12_inv_invpres_calib (barometer12_t *ctx, barometer12_invpres_t *cfg_data) |
Barometer 12 inverse process data function. | |
err_t | barometer12_get_raw_data (barometer12_t *ctx, uint16_t measurement_comd, uint32_t *pressure, uint16_t *temperature) |
Barometer 12 get RAW data function. | |
err_t | barometer12_get_press_and_temp (barometer12_t *ctx, float *pressure, float *temperature) |
Barometer 12 get pressure and temperature function. | |
This file contains API for Barometer 12 Click Driver.