accel15 2.0.0.0
|
This file contains API for Accel 15 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | accel15_s |
Accel 15 Click context object. More... | |
struct | accel15_cfg_t |
Accel 15 Click configuration object. More... | |
struct | accel15_axis_t |
Accel axis data structure. More... | |
Typedefs | |
typedef err_t(* | accel15_master_io_t) (struct accel15_s *, uint8_t, uint8_t *, uint8_t) |
Accel 15 Click driver interface. | |
typedef struct accel15_s | accel15_t |
Accel 15 Click context object. | |
Enumerations | |
enum | accel15_drv_t { ACCEL15_DRV_SEL_SPI , ACCEL15_DRV_SEL_I2C } |
Accel 15 Click driver selector. More... | |
enum | accel15_return_value_t { ACCEL15_OK = 0 , ACCEL15_ERROR = -1 } |
Accel 15 Click return value data. More... | |
Functions | |
void | accel15_cfg_setup (accel15_cfg_t *cfg) |
Accel 15 configuration object setup function. | |
void | accel15_drv_interface_selection (accel15_cfg_t *cfg, accel15_drv_t drv_sel) |
Accel 15 driver interface setup function. | |
err_t | accel15_init (accel15_t *ctx, accel15_cfg_t *cfg) |
Accel 15 initialization function. | |
err_t | accel15_default_cfg (accel15_t *ctx) |
Accel 15 default configuration function. | |
err_t | accel15_generic_write (accel15_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 15 data writing function. | |
err_t | accel15_generic_read (accel15_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 15 data reading function. | |
void | accel15_soft_reset (accel15_t *ctx) |
Accel 15 soft reset function. | |
err_t | accel15_check_id (accel15_t *ctx) |
Accel 15 check ID function. | |
uint8_t | accel15_get_error (accel15_t *ctx) |
Accel 15 get error function. | |
uint8_t | accel15_get_status (accel15_t *ctx) |
Accel 15 status function. | |
void | accel15_enable_accel (accel15_t *ctx) |
Accel 15 enable accel function. | |
void | accel15_cfg_accel (accel15_t *ctx, uint8_t acc_odr, uint8_t g_range) |
Accel 15 config accel function. | |
uint8_t | accel15_get_internal_status (accel15_t *ctx) |
Accel 15 internal status function. | |
err_t | accel15_get_axis_data (accel15_t *ctx, accel15_axis_t *axis) |
Accel 15 get accelerometer axis function. | |
uint8_t | accel15_get_int_1 (accel15_t *ctx) |
Accel 15 get Interrupt 1 function. | |
uint8_t | accel15_get_int_2 (accel15_t *ctx) |
Accel 15 get Interrupt 1 function. | |
This file contains API for Accel 15 Click Driver.
typedef err_t(* accel15_master_io_t) (struct accel15_s *, uint8_t, uint8_t *, uint8_t) |
Accel 15 Click driver interface.
Definition of driver interface of Accel 15 Click driver. Driver serial interface.
Accel 15 Click context object.
Context object definition of Accel 15 Click driver.
enum accel15_drv_t |