vavpress 2.0.0.0
vavpress.h File Reference

This file contains API for VAV Press 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  vavpress_t
 VAV Press Click context object. More...
 
struct  vavpress_cfg_t
 VAV Press Click configuration object. More...
 
struct  vavpress_el_signature_data_t
 VAV Press Click electronic signature. More...
 
struct  vavpress_sensor_param_data_t
 VAV Press Click sensor parameter data. More...
 

Macros

#define VAVPRESS_SET_CMD_RESET_FIRMWARE   0x11
 VAV Press description command set.
 
#define VAVPRESS_SET_CMD_START_PRESSURE_CONVERSION   0x21
 
#define VAVPRESS_SET_CMD_RETRIEVE_ELECTRONIC_SIGNATURE   0x23
 
#define VAVPRESS_SET_DEV_ADDR_0   0x5C
 VAV Press device address setting.
 
#define VAVPRESS_SET_DEV_ADDR_1   0x5D
 
#define VAVPRESS_SET_DEV_ADDR_2   0x5E
 
#define VAVPRESS_SET_DEV_ADDR_3   0x5F
 
#define VAVPRESS_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  vavpress_return_value_t { VAVPRESS_OK = 0 , VAVPRESS_ERROR = -1 }
 VAV Press Click return value data. More...
 

Functions

void vavpress_cfg_setup (vavpress_cfg_t *cfg)
 VAV Press configuration object setup function.
 
err_t vavpress_init (vavpress_t *ctx, vavpress_cfg_t *cfg)
 VAV Press initialization function.
 
err_t vavpress_default_cfg (vavpress_t *ctx)
 VAV Press default configuration function.
 
err_t vavpress_set_command (vavpress_t *ctx, uint8_t cmd)
 VAV Press set command function.
 
err_t vavpress_generic_write (vavpress_t *ctx, uint8_t *tx_buf, uint8_t tx_len)
 VAV Press I2C writing function.
 
err_t vavpress_generic_read (vavpress_t *ctx, uint8_t *rx_buf, uint8_t rx_len)
 VAV Press I2C reading function.
 
err_t vavpress_set_default_sensor_param (vavpress_t *ctx, vavpress_sensor_param_data_t *param_data)
 VAV Press set default sensor parameter function.
 
err_t vavpress_get_readout_data (vavpress_t *ctx, int16_t *press_data, int16_t *temp_data)
 VAV Press get data readout function.
 
err_t vavpress_get_dif_press_and_temp (vavpress_t *ctx, vavpress_sensor_param_data_t *param_data, float *diff_press, float *temperature)
 VAV Press get differential pressure and temperature function.
 
err_t vavpress_retrieve_electronic_signature (vavpress_t *ctx, vavpress_el_signature_data_t *el_signature_data)
 VAV Press retrieve electronic signature function.
 

Detailed Description

This file contains API for VAV Press Click Driver.

Enumeration Type Documentation

◆ vavpress_return_value_t

VAV Press Click return value data.

Predefined enum values for driver return values.

Enumerator
VAVPRESS_OK 
VAVPRESS_ERROR