pressure22 2.1.0.0
|
This file contains API for Pressure 22 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 | pressure22_t |
Pressure 22 Click context object. More... | |
struct | pressure22_cfg_t |
Pressure 22 Click configuration object. More... | |
Enumerations | |
enum | pressure22_press_conv_t { PRESSURE22_CMD_PRESS_OSR_256 = 0x40 , PRESSURE22_CMD_PRESS_OSR_512 = 0x42 , PRESSURE22_CMD_PRESS_OSR_1024 = 0x44 , PRESSURE22_CMD_PRESS_OSR_2048 = 0x46 , PRESSURE22_CMD_PRESS_OSR_4096 = 0x48 , PRESSURE22_CMD_PRESS_OSR_8192 = 0x4A } |
Pressure 22 Click pressure conversion value data. More... | |
enum | pressure22_temp_conv_t { PRESSURE22_CMD_TEMP_OSR_256 = 0x50 , PRESSURE22_CMD_TEMP_OSR_512 = 0x52 , PRESSURE22_CMD_TEMP_OSR_1024 = 0x54 , PRESSURE22_CMD_TEMP_OSR_2048 = 0x56 , PRESSURE22_CMD_TEMP_OSR_4096 = 0x58 , PRESSURE22_CMD_TEMP_OSR_8192 = 0x5A } |
Pressure 22 Click temperature conversion value data. More... | |
enum | pressure22_return_value_t { PRESSURE22_OK = 0 , PRESSURE22_ERROR = -1 } |
Pressure 22 Click return value data. More... | |
Functions | |
void | pressure22_cfg_setup (pressure22_cfg_t *cfg) |
Pressure 22 configuration object setup function. | |
err_t | pressure22_init (pressure22_t *ctx, pressure22_cfg_t *cfg) |
Pressure 22 initialization function. | |
err_t | pressure22_default_cfg (pressure22_t *ctx) |
Pressure 22 default configuration function. | |
err_t | pressure22_generic_write (pressure22_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len) |
Pressure 22 I2C writing function. | |
err_t | pressure22_generic_read (pressure22_t *ctx, uint8_t cmd, uint8_t *data_out, uint8_t len) |
Pressure 22 I2C reading function. | |
err_t | pressure22_set_command (pressure22_t *ctx, uint8_t cmd) |
Pressure 22 set the command function. | |
err_t | pressure22_sw_reset (pressure22_t *ctx) |
Pressure 22 sw reset function. | |
err_t | pressure22_get_adc_data (pressure22_t *ctx, uint32_t *adc) |
Pressure 22 gets the ADC data function. | |
err_t | pressure22_get_prom_data (pressure22_t *ctx, uint8_t cmd_prom, uint16_t *prom) |
Pressure 22 gets the PROM data function. | |
err_t | pressure22_get_calibration_data (pressure22_t *ctx) |
Pressure 22 gets the calibration data function. | |
err_t | pressure22_check_data_validity (pressure22_t *ctx) |
Pressure 22 checks data validity function. | |
void | pressure22_set_conversion (pressure22_t *ctx, pressure22_press_conv_t press_conv, pressure22_temp_conv_t temp_conv) |
Pressure 22 set conversion function. | |
err_t | pressure22_get_measurement_data (pressure22_t *ctx, float *temperature, float *pressure) |
Pressure 22 get the measurement data function. | |
This file contains API for Pressure 22 Click Driver.