pressure8 2.0.0.0
pressure8.h File Reference

This file contains API for Pressure 8 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  pressure8_t
 Click ctx object definition. More...
 
struct  pressure8_cfg_t
 Click configuration structure definition. More...
 

Macros

#define PRESSURE8_MAP_MIKROBUS(cfg, mikrobus)
 
#define PRESSURE8_OK   0
 
#define PRESSURE8_ERROR   -1
 
#define PRESSURE8_DATA_IN_MBAR   1
 
#define PRESSURE8_DATA_IN_HPA   2
 
#define PRESSURE8_DATA_IN_KPA   3
 
#define PRESSURE8_DATA_IN_TORR   4
 
#define PRESSURE8_DATA_IN_MMHG   5
 

Functions

void pressure8_cfg_setup (pressure8_cfg_t *cfg)
 Config Object Initialization function.
 
err_t pressure8_init (pressure8_t *ctx, pressure8_cfg_t *cfg)
 Initialization function.
 
void pressure8_generic_read (pressure8_t *ctx, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
float pressure8_get_pressure (pressure8_t *ctx, uint8_t press_format)
 Functions for get Pressure data.
 
void pressure8_device_reset (pressure8_t *ctx)
 Functions for hardware device reset.
 
uint8_t pressure8_get_eoc_state (pressure8_t *ctx)
 Functions for get interrupt pin state.
 
uint8_t pressure8_get_device_status (pressure8_t *ctx)
 Functions for get device status.
 
void pressure8_set_psi_range (pressure8_t *ctx, float psi_min, float psi_max)
 Functions for set PSI range.
 

Detailed Description

This file contains API for Pressure 8 Click driver.