barometer 2.0.0.0
|
This file contains API for Barometer Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | barometer_s |
Click ctx object definition. More... | |
struct | barometer_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | barometer_select_t |
Communication type. | |
typedef void(* | barometer_master_io_t) (struct barometer_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct barometer_s | barometer_t |
Click ctx object definition. | |
Functions | |
void | barometer_cfg_setup (barometer_cfg_t *cfg) |
Config Object Initialization function. | |
BAROMETER_RETVAL | barometer_init (barometer_t *ctx, barometer_cfg_t *cfg) |
Initialization function. | |
void | barometer_default_cfg (barometer_t *ctx) |
Click Default Configuration function. | |
void | barometer_generic_write (barometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | barometer_generic_read (barometer_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | barometer_read_data (barometer_t *ctx, uint8_t address) |
Generic read 8-bit data function. | |
void | barometer_set_active (barometer_t *ctx) |
Sets the module active function. | |
float | barometer_get_temperature_c (barometer_t *ctx) |
Read temperature in degrees Celsius function. | |
float | barometer_get_temperature_f (barometer_t *ctx) |
Read temperature in degrees of Fahrenheit function. | |
float | barometer_get_pressure (barometer_t *ctx) |
Read pressure in milibars function. | |
uint8_t | barometer_check_id (barometer_t *ctx) |
Check sensor id - Who Am I function. | |
uint8_t | barometer_check_status (barometer_t *ctx) |
Check sensor status function. | |
uint8_t | barometer_check_interrupt (barometer_t *ctx) |
State of interrupt pin function. | |
This file contains API for Barometer Click driver.