26#include "bitbang_i2c.h"
27#include "bitbang_spi.h"
30 unsigned char regs[0x3A];
34 unsigned char data_wc;
42void adxl345_set_addr(
adxl345_t* adxl,
unsigned char addr);
44void adxl345_set_accel(
adxl345_t* adxl,
double x,
double y,
double z);
45void adxl345_set_accel_raw(
adxl345_t* adxl,
short x,
short y,
short z);
47unsigned char adxl345_io_I2C(
adxl345_t* adxl,
unsigned char scl,
unsigned char sda);
48unsigned short adxl345_io_SPI(
adxl345_t* adxl,
unsigned char mosi,
unsigned char clk,
unsigned char ss);
55#define THRESH_TAP 0x1D
62#define THRESH_ACT 0x24
63#define THRESH_INACT 0x25
64#define TIME_INACT 0x26
65#define ACT_INACT_CTL 0x27
69#define ACT_TAP_STATUS 0x2B
72#define INT_ENABLE 0x2E
74#define INT_SOURCE 0x30
75#define DATA_FORMAT 0x31
83#define FIFO_STATUS 0x39
Definition sen_adxl345.h:29
Definition bitbang_i2c.h:39
Definition bitbang_spi.h:35