altitude6 2.0.0.0
|
This file contains API for Altitude 6 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 | altitude6_s |
Altitude 6 Click context object. More... | |
struct | altitude6_cfg_t |
Altitude 6 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | altitude6_master_io_t) (struct altitude6_s *, uint8_t, uint8_t *, uint8_t) |
Altitude 6 Click driver interface. | |
typedef struct altitude6_s | altitude6_t |
Altitude 6 Click context object. | |
Enumerations | |
enum | altitude6_drv_t { ALTITUDE6_DRV_SEL_SPI , ALTITUDE6_DRV_SEL_I2C } |
Altitude 6 Click driver selector. More... | |
enum | altitude6_return_value_t { ALTITUDE6_OK = 0 , ALTITUDE6_ERROR = -1 } |
Altitude 6 Click return value data. More... | |
Functions | |
void | altitude6_cfg_setup (altitude6_cfg_t *cfg) |
Altitude 6 configuration object setup function. | |
void | altitude6_drv_interface_selection (altitude6_cfg_t *cfg, altitude6_drv_t drv_sel) |
Altitude 6 driver interface setup function. | |
err_t | altitude6_init (altitude6_t *ctx, altitude6_cfg_t *cfg) |
Altitude 6 initialization function. | |
err_t | altitude6_default_cfg (altitude6_t *ctx) |
Altitude 6 default configuration function. | |
err_t | altitude6_set_command (altitude6_t *ctx, uint8_t cmd) |
Altitude 6 set command function. | |
err_t | altitude6_generic_read (altitude6_t *ctx, uint8_t cmd, uint8_t *data_out, uint8_t len) |
Altitude 6 data reading function. | |
err_t | altitude6_set_ratio (altitude6_t *ctx, uint8_t temp_ratio, uint8_t press_ratio) |
Altitude 6 set data ratio function. | |
err_t | altitude6_sw_reset (altitude6_t *ctx) |
Altitude 6 software reset function. | |
err_t | altitude6_get_calibration_data (altitude6_t *ctx) |
Altitude 6 get calibration data function. | |
err_t | altitude6_get_raw_data (altitude6_t *ctx, uint32_t *temp_data, uint32_t *press_data) |
Altitude 6 get raw data function. | |
err_t | altitude6_get_temperature (altitude6_t *ctx, float *temperature) |
Altitude 6 get temperature data function. | |
err_t | altitude6_get_pressure (altitude6_t *ctx, float *pressure) |
Altitude 6 get pressure data function. | |
err_t | altitude6_get_data (altitude6_t *ctx, float *temperature, float *pressure, float *altitude) |
Altitude 6 get data function. | |
This file contains API for Altitude 6 Click Driver.
typedef err_t(* altitude6_master_io_t) (struct altitude6_s *, uint8_t, uint8_t *, uint8_t) |
Altitude 6 Click driver interface.
Definition of driver interface of Altitude 6 Click driver. Driver serial interface.
typedef struct altitude6_s altitude6_t |
Altitude 6 Click context object.
Context object definition of Altitude 6 Click driver.
enum altitude6_drv_t |