71 twi.
write((uint8_t) reg, &value,
sizeof(value));
79 twi.
write((uint8_t) reg, buffer, count);
105 if (source & _BV(
INACT)) {
109 if (source & _BV(
ACT)) {
113 return (source & 0x74);
120 accelerometer.
sample(value);
121 outs <<
PSTR(
"ADXL345(x = ") << (value.
x << 2)
122 <<
PSTR(
", y = ") << (value.
y << 2)
123 <<
PSTR(
", z = ") << (value.
z << 2)
uint8_t read(Register reg)
Data rate and power mode control.
Interrupt enable control.
void write(Register reg, uint8_t value)
Axis enable control for activity detection.
int read(void *buf, size_t size)
Interrupt mapping control.
int write(void *buf, size_t size)
IOStream & operator<<(IOStream &outs, ADXL345 &accelerometer)
void acquire(TWI::Driver *dev)
Axis control for single tap/double tap.
Power-saving features control.
Interrupt active high/low.