accel18 2.0.0.0
|
This file contains API for Accel 18 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 | accel18_s |
Accel 18 Click context object. More... | |
struct | accel18_cfg_t |
Accel 18 Click configuration object. More... | |
struct | accel18_axes_t |
Accel 18 Click axes data. More... | |
Typedefs | |
typedef err_t(* | accel18_master_io_t) (struct accel18_s *, uint8_t, uint8_t *, uint8_t) |
Accel 18 Click driver interface. | |
typedef struct accel18_s | accel18_t |
Accel 18 Click context object. | |
Enumerations | |
enum | accel18_drv_t { ACCEL18_DRV_SEL_SPI , ACCEL18_DRV_SEL_I2C } |
Accel 18 Click driver selector. More... | |
enum | accel18_return_value_t { ACCEL18_OK = 0 , ACCEL18_ERROR = -1 } |
Accel 18 Click return value data. More... | |
Functions | |
void | accel18_cfg_setup (accel18_cfg_t *cfg) |
Accel 18 configuration object setup function. | |
void | accel18_drv_interface_selection (accel18_cfg_t *cfg, accel18_drv_t drv_sel) |
Accel 18 driver interface setup function. | |
err_t | accel18_init (accel18_t *ctx, accel18_cfg_t *cfg) |
Accel 18 initialization function. | |
err_t | accel18_default_cfg (accel18_t *ctx) |
Accel 18 default configuration function. | |
err_t | accel18_generic_write (accel18_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 18 data writing function. | |
err_t | accel18_byte_write (accel18_t *ctx, uint8_t reg, uint8_t data_in) |
Accel 18 byte writing function. | |
err_t | accel18_generic_read (accel18_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 18 data reading function. | |
err_t | accel18_byte_read (accel18_t *ctx, uint8_t reg, uint8_t *data_out) |
Accel 18 byte reading function. | |
err_t | accel18_read_axes (accel18_t *ctx, accel18_axes_t *axes_data) |
Accel data reading. | |
err_t | accel18_set_range (accel18_t *ctx, uint8_t range_macro) |
Set range configuration. | |
uint8_t | accel18_get_interrupt_1 (accel18_t *ctx) |
Get interrupt 1 pin state. | |
uint8_t | accel18_get_interrupt_2 (accel18_t *ctx) |
Get interrupt 2 pin state. | |
This file contains API for Accel 18 Click Driver.
typedef err_t(* accel18_master_io_t) (struct accel18_s *, uint8_t, uint8_t *, uint8_t) |
Accel 18 Click driver interface.
Definition of driver interface of Accel 18 Click driver. Driver serial interface.
Accel 18 Click context object.
Context object definition of Accel 18 Click driver.
enum accel18_drv_t |