manometer 2.0.0.0
Public function

Functions

void manometer_cfg_setup (manometer_cfg_t *cfg)
 Config Object Initialization function.
 
MANOMETER_RETVAL manometer_init (manometer_t *ctx, manometer_cfg_t *cfg)
 Initialization function.
 
void manometer_default_cfg (manometer_t *ctx)
 Click Default Configuration function.
 
void manometer_generic_write (manometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void manometer_generic_read (manometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
float manometer_get_pressure (manometer_t *ctx)
 Function read 16-bit data and convert to pressure in mbar.
 
float manometer_get_temperature (manometer_t *ctx)
 Function read 11-bit data and convert to temperature in degrees Celsius [ �C ].
 

Detailed Description

Function Documentation

◆ manometer_cfg_setup()

void manometer_cfg_setup ( manometer_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.

◆ manometer_default_cfg()

void manometer_default_cfg ( manometer_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Manometer click.

◆ manometer_generic_read()

void manometer_generic_read ( manometer_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

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

@description This function reads data from the desired register.

◆ manometer_generic_write()

void manometer_generic_write ( manometer_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ manometer_get_pressure()

float manometer_get_pressure ( manometer_t * ctx)

Function read 16-bit data and convert to pressure in mbar.

Parameters
ctxClick object.

@description This function read pressure value.

◆ manometer_get_temperature()

float manometer_get_temperature ( manometer_t * ctx)

Function read 11-bit data and convert to temperature in degrees Celsius [ �C ].

Parameters
ctxClick object.

@description This function read temperature value.

◆ manometer_init()

MANOMETER_RETVAL manometer_init ( manometer_t * ctx,
manometer_cfg_t * cfg )

Initialization function.

Parameters
manometerClick object.
cfgClick configuration structure.

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