airmotion 2.1.0.0
|
This file contains API for Air Motion Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | airmotion_s |
Air Motion Click context object. More... | |
struct | airmotion_cfg_t |
Air Motion Click configuration object. More... | |
struct | airmotion_data_t |
Typedefs | |
typedef err_t(* | airmotion_master_io_t) (struct airmotion_s *, uint8_t, uint8_t *, uint8_t) |
Air Motion Click driver interface. | |
typedef struct airmotion_s | airmotion_t |
Air Motion Click context object. | |
Enumerations | |
enum | airmotion_drv_t { AIRMOTION_DRV_SEL_SPI , AIRMOTION_DRV_SEL_I2C } |
Air Motion Click driver selector. More... | |
enum | airmotion_return_value_t { AIRMOTION_OK = 0 , AIRMOTION_ERROR = -1 , AIRMOTION_RESET_ERROR = -2 } |
Air Motion Click return value data. More... | |
Functions | |
void | airmotion_cfg_setup (airmotion_cfg_t *cfg) |
Air Motion configuration object setup function. | |
void | airmotion_drv_interface_selection (airmotion_cfg_t *cfg, airmotion_drv_t drv_sel) |
Air Motion driver interface setup function. | |
err_t | airmotion_init (airmotion_t *ctx, airmotion_cfg_t *cfg) |
Air Motion initialization function. | |
err_t | airmotion_default_cfg (airmotion_t *ctx) |
Air Motion default configuration function. | |
err_t | airmotion_generic_write (airmotion_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Air Motion data writing function. | |
err_t | airmotion_generic_read (airmotion_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Air Motion data reading function. | |
err_t | airmotion_set_reg_bank (airmotion_t *ctx, uint8_t bank) |
Air Motion set register bank function. | |
err_t | airmotion_reg_write (airmotion_t *ctx, uint8_t reg_bank, uint8_t reg, uint8_t *data_in, uint8_t len) |
Air Motion register data writing function. | |
err_t | airmotion_reg_read (airmotion_t *ctx, uint8_t reg_bank, uint8_t reg, uint8_t *data_out, uint8_t len) |
Air Motion data reading function. | |
err_t | airmotion_configure_digital_interface (airmotion_t *ctx, uint8_t slew_rate) |
Air Motion configure digital interface function. | |
uint8_t | airmotion_get_int1_state (airmotion_t *ctx) |
Air Motion read INT1 pin state function. | |
err_t | airmotion_sw_reset (airmotion_t *ctx) |
Air Motion software reset function. | |
err_t | airmotion_read_temperature (airmotion_t *ctx, float *temperature_data) |
Air Motion read temperature function. | |
err_t | airmotion_read_timestamp (airmotion_t *ctx, uint32_t *tmst_data) |
Air Motion read timestamp function. | |
err_t | airmotion_get_data_from_register (airmotion_t *ctx, float *temperature_data, airmotion_data_t *accel_data, airmotion_data_t *gyro_data, uint32_t *tmst_data) |
Air Motion read data function. | |
err_t | airmotion_set_basic_tap_detection (airmotion_t *ctx) |
Air Motion basic tap detection configuration function. | |
err_t | airmotion_get_tap_detection (airmotion_t *ctx, uint8_t *tap_num, uint8_t *tap_axis, uint8_t *tap_dir) |
Air Motion get tap detection data function. | |
This file contains API for Air Motion Click Driver.
typedef err_t(* airmotion_master_io_t) (struct airmotion_s *, uint8_t, uint8_t *, uint8_t) |
Air Motion Click driver interface.
Definition of driver interface of Air Motion Click driver. Driver serial interface.
typedef struct airmotion_s airmotion_t |
Air Motion Click context object.
Context object definition of Air Motion Click driver.
enum airmotion_drv_t |