accel29 2.1.0.0
|
This file contains API for Accel 29 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 | accel29_s |
Accel 29 Click context object. More... | |
struct | accel29_cfg_t |
Accel 29 Click configuration object. More... | |
struct | accel29_axes_t |
Accel 29 Click Axes data structure. More... | |
Typedefs | |
typedef err_t(* | accel29_master_io_t) (struct accel29_s *, uint8_t, uint8_t *, uint8_t) |
Accel 29 Click driver interface. | |
typedef struct accel29_s | accel29_t |
Accel 29 Click context object. | |
Enumerations | |
enum | accel29_drv_t { ACCEL29_DRV_SEL_SPI , ACCEL29_DRV_SEL_I2C } |
Accel 29 Click driver selector. More... | |
enum | accel29_return_value_t { ACCEL29_OK = 0 , ACCEL29_ERROR = -1 } |
Accel 29 Click return value data. More... | |
Functions | |
void | accel29_cfg_setup (accel29_cfg_t *cfg) |
Accel 29 configuration object setup function. | |
void | accel29_drv_interface_selection (accel29_cfg_t *cfg, accel29_drv_t drv_sel) |
Accel 29 driver interface setup function. | |
err_t | accel29_init (accel29_t *ctx, accel29_cfg_t *cfg) |
Accel 29 initialization function. | |
err_t | accel29_default_cfg (accel29_t *ctx) |
Accel 29 default configuration function. | |
err_t | accel29_generic_write (accel29_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 29 data writing function. | |
err_t | accel29_generic_read (accel29_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 29 data reading function. | |
err_t | accel29_write_register (accel29_t *ctx, uint8_t reg, uint8_t data_in) |
Accel 29 write register function. | |
err_t | accel29_read_register (accel29_t *ctx, uint8_t reg, uint8_t *data_out) |
Accel 29 read register function. | |
err_t | accel29_check_communication (accel29_t *ctx) |
Accel 29 check communication function. | |
uint8_t | accel29_get_int1_pin (accel29_t *ctx) |
Accel 29 get int1 pin function. | |
uint8_t | accel29_get_int2_pin (accel29_t *ctx) |
Accel 29 get int2 pin function. | |
err_t | accel29_get_axes (accel29_t *ctx, accel29_axes_t *axes) |
Accel 29 get axes function. | |
err_t | accel29_get_avg_axes (accel29_t *ctx, uint16_t num_samples, accel29_axes_t *avg_axes) |
Accel 29 get avg axes function. | |
err_t | accel29_calibrate_offset (accel29_t *ctx, accel29_axes_t calib_axes) |
Accel 29 calibrate offset function. | |
This file contains API for Accel 29 Click Driver.
typedef err_t(* accel29_master_io_t) (struct accel29_s *, uint8_t, uint8_t *, uint8_t) |
Accel 29 Click driver interface.
Definition of driver interface of Accel 29 Click driver. Driver serial interface.
Accel 29 Click context object.
Context object definition of Accel 29 Click driver.
enum accel29_drv_t |