pressure23 2.1.0.0
|
This file contains API for Pressure 23 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | pressure23_s |
Pressure 23 Click context object. More... | |
struct | pressure23_cfg_t |
Pressure 23 Click configuration object. More... | |
struct | pressure23_sensor_cfg_t |
Pressure 23 Click sensor configuration object. More... | |
Typedefs | |
typedef err_t(* | pressure23_master_io_t) (struct pressure23_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 23 Click driver interface. | |
typedef struct pressure23_s | pressure23_t |
Pressure 23 Click context object. | |
Enumerations | |
enum | pressure23_drv_t { PRESSURE23_DRV_SEL_SPI , PRESSURE23_DRV_SEL_I2C } |
Pressure 23 Click driver selector. More... | |
enum | pressure23_return_value_t { PRESSURE23_OK = 0 , PRESSURE23_ERROR = -1 } |
Pressure 23 Click return value data. More... | |
Functions | |
void | pressure23_cfg_setup (pressure23_cfg_t *cfg) |
Pressure 23 configuration object setup function. | |
void | pressure23_drv_interface_selection (pressure23_cfg_t *cfg, pressure23_drv_t drv_sel) |
Pressure 23 driver interface setup function. | |
err_t | pressure23_init (pressure23_t *ctx, pressure23_cfg_t *cfg) |
Pressure 23 initialization function. | |
err_t | pressure23_default_cfg (pressure23_t *ctx) |
Pressure 23 default configuration function. | |
err_t | pressure23_generic_write (pressure23_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Pressure 23 data writing function. | |
err_t | pressure23_generic_read (pressure23_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Pressure 23 data reading function. | |
err_t | pressure23_set_command (pressure23_t *ctx, uint8_t cmd) |
Pressure 23 set the command function. | |
err_t | pressure23_sw_reset (pressure23_t *ctx) |
Pressure 23 software reset function. | |
err_t | pressure23_read_memory (pressure23_t *ctx, uint8_t reg, uint16_t *prom) |
Pressure 23 read memory function. | |
err_t | pressure23_start_conversion (pressure23_t *ctx, uint8_t sel_cnv) |
Pressure 23 start the conversion function. | |
err_t | pressure23_write_config (pressure23_t *ctx, pressure23_sensor_cfg_t config) |
Pressure 23 configuration data writing function. | |
err_t | pressure23_read_config (pressure23_t *ctx, uint8_t sel_cfg, pressure23_sensor_cfg_t *config) |
Pressure 23 configuration data reading function. | |
err_t | pressure23_read_adc (pressure23_t *ctx, uint8_t sel_data, uint32_t *adc_data) |
Pressure 23 ADC data reading function. | |
err_t | pressure23_write_op_reg (pressure23_t *ctx, uint8_t fifo_int_th, uint8_t fifo_mode, uint8_t delay) |
Pressure 23 operation register data writing function. | |
err_t | pressure23_read_op_reg (pressure23_t *ctx, uint8_t *fifo_int_th, uint8_t *fifo_mode, uint8_t *delay) |
Pressure 23 operation register data reading function. | |
err_t | pressure23_write_int_mask (pressure23_t *ctx, uint16_t int_mask_data) |
Pressure 23 interrupt mask data writing function. | |
err_t | pressure23_read_int_mask (pressure23_t *ctx, uint16_t *int_mask_data) |
Pressure 23 interrupt mask data reading function. | |
err_t | pressure23_write_int_reg (pressure23_t *ctx, uint16_t int_reg_data) |
Pressure 23 interrupt register data writing function. | |
err_t | pressure23_read_int_reg (pressure23_t *ctx, uint16_t *int_reg_data) |
Pressure 23 interrupt register data reading function. | |
err_t | pressure23_write_lim_reg (pressure23_t *ctx, uint8_t sel_adr, uint8_t sel_lim, uint16_t lim_reg_data) |
Pressure 23 limit register data writing function. | |
err_t | pressure23_read_lim_reg (pressure23_t *ctx, uint8_t sel_adr, uint8_t sel_lim, uint16_t *lim_reg_data) |
Pressure 23 limit register data reading function. | |
err_t | pressure23_get_adc_data_press (pressure23_t *ctx, uint32_t *pressure) |
Pressure 23 get the ADC pressure data function. | |
err_t | pressure23_get_adc_data_temp (pressure23_t *ctx, uint32_t *temperature) |
Pressure 23 get the ADC temperature data function. | |
err_t | pressure23_get_calibration_data (pressure23_t *ctx) |
Pressure 23 gets the calibration data function. | |
err_t | pressure23_get_measurement_data (pressure23_t *ctx, float *pressure, float *temperature) |
Pressure 23 gets the measurement data function. | |
uint8_t | pressure23_get_interrupt (pressure23_t *ctx) |
Pressure 23 gets the interrupt function. | |
This file contains API for Pressure 23 Click Driver.
typedef err_t(* pressure23_master_io_t) (struct pressure23_s *, uint8_t, uint8_t *, uint8_t) |
Pressure 23 Click driver interface.
Definition of driver interface of Pressure 23 Click driver. Driver serial interface.
typedef struct pressure23_s pressure23_t |
Pressure 23 Click context object.
Context object definition of Pressure 23 Click driver.
enum pressure23_drv_t |