altitude3 2.0.0.0
altitude3.h File Reference

This file contains API for Altitude 3 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "math.h"
#include "string.h"

Go to the source code of this file.

Data Structures

struct  altitude3_param_t
 
struct  sensor_data_t
 
struct  altitude3_t
 Click ctx object definition. More...
 
struct  altitude3_cfg_t
 Click configuration structure definition. More...
 

Macros

#define ALTITUDE3_MAP_MIKROBUS(cfg, mikrobus)
 
#define ALTITUDE3_RETVAL   uint8_t
 
#define ALTITUDE3_OK   0x00
 
#define ALTITUDE3_INIT_ERROR   0xFF
 
#define ALTITUDE3_SLAVE_ADDR   0x63
 
#define ALTITUDE3_LOW_POWER_T_FIRST   0x609C
 
#define ALTITUDE3_LOW_POWER_P_FIRST   0x401A
 
#define ALTITUDE3_NORMAL_T_FIRST   0x6825
 
#define ALTITUDE3_NORMAL_P_FIRST   0x48A3
 
#define ALTITUDE3_LOW_NOISE_T_FIRST   0x70DF
 
#define ALTITUDE3_LOW_NOISE_P_FIRST   0x5059
 
#define ALTITUDE3_ULTRA_LOW_NOISE_T_FIRST   0x7866
 
#define ALTITUDE3_ULTRA_LOW_NOISE_P_FIRST   0x58E0
 
#define ALTITUDE3_OK   0x00
 
#define ALTITUDE3_T_FIRST_ORDER   0x01
 
#define ALTITUDE3_P_FIRST_ORDER   0x02
 
#define ALTITUDE3_INITIALIZED   0x03
 
#define ALTITUDE3_ERROR   0xFF
 

Functions

void altitude3_cfg_setup (altitude3_cfg_t *cfg)
 Config Object Initialization function.
 
ALTITUDE3_RETVAL altitude3_init (altitude3_t *ctx, altitude3_cfg_t *cfg)
 Initialization function.
 
void altitude3_default_cfg (altitude3_t *ctx)
 Click Default Configuration function.
 
void altitude3_generic_write (altitude3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void altitude3_generic_read (altitude3_t *ctx, uint8_t *reg_buf, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint8_t altitude3_measurement_mode (altitude3_t *ctx, uint16_t mode_cmd)
 Set Measurement Mode function.
 
void altitude3_soft_reset (altitude3_t *ctx)
 Software Reset function.
 
uint8_t altitude3_read_adc_results (altitude3_t *ctx, uint8_t read_order, int16_t *temperature, uint32_t *pressure)
 Read AD Conversion function.
 
void altitude3_init_cfg (altitude3_t *ctx, altitude3_param_t *s)
 Init configuration function.
 
uint8_t altitude3_get_data (altitude3_t *ctx, uint8_t read_order)
 Get Data function.
 

Detailed Description

This file contains API for Altitude 3 Click driver.