pressure14 2.0.0.0
|
This file contains API for Pressure 14 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | pressure14_t |
Pressure 14 Click context object. More... | |
struct | pressure14_cfg_t |
Pressure 14 Click configuration object. More... | |
Enumerations | |
enum | pressure14_return_value_t { PRESSURE14_OK = 0 , PRESSURE14_ERROR = -1 } |
Pressure 14 Click return value data. More... | |
Functions | |
void | pressure14_cfg_setup (pressure14_cfg_t *cfg) |
Pressure 14 configuration object setup function. | |
err_t | pressure14_init (pressure14_t *ctx, pressure14_cfg_t *cfg) |
Pressure 14 initialization function. | |
err_t | pressure14_generic_write (pressure14_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Pressure 14 I2C writing function. | |
err_t | pressure14_generic_read (pressure14_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Pressure 14 I2C reading function. | |
void | pressure14_measure_cmd (pressure14_t *ctx) |
Pressure 14 output Measurement Command function. | |
uint8_t | pressure14_check_busy_flag_int (pressure14_t *ctx) |
Pressure 14 checks INT pin state function. | |
void | pressure14_read_press_and_temp (pressure14_t *ctx, uint8_t *status_byte, uint32_t *pressure_data, uint32_t *temp_data) |
Pressure 14 read pressure and temperature function. | |
float | pressure14_get_pressure (uint32_t pressure_raw, uint8_t conv_unit) |
Pressure 14 calculate pressure function. | |
float | pressure14_get_temperature (uint32_t temperature_raw, uint8_t conv_unit) |
Pressure 14 calculate temperature function. | |
This file contains API for Pressure 14 Click Driver.