accelpressure 2.1.0.0
|
This file contains API for AccelPressure 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 | accelpressure_t |
AccelPressure Click context object. More... | |
struct | accelpressure_cfg_t |
AccelPressure Click configuration object. More... | |
struct | accelpressure_axes_t |
AccelPressure Click axes data. More... | |
Enumerations | |
enum | accelpressure_return_value_t { ACCELPRESSURE_OK = 0 , ACCELPRESSURE_ERROR = -1 } |
AccelPressure Click return value data. More... | |
Functions | |
void | accelpressure_cfg_setup (accelpressure_cfg_t *cfg) |
AccelPressure configuration object setup function. | |
err_t | accelpressure_init (accelpressure_t *ctx, accelpressure_cfg_t *cfg) |
AccelPressure initialization function. | |
err_t | accelpressure_default_cfg (accelpressure_t *ctx) |
AccelPressure default configuration function. | |
err_t | accelpressure_acc_reg_write (accelpressure_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
AccelPressure accel I2C writing function. | |
err_t | accelpressure_acc_reg_read (accelpressure_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
AccelPressure accel I2C reading function. | |
err_t | accelpressure_press_reg_write (accelpressure_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
AccelPressure pressure I2C writing function. | |
err_t | accelpressure_press_reg_read (accelpressure_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
AccelPressure pressure I2C reading function. | |
err_t | accelpressure_get_device_id (accelpressure_t *ctx, uint8_t *device_id) |
AccelPressure get device ID function. | |
err_t | accelpressure_get_status (accelpressure_t *ctx, uint8_t *status) |
AccelPressure get status function. | |
err_t | accelpressure_sw_reset (accelpressure_t *ctx) |
AccelPressure soft reset function. | |
err_t | accelpressure_set_acc_mode (accelpressure_t *ctx, uint8_t op_mode) |
AccelPressure set accel operating mode function. | |
err_t | accelpressure_set_fsr (accelpressure_t *ctx, uint8_t fsr) |
AccelPressure set FSR function. | |
err_t | accelpressure_get_axes_data (accelpressure_t *ctx, accelpressure_axes_t *axes) |
AccelPressure get the accel sensor axes function. | |
err_t | accelpressure_set_press_mode (accelpressure_t *ctx, uint8_t op_mode) |
AccelPressure set pressure operating mode function. | |
err_t | accelpressure_get_drdy_status (accelpressure_t *ctx, uint8_t *drdy) |
AccelPressure get data ready status function. | |
err_t | accelpressure_get_pressure (accelpressure_t *ctx, float *pressure) |
AccelPressure get pressure data function. | |
err_t | accelpressure_get_temperature (accelpressure_t *ctx, float *temperature) |
AccelPressure get temperature data function. | |
uint8_t | accelpressure_get_mot_det (accelpressure_t *ctx) |
AccelPressure get motion detect state function. | |
This file contains API for AccelPressure Click Driver.