pressure11 2.0.0.0

Functions

void pressure11_cfg_setup (pressure11_cfg_t *cfg)
 Config Object Initialization function.
 
PRESSURE11_RETVAL pressure11_init (pressure11_t *ctx, pressure11_cfg_t *cfg)
 Initialization function.
 
void pressure11_generic_write (pressure11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void pressure11_generic_read (pressure11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint8_t pressure11_check_id (pressure11_t *ctx)
 Functions for cheking commuincation with the chip and checking its ID.
 
float pressure11_get_temperature (pressure11_t *ctx)
 Functions for temperature reading.
 
float pressure11_get_pressure (pressure11_t *ctx)
 Functions for pressure reading.
 
uint8_t pressure11_get_interrupt (pressure11_t *ctx)
 Functions for read int pin.
 

Detailed Description

Function Documentation

◆ pressure11_cfg_setup()

void pressure11_cfg_setup ( pressure11_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.

◆ pressure11_check_id()

uint8_t pressure11_check_id ( pressure11_t * ctx)

Functions for cheking commuincation with the chip and checking its ID.

Parameters
ctxClick object.

@description This function is information whether the chip is successfully read or not.

◆ pressure11_generic_read()

void pressure11_generic_read ( pressure11_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

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

@description This function reads data from the desired register.

◆ pressure11_generic_write()

void pressure11_generic_write ( pressure11_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

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

@description This function writes data to the desired register.

◆ pressure11_get_interrupt()

uint8_t pressure11_get_interrupt ( pressure11_t * ctx)

Functions for read int pin.

Parameters
ctxClick object.

@description This function is interrupt pin state.

◆ pressure11_get_pressure()

float pressure11_get_pressure ( pressure11_t * ctx)

Functions for pressure reading.

Parameters
ctxClick object.

@description This function is Pressure data in hPa (mBar).

◆ pressure11_get_temperature()

float pressure11_get_temperature ( pressure11_t * ctx)

Functions for temperature reading.

Parameters
ctxClick object.

@description This function is temperature data in Celsius.

◆ pressure11_init()

PRESSURE11_RETVAL pressure11_init ( pressure11_t * ctx,
pressure11_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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