Module capsules::fxos8700cq [] [src]

Driver for the FXOS8700CQ accelerometer.

http://www.nxp.com/assets/documents/data/en/data-sheets/FXOS8700CQ.pdf

The driver provides x, y, and z acceleration data to a callback function. It implements the hil::sensors::NineDof trait.

Usage

let fxos8700_i2c = static_init!(I2CDevice, I2CDevice::new(i2c_bus, 0x1e));
let fxos8700 = static_init!(
    capsules::fxos8700cq::Fxos8700cq<'static>,
    capsules::fxos8700cq::Fxos8700cq::new(fxos8700_i2c,
                                          &sam4l::gpio::PA[9], // Interrupt pin
                                          &mut capsules::fxos8700cq::BUF));
fxos8700_i2c.set_client(fxos8700);
sam4l::gpio::PA[9].set_client(fxos8700);

Reexports

use core::cell::Cell;
use kernel::ReturnCode;
use kernel::common::take_cell::TakeCell;
use kernel::hil;
use kernel::hil::gpio;
use kernel::hil::i2c::Error;
use kernel::hil::i2c::I2CClient;
use kernel::hil::i2c::I2CDevice;

Structs

Fxos8700cq

Enums

Registers
State

Statics

BUF