diffpress2 2.0.0.0
|
This file contains API for Diff Press 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | diffpress2_t |
Diff Press 2 Click context object. More... | |
struct | diffpress2_cfg_t |
Diff Press 2 Click configuration object. More... | |
Enumerations | |
enum | diffpress2_return_value_t { DIFFPRESS2_OK = 0 , DIFFPRESS2_ERROR = -1 } |
Diff Press 2 Click return value data. More... | |
Functions | |
void | diffpress2_cfg_setup (diffpress2_cfg_t *cfg) |
Diff Press 2 configuration object setup function. | |
err_t | diffpress2_init (diffpress2_t *ctx, diffpress2_cfg_t *cfg) |
Diff Press 2 initialization function. | |
err_t | diffpress2_default_cfg (diffpress2_t *ctx) |
Diff Press 2 default configuration function. | |
err_t | diffpress2_send_command (diffpress2_t *ctx, uint16_t cmd) |
Command writing function. | |
err_t | diffpress2_generic_read (diffpress2_t *ctx, uint16_t cmd, uint16_t *rx_buf, uint8_t rx_len) |
Command reading function. | |
err_t | diffpress2_raw_read (diffpress2_t *ctx, uint16_t *rx_buf, uint8_t rx_len) |
Reading function. | |
err_t | diffpress2_get_id (diffpress2_t *ctx) |
Reads device ID's. | |
err_t | diffpress2_reset (diffpress2_t *ctx) |
Reset device. | |
err_t | diffpress2_trigger_measurement (diffpress2_t *ctx, uint16_t trigger_type, float *diff_press, float *temperature) |
Pressure and temperature reading. | |
This file contains API for Diff Press 2 Click Driver.