pressure3 2.0.0.0
|
This file contains API for Pressure 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | pressure3_coeff_t |
Coefficients structure. More... | |
struct | pressure3_s |
Click ctx object definition. More... | |
struct | pressure3_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | pressure3_select_t |
Communication type. | |
typedef void(* | pressure3_master_io_t) (struct pressure3_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct pressure3_s | pressure3_t |
Click ctx object definition. | |
Functions | |
void | pressure3_cfg_setup (pressure3_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE3_RETVAL | pressure3_init (pressure3_t *ctx, pressure3_cfg_t *cfg) |
Initialization function. | |
void | pressure3_default_cfg (pressure3_t *ctx) |
Click Default Configuration function. | |
void | pressure3_generic_write (pressure3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure3_generic_read (pressure3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pressure3_get_t_p_data (pressure3_t *ctx, float *temperature, float *presure, pressure3_coeff_t *coeff_struct) |
Get temperature pressure. | |
void | pressure3_get_coefficients (pressure3_t *ctx, pressure3_coeff_t *coeff_struct) |
Get coefficients. | |
int32_t | pressure3_get_measurement_data (pressure3_t *ctx, uint8_t mbs_reg_addr) |
Read the coefficients value for calculation function. | |
void | pressure3_set_pressure_configuration (pressure3_t *ctx, uint8_t press_config) |
Set the pressure configuration function. | |
uint8_t | pressure3_get_pressure_configuration (pressure3_t *ctx) |
Get the pressure configuration function. | |
void | pressure3_set_temperature_configuration (pressure3_t *ctx, uint8_t temp_config) |
Set the temperature configuration function. | |
uint8_t | pressure3_get_temperature_configuration (pressure3_t *ctx) |
Get the temperature configuration function. | |
void | pressure3_set_operating_mode (pressure3_t *ctx, uint8_t operation_mode) |
Get the sensor operating mode function. | |
uint8_t | pressure3_get_operating_mode (pressure3_t *ctx) |
Get the sensor operating mode function. | |
void | pressure3_set_configuration (pressure3_t *ctx, uint8_t confg_data) |
Set the configuration function. | |
uint8_t | pressure3_get_configuration (pressure3_t *ctx) |
Get the configuration function. | |
uint8_t | pressure3_get_interrupt_status (pressure3_t *ctx) |
Get the interrupt status function. | |
uint8_t | pressure3_get_fifo_status (pressure3_t *ctx) |
Get the FIFO Status function. | |
void | pressure3_soft_reset (pressure3_t *ctx) |
Soft reset function. | |
This file contains API for Pressure 3 Click driver.