altitude 2.0.0.0
|
This file contains API for Altitude Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | altitude_t |
Click contex object definition. More... | |
struct | altitude_cfg_t |
Click configuration structure definition. More... | |
Enumerations | |
enum | altitude_err_t { ALTITUDE_OK = 0x0 , ALTITUDE_ERR_INIT_DRV = 0xFD , ALTITUDE_ERR_ADDR , ALTITUDE_ERR_NDATA } |
Click error codes. More... | |
enum | altitude_sys_mode_t { ALTITUDE_SYSMOD_STANDBY = 0 , ALTITUDE_SYSMOD_ACTIVE } |
Click system modes. More... | |
enum | altitude_sens_mode_t { ALTITUDE_SENSMOD_BAROMETER = 0 , ALTITUDE_SENSMOD_ALTIMETER } |
Click sensor modes. More... | |
Functions | |
void | altitude_cfg_setup (altitude_cfg_t *cfg) |
Configuration Object Setup function. | |
altitude_err_t | altitude_init (altitude_t *ctx, altitude_cfg_t *cfg) |
Click Initialization function. | |
void | altitude_default_cfg (altitude_t *ctx) |
Click Default Configuration function. | |
altitude_err_t | altitude_generic_single_write (altitude_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Generic Single Write function. | |
altitude_err_t | altitude_generic_multiple_write (altitude_t *ctx, uint8_t reg_addr, uint8_t *data_in, uint8_t n_data) |
Generic Mutiple Write function. | |
altitude_err_t | altitude_generic_multiple_read (altitude_t *ctx, uint8_t reg_addr, uint8_t *data_out, uint8_t n_data) |
Generic Multiple Read function. | |
void | altitude_set_system_mode (altitude_t *ctx, altitude_sys_mode_t mode) |
System Mode Set function. | |
void | altitude_set_sensor_mode (altitude_t *ctx, altitude_sens_mode_t mode) |
Sensor Mode Set function. | |
void | altitude_sw_reset (altitude_t *ctx) |
Software Reset function. | |
uint8_t | altitude_get_drdy_status (altitude_t *ctx, uint8_t flag_mask) |
Data Ready Status Get function. | |
uint8_t | altitude_get_int_status (altitude_t *ctx, uint8_t flag_mask) |
Interrupt Status Get function. | |
uint8_t | altitude_get_int1_pin (altitude_t *ctx) |
INT1 Pin Get function. | |
uint8_t | altitude_get_int2_pin (altitude_t *ctx) |
INT2 Pin Get function. | |
float | altitude_get_altitude (altitude_t *ctx) |
Altitude Get function. | |
float | altitude_get_pressure (altitude_t *ctx) |
Pressure Get function. | |
float | altitude_get_temperature (altitude_t *ctx) |
Temperature Get function. | |
This file contains API for Altitude Click driver.