pressure10 2.0.0.0
|
This file contains API for Pressure 10 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 | pressure10_status_t |
struct | pressure10_s |
Click ctx object definition. More... | |
struct | pressure10_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef uint8_t | pressure10_select_t |
Communication type. | |
typedef void(* | pressure10_master_io_t) (struct pressure10_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct pressure10_s | pressure10_t |
Click ctx object definition. | |
Functions | |
void | pressure10_cfg_setup (pressure10_cfg_t *cfg) |
Config Object Initialization function. | |
PRESSURE10_RETVAL | pressure10_init (pressure10_t *ctx, pressure10_cfg_t *cfg) |
Initialization function. | |
void | pressure10_default_cfg (pressure10_t *ctx) |
Click Default Configuration function. | |
void | pressure10_generic_write (pressure10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure10_generic_read (pressure10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pressure10_send_cmd (pressure10_t *ctx, uint8_t cmd) |
Send command. | |
uint8_t | pressure10_check_communication (pressure10_t *ctx) |
Check communication. | |
void | pressure10_get_status (pressure10_t *ctx, pressure10_status_t *status_obj) |
Get status function. | |
float | pressure10_get_temperature (pressure10_t *ctx) |
Get Temperature data in C. | |
float | pressure10_get_pressure (pressure10_t *ctx) |
Get Pressure data in mBar. | |
void | pressure10_control_cfg (pressure10_t *ctx, uint8_t ctrl_reg, uint8_t wr_data) |
Set the configuration in the control registers. | |
uint8_t | pressure10_get_drdy_pin (pressure10_t *ctx) |
Get DRDY pin state. | |
This file contains API for Pressure 10 Click driver.