manometer2 2.0.0.0

Functions

void manometer2_cfg_setup (manometer2_cfg_t *cfg)
 Config Object Initialization function.
 
MANOMETER2_RETVAL manometer2_init (manometer2_t *ctx, manometer2_cfg_t *cfg)
 Initialization function.
 
void manometer2_default_cfg (manometer2_t *ctx)
 Click Default Configuration function.
 
void manometer2_write_data (manometer2_t *ctx, uint8_t reg_address, uint8_t write_command)
 Generic write data function.
 
uint16_t manometer2_read_data (manometer2_t *ctx, uint8_t reg_address)
 Generic read data function.
 
uint32_t manometer2_read_command (manometer2_t *ctx, uint8_t reg_address)
 Generic read data function.
 
void manometer2_reset (manometer2_t *ctx)
 Reset.
 
void manometer2_read_coef (manometer2_t *ctx)
 Function read coeffitient.
 
float manometer2_get_temperature (manometer2_t *ctx, uint8_t oversampling_ratio)
 Get temperature data function.
 
float manometer2_get_pressure (manometer2_t *ctx, uint8_t oversampling_ratio)
 Get pressure data function.
 

Detailed Description

Function Documentation

◆ manometer2_cfg_setup()

void manometer2_cfg_setup ( manometer2_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.

◆ manometer2_default_cfg()

void manometer2_default_cfg ( manometer2_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Manometer 2 click.

◆ manometer2_get_pressure()

float manometer2_get_pressure ( manometer2_t * ctx,
uint8_t oversampling_ratio )

Get pressure data function.

Parameters
ctxClick object.
oversampling_ratioOversampling ratio
Returns
float pressure value [ PSI ]

@description Function read pressure data

◆ manometer2_get_temperature()

float manometer2_get_temperature ( manometer2_t * ctx,
uint8_t oversampling_ratio )

Get temperature data function.

Parameters
ctxClick object.
oversampling_ratioOversampling ratio
Returns
float temperature value [ �C ]

@description Function read temperature data

◆ manometer2_init()

MANOMETER2_RETVAL manometer2_init ( manometer2_t * ctx,
manometer2_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ manometer2_read_coef()

void manometer2_read_coef ( manometer2_t * ctx)

Function read coeffitient.

Parameters
ctxClick object.

@description Function resets communication with the register and read coeffitient value

◆ manometer2_read_command()

uint32_t manometer2_read_command ( manometer2_t * ctx,
uint8_t reg_address )

Generic read data function.

Parameters
ctxClick object.
reg_addressRegister address
Returns
Data from addressed register

@description Generic read 24-bit data function

◆ manometer2_read_data()

uint16_t manometer2_read_data ( manometer2_t * ctx,
uint8_t reg_address )

Generic read data function.

Parameters
ctxClick object.
reg_addressRegister address
Returns
Data from addressed register

@description Generic read 16-bit data function

◆ manometer2_reset()

void manometer2_reset ( manometer2_t * ctx)

Reset.

Parameters
ctxClick object.

@description Function command reset

◆ manometer2_write_data()

void manometer2_write_data ( manometer2_t * ctx,
uint8_t reg_address,
uint8_t write_command )

Generic write data function.

Parameters
ctxClick object.
reg_addressRegister address
write_commandCommand to write

@description Function write byte of data