barometer7 2.0.0.0
|
This file contains API for Barometer 7 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | barometer7_t |
Barometer 7 Click context object. More... | |
struct | barometer7_cfg_t |
Barometer 7 Click configuration object. More... | |
struct | barometer7_identifier_t |
Barometer 7 Click response structure for identifier. More... | |
Macros | |
#define | BAROMETER7_CMD_TRIGGER_TEST_MODE 0x0C |
Barometer 7 description commands. | |
#define | BAROMETER7_CMD_RESET_BIT_MASK 0x10 |
#define | BAROMETER7_CMD_ACQUIRE_PRESSURE 0x20 |
#define | BAROMETER7_CMD_ACQUIRE_TEMPERATURE 0x40 |
#define | BAROMETER7_CMD_TRIGGER_DIAGNOSIS 0x80 |
#define | BAROMETER7_CMD_ACQUIRE_IDENTIFIER 0xE0 |
#define | BAROMETER7_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | BAROMETER7_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | BAROMETER7_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | barometer7_return_value_t { BAROMETER7_OK = 0 , BAROMETER7_ERROR = -1 , BAROMETER7_CMD_ERROR = -2 } |
Barometer 7 Click return value data. More... | |
enum | barometer7_diagnosis_code_t { BAROMETER7_EEPROM_FEC_ERROR = 0x10 , BAROMETER7_ACQUISITION_CHAIN_FAILURE = 0x08 , BAROMETER7_SENSOR_CELL_FAILURE = 0x04 , BAROMETER7_PRESSURE_OUT_OF_RANGE_HIGH = 0x02 , BAROMETER7_PRESSURE_OUT_OF_RANGE_LOW = 0x01 , BAROMETER7_NO_ERROR = 0x0A } |
Barometer 7 Click diagnosis code data. More... | |
Functions | |
void | barometer7_cfg_setup (barometer7_cfg_t *cfg) |
Barometer 7 configuration object setup function. | |
err_t | barometer7_init (barometer7_t *ctx, barometer7_cfg_t *cfg) |
Barometer 7 initialization function. | |
err_t | barometer7_default_cfg (barometer7_t *ctx) |
Barometer 7 default configuration function. | |
err_t | barometer7_generic_transfer (barometer7_t *ctx, uint8_t cmd, uint16_t *data_out) |
Barometer 7 data transfer function. | |
err_t | barometer7_set_command (barometer7_t *ctx, uint8_t cmd, uint16_t *data_out) |
Barometer 7 set command function. | |
err_t | barometer7_set_reset (barometer7_t *ctx, uint8_t cmd, uint16_t *data_out) |
Barometer 7 set reset function. | |
err_t | barometer7_get_press_data (barometer7_t *ctx, uint16_t *press_data) |
Barometer 7 get pressure data function. | |
err_t | barometer7_get_temp_data (barometer7_t *ctx, uint16_t *temp_data) |
Barometer 7 get temperature data function. | |
err_t | barometer7_get_trigger_diagnosis_data (barometer7_t *ctx, uint16_t *td_data) |
Barometer 7 get trigger diagnosis data function. | |
err_t | barometer7_trigger_test_mode (barometer7_t *ctx, uint16_t *tdm_data) |
Barometer 7 get trigger test mode data function. | |
err_t | barometer7_get_id_data (barometer7_t *ctx, uint16_t *id_data) |
Barometer 7 get ID data function. | |
err_t | barometer7_get_identifier (barometer7_t *ctx, barometer7_identifier_t *identifier) |
Barometer 7 get identifier function. | |
err_t | barometer7_get_pressure (barometer7_t *ctx, float *pressure) |
Barometer 7 get pressure function. | |
err_t | barometer7_get_temperature (barometer7_t *ctx, float *temperature) |
Barometer 7 get temperature function. | |
This file contains API for Barometer 7 Click Driver.