diffpress 2.0.0.0

Functions

void diffpress_cfg_setup (diffpress_cfg_t *cfg)
 Config Object Initialization function.
 
DIFFPRESS_RETVAL diffpress_init (diffpress_t *ctx, diffpress_cfg_t *cfg)
 Initialization function.
 
uint16_t diffpress_get_adc_data (diffpress_t *ctx)
 Gets adc data function.
 
float diffpress_get_pressure_difference (diffpress_t *ctx)
 Gets pressure difference function.
 

Detailed Description

Function Documentation

◆ diffpress_cfg_setup()

void diffpress_cfg_setup ( diffpress_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ diffpress_get_adc_data()

uint16_t diffpress_get_adc_data ( diffpress_t * ctx)

Gets adc data function.

Parameters
ctxClick object.

@description This function gets adc data.

◆ diffpress_get_pressure_difference()

float diffpress_get_pressure_difference ( diffpress_t * ctx)

Gets pressure difference function.

Parameters
ctxClick object.

@description This function gets pressure difference.

◆ diffpress_init()

DIFFPRESS_RETVAL diffpress_init ( diffpress_t * ctx,
diffpress_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.