21 #ifndef COSA_ADXL345_HH 22 #define COSA_ADXL345_HH 57 TWI::
Driver(use_alt_address ? 0x53 : 0x1d)
91 __attribute__((always_inline))
121 __attribute__((always_inline))
138 } __attribute__((packed));
175 } __attribute__((packed));
178 static const uint8_t
ID = 0xe5;
192 } __attribute__((packed));
202 } __attribute__((packed));
215 } __attribute__((packed));
224 } __attribute__((packed));
235 } __attribute__((packed));
254 } __attribute__((packed));
261 } __attribute__((packed));
272 } __attribute__((packed));
287 } __attribute__((packed));
312 read(reg, &res,
sizeof(res));
329 } __attribute__((packed));
Trigger event to interrupt pin.
Number of entries in FIFO (6 bits).
Number of samples (5 bits).
uint8_t read(Register reg)
Holds the latest 32 values.
Inactivity x axis enable.
Overrun interrupt enable/map/source.
Data ready interrupt enable/map/source.
Data rate and power mode control.
Interrupt enable control.
Left justified/sign extend.
void write(Register reg, uint8_t value)
Latest 32 values before trigger.
Collects up to 32 values.
Axis enable control for activity detection.
Interrupt mapping control.
IOStream & operator<<(IOStream &outs, ADXL345 &accelerometer)
ADXL345(bool use_alt_address=false)
FIFO trigger event occuring.
Axis control for single tap/double tap.
Power-saving features control.
void calibrate(int8_t x, int8_t y, int8_t z)
Wakeup frequency (2 bits).
Inactivity x axis enable.
AC/DC coupled inactivity.
Interrupt active high/low.
Inactivity x axis enable.
Source of single tap/double tap.