accel28 2.1.0.0
|
This file contains API for Accel 28 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 | accel28_s |
Accel 28 Click context object. More... | |
struct | accel28_cfg_t |
Accel 28 Click configuration object. More... | |
struct | accel28_data_t |
Accel 28 Click data object. More... | |
Typedefs | |
typedef err_t(* | accel28_master_io_t) (struct accel28_s *, uint8_t, uint8_t *, uint8_t) |
Accel 28 Click driver interface. | |
typedef struct accel28_s | accel28_t |
Accel 28 Click context object. | |
Enumerations | |
enum | accel28_drv_t { ACCEL28_DRV_SEL_SPI , ACCEL28_DRV_SEL_I2C } |
Accel 28 Click driver selector. More... | |
enum | accel28_return_value_t { ACCEL28_OK = 0 , ACCEL28_ERROR = -1 } |
Accel 28 Click return value data. More... | |
Functions | |
void | accel28_cfg_setup (accel28_cfg_t *cfg) |
Accel 28 configuration object setup function. | |
void | accel28_drv_interface_selection (accel28_cfg_t *cfg, accel28_drv_t drv_sel) |
Accel 28 driver interface setup function. | |
err_t | accel28_init (accel28_t *ctx, accel28_cfg_t *cfg) |
Accel 28 initialization function. | |
err_t | accel28_default_cfg (accel28_t *ctx) |
Accel 28 default configuration function. | |
err_t | accel28_generic_write (accel28_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Accel 28 data writing function. | |
err_t | accel28_generic_read (accel28_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Accel 28 data reading function. | |
uint8_t | accel28_get_int_state (accel28_t *ctx) |
Accel 28 interrupt reading function. | |
err_t | accel28_get_raw_data (accel28_t *ctx, accel28_data_t *data_out) |
Accel 28 raw data reading function. | |
err_t | accel28_get_data (accel28_t *ctx, accel28_data_t *data_out) |
Accel 28 data reading function. | |
err_t | accel28_write_reg (accel28_t *ctx, uint8_t reg, uint8_t data_in) |
Accel 28 register data writing function. | |
err_t | accel28_read_reg (accel28_t *ctx, uint8_t reg, uint8_t *data_out) |
Accel 28 register data reading function. | |
err_t | accel28_sw_reset (accel28_t *ctx) |
Accel 28 SW reset function. | |
This file contains API for Accel 28 Click Driver.
typedef err_t(* accel28_master_io_t) (struct accel28_s *, uint8_t, uint8_t *, uint8_t) |
Accel 28 Click driver interface.
Definition of driver interface of Accel 28 Click driver. Driver serial interface.
Accel 28 Click context object.
Context object definition of Accel 28 Click driver.
enum accel28_drv_t |