[][src]Crate mma8452q

A platform agnostic driver to interface with the MMA8452Q 3-Axis Accelerometer via I2C. embedded-hal and implements the Accelerometer trait from the accelerometer crate. This chip can be found on Sparkfun's MMA8452Q breakout board.

Structs

DataStatus

Data status structure, decoded from STATUS_REG register

Error

Accelerometer errors, generic around another error type E representing an (optional) cause of this error.

I16x3

3-dimensional XYZ vector of i16 values

MMA8452q

MMA8452q driver

Enums

ErrorKind

Kinds of accelerometer errors

FullScale

Full-scale selection

Mode

Oversampling Mode

Odr

Output Data Rate

SlaveAddr

Possible slave addresses

Traits

Accelerometer

Accelerometer trait which provides g-normalized readings.

RawAccelerometer

Read raw acceleration vectors of type V: Vector.