accel27 2.1.0.0
|
This file contains API for Accel 27 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 | accel27_s |
Accel 27 Click context object. More... | |
struct | accel27_cfg_t |
Accel 27 Click configuration object. More... | |
struct | accel27_axes_t |
Accel 27 Click Axes data structure. More... | |
Typedefs | |
typedef err_t(* | accel27_master_io_t) (struct accel27_s *, uint8_t, uint8_t *, uint8_t) |
Accel 27 Click driver interface. | |
typedef struct accel27_s | accel27_t |
Accel 27 Click context object. | |
Enumerations | |
enum | accel27_drv_t { ACCEL27_DRV_SEL_SPI , ACCEL27_DRV_SEL_I2C } |
Accel 27 Click driver selector. More... | |
enum | accel27_return_value_t { ACCEL27_OK = 0 , ACCEL27_ERROR = -1 } |
Accel 27 Click return value data. More... | |
Functions | |
void | accel27_cfg_setup (accel27_cfg_t *cfg) |
Accel 27 configuration object setup function. | |
void | accel27_drv_interface_selection (accel27_cfg_t *cfg, accel27_drv_t drv_sel) |
Accel 27 driver interface setup function. | |
err_t | accel27_init (accel27_t *ctx, accel27_cfg_t *cfg) |
Accel 27 initialization function. | |
err_t | accel27_default_cfg (accel27_t *ctx) |
Accel 27 default configuration function. | |
err_t | accel27_generic_write (accel27_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 27 data writing function. | |
err_t | accel27_generic_read (accel27_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 27 data reading function. | |
err_t | accel27_write_register (accel27_t *ctx, uint8_t reg, uint8_t data_in) |
Accel 27 write register function. | |
err_t | accel27_read_register (accel27_t *ctx, uint8_t reg, uint8_t *data_out) |
Accel 27 read register function. | |
err_t | accel27_check_communication (accel27_t *ctx) |
Accel 27 check communication function. | |
uint8_t | accel27_get_int1_pin (accel27_t *ctx) |
Accel 27 get int1 pin function. | |
uint8_t | accel27_get_int2_pin (accel27_t *ctx) |
Accel 27 get int2 pin function. | |
err_t | accel27_get_axes (accel27_t *ctx, accel27_axes_t *axes) |
Accel 27 get axes function. | |
err_t | accel27_reset_device (accel27_t *ctx) |
Accel 27 reset device function. | |
This file contains API for Accel 27 Click Driver.
typedef err_t(* accel27_master_io_t) (struct accel27_s *, uint8_t, uint8_t *, uint8_t) |
Accel 27 Click driver interface.
Definition of driver interface of Accel 27 Click driver. Driver serial interface.
Accel 27 Click context object.
Context object definition of Accel 27 Click driver.
enum accel27_drv_t |