pressure8 2.0.0.0

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

Function Documentation

◆ pressure8_cfg_setup()

void pressure8_cfg_setup ( pressure8_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ pressure8_device_reset()

void pressure8_device_reset ( pressure8_t * ctx)

Functions for hardware device reset.

Parameters
ctxClick object.

This function resets hardware device.

◆ pressure8_generic_read()

void pressure8_generic_read ( pressure8_t * ctx,
uint8_t * data_buf,
uint8_t len )

Generic read function.

Parameters
ctxClick object.
data_bufOutput data buf
lenNumber of the bytes to be read

This function reads data from the desired register.

◆ pressure8_get_device_status()

uint8_t pressure8_get_device_status ( pressure8_t * ctx)

Functions for get device status.

Parameters
ctxClick object.
Returns
Device status

This function gets device status.

◆ pressure8_get_eoc_state()

uint8_t pressure8_get_eoc_state ( pressure8_t * ctx)

Functions for get interrupt pin state.

Parameters
ctxClick object.
Returns
Interrupt (EOC) pin state

This function gets interrupt state.

◆ pressure8_get_pressure()

float pressure8_get_pressure ( pressure8_t * ctx,
uint8_t press_format )

Functions for get Pressure data.

Parameters
ctxClick object.
press_formatPressure data in ... (mBar, hPa, kPa, mmHg and Torr)
Returns
Pressure data

This function get pressure data.

◆ pressure8_init()

err_t pressure8_init ( pressure8_t * ctx,
pressure8_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ pressure8_set_psi_range()

void pressure8_set_psi_range ( pressure8_t * ctx,
float psi_min,
float psi_max )

Functions for set PSI range.

Parameters
ctxClick object.
psi_minPSI min range
psi_maxPSI max range
Note
PSI range options:
   - Absolute (0psi to 15psi, 0psi to 25psi(def) and 0psi to 30psi)
   - Gage ( 0psi to 1psi, 0psi to 5pis, 0psi to 15psi and 0psi to 30psi)

This function set PSI range.