lps22hb 2.0.0.0
|
This file contains API for LPS22HB 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 | lps22hb_s |
Click ctx object definition. More... | |
struct | lps22hb_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | lps22hb_select_t |
Communication type. | |
typedef void(* | lps22hb_master_io_t) (struct lps22hb_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct lps22hb_s | lps22hb_t |
Click ctx object definition. | |
Functions | |
void | lps22hb_cfg_setup (lps22hb_cfg_t *cfg) |
Config Object Initialization function. | |
LPS22HB_RETVAL | lps22hb_init (lps22hb_t *ctx, lps22hb_cfg_t *cfg) |
Initialization function. | |
void | lps22hb_default_cfg (lps22hb_t *ctx, lps22hb_cfg_t *cfg) |
Click Default Configuration function. | |
void | lps22hb_generic_write (lps22hb_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | lps22hb_generic_read (lps22hb_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | lps22hb_soft_reset (lps22hb_t *ctx) |
Soft reset function. | |
void | lps22hb_start_configuration (lps22hb_t *ctx) |
Set start configuration function. | |
void | lps22hb_update_reg (lps22hb_t *ctx, uint8_t reg_adr, uint8_t reg_val) |
Update register function. | |
float | lps22hb_get_pressure (lps22hb_t *ctx) |
Get pressure value function. | |
float | lps22hb_get_temp (lps22hb_t *ctx) |
Get temperature value function. | |
void | lps22hb_set_fifo_mode (lps22hb_t *ctx, uint8_t mode_sel, uint8_t wm_lvl) |
Set FIFO control mode function. | |
uint8_t | lps22hb_check_int (lps22hb_t *ctx) |
Check Interrupt state function. | |
This file contains API for LPS22HB Click driver.