pressure4 2.0.0.0
|
This file contains API for Pressure 4 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 | pressure4_s |
Click ctx object definition. More... | |
struct | pressure4_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | pressure4_master_io_t) (struct pressure4_s *, uint8_t, uint8_t *, uint8_t) |
Master Input/Output type. | |
typedef struct pressure4_s | pressure4_t |
Click ctx object definition. | |
Functions | |
void | pressure4_cfg_setup (pressure4_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | pressure4_init (pressure4_t *ctx, pressure4_cfg_t *cfg) |
Initialization function. | |
void | pressure4_default_cfg (pressure4_t *ctx) |
Click Default Configuration function. | |
void | pressure4_generic_write (pressure4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | pressure4_generic_read (pressure4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | pressure4_write_reg_8_bit (pressure4_t *ctx, uint8_t w_reg, uint8_t w_data) |
8 bit writing function. | |
uint8_t | pressure4_read_reg_8_bit (pressure4_t *ctx, uint8_t r_reg) |
8 bit reading function. | |
uint8_t | pressure4_read_id (pressure4_t *ctx) |
Read ID function. | |
uint8_t | pressure4_get_status (pressure4_t *ctx) |
Get status function. | |
float | pressure4_get_temperature (pressure4_t *ctx) |
Get temperature function. | |
float | pressure4_get_pressure (pressure4_t *ctx) |
Get pressure function. | |
This file contains API for Pressure 4 Click driver.