diffpressure 2.0.0.0
diffpressure.h File Reference

This file contains API for Diff pressure Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  diffpressure_t
 Click ctx object definition. More...
 
struct  diffpressure_cfg_t
 Click configuration structure definition. More...
 

Macros

#define DIFFPRESSURE_MAP_MIKROBUS(cfg, mikrobus)
 
#define DIFFPRESSURE_OK   0
 
#define DIFFPRESSURE_ERROR   -1
 

Functions

void diffpressure_cfg_setup (diffpressure_cfg_t *cfg)
 Config Object Initialization function.
 
err_t diffpressure_init (diffpressure_t *ctx, diffpressure_cfg_t *cfg)
 Initialization function.
 
float diffpressure_read_adc_voltage (diffpressure_t *ctx)
 Read adc voltage function.
 
int32_t diffpressure_get_pa_difference (diffpressure_t *ctx, float adc_voltage)
 Get pressure difference [Pa] function.
 

Detailed Description

This file contains API for Diff pressure Click driver.