barometer4 2.0.0.0
|
This file contains API for Barometer 4 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 | barometer4_t |
Barometer 4 Click context object. More... | |
struct | barometer4_cfg_t |
Barometer 4 Click configuration object. More... | |
struct | barometer4_invpres_t |
Barometer 4 Click structure to hold pressure sensor related parameters object. More... | |
Macros | |
#define | BAROMETER4_CMD_OP_MODE_T_FIRST_LOW_POWER 0x609C |
Barometer 4 description command. | |
#define | BAROMETER4_CMD_OP_MODE_T_FIRST_NORMAL 0x6825 |
#define | BAROMETER4_CMD_OP_MODE_T_FIRST_LOW_NOISE 0x70DF |
#define | BAROMETER4_CMD_OP_MODE_T_FIRST_ULTRA_LOW_NOISE 0x7866 |
#define | BAROMETER4_CMD_OP_MODE_P_FIRST_LOW_POWER 0x401A |
#define | BAROMETER4_CMD_OP_MODE_P_FIRST_NORMAL 0x48A3 |
#define | BAROMETER4_CMD_OP_MODE_P_FIRST_LOW_NOISE 0x5059 |
#define | BAROMETER4_CMD_OP_MODE_P_FIRST_ULTRA_LOW_NOISE 0x58E0 |
#define | BAROMETER4_CMD_SOFT_RESET 0x805D |
#define | BAROMETER4_CMD_DEVICE_ID 0xEFC8 |
#define | BAROMETER4_CMD_READ_OTP 0xC7F7 |
#define | BAROMETER4_OP_MODE_LOW_POWER 0 |
Barometer 4 description setting. | |
#define | BAROMETER4_OP_MODE_NORMAL 1 |
#define | BAROMETER4_OP_MODE_LOW_NOISE 2 |
#define | BAROMETER4_OP_MODE_ULTRA_LOW_NOISE 3 |
#define | BAROMETER4_SET_DEV_ADDR 0x63 |
Barometer 4 device address setting. | |
#define | BAROMETER4_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | barometer4_return_value_t { BAROMETER4_OK = 0 , BAROMETER4_ERROR = -1 } |
Barometer 4 Click return value data. More... | |
Functions | |
void | barometer4_cfg_setup (barometer4_cfg_t *cfg) |
Barometer 4 configuration object setup function. | |
err_t | barometer4_init (barometer4_t *ctx, barometer4_cfg_t *cfg) |
Barometer 4 initialization function. | |
err_t | barometer4_default_cfg (barometer4_t *ctx) |
Barometer 4 default configuration function. | |
err_t | barometer4_generic_write (barometer4_t *ctx, uint16_t cmd, uint8_t *tx_buf, uint8_t tx_len) |
Barometer 4 I2C writing function. | |
err_t | barometer4_generic_read (barometer4_t *ctx, uint16_t cmd, uint16_t *rx_buf, uint8_t rx_len) |
Barometer 4 I2C reading function. | |
err_t | barometer4_set_command (barometer4_t *ctx, uint16_t cmd) |
Barometer 4 set command function. | |
err_t | barometer4_soft_reset (barometer4_t *ctx) |
Barometer 4 software reset function. | |
err_t | barometer4_get_device_id (barometer4_t *ctx, uint16_t *device_id) |
Barometer 4 get device ID function. | |
err_t | barometer4_set_up_otp_read (barometer4_t *ctx) |
Barometer 4 set up OTP read function. | |
err_t | barometer4_get_otp (barometer4_t *ctx, uint16_t *otp_data) |
Barometer 4 get OTP function. | |
err_t | barometer4_inv_invpres_calibration (barometer4_t *ctx, barometer4_invpres_t *cfg_data) |
Barometer 4 inverse process data function. | |
err_t | barometer4_get_raw_data (barometer4_t *ctx, uint16_t measurement_comd, uint32_t *pressure, uint16_t *temperature) |
Barometer 4 get RAW data function. | |
err_t | barometer4_get_pressure_and_temperature (barometer4_t *ctx, float *pressure, float *temperature) |
Barometer 4 get pressure and temperature function. | |
This file contains API for Barometer 4 Click Driver.