Module capsules::lps25hb [] [src]

Driver for the ST LPS25HB pressure sensor.

http://www.st.com/en/mems-and-sensors/lps25hb.html

Usage

let lps25hb_i2c = static_init!(I2CDevice, I2CDevice::new(i2c_bus, 0x5C));
let lps25hb = static_init!(
    capsules::lps25hb::LPS25HB<'static>,
    capsules::lps25hb::LPS25HB::new(lps25hb_i2c,
        &sam4l::gpio::PA[10],
        &mut capsules::lps25hb::BUFFER));
lps25hb_i2c.set_client(lps25hb);
sam4l::gpio::PA[10].set_client(lps25hb);

Reexports

use core::cell::Cell;
use kernel::AppId;
use kernel::Callback;
use kernel::Driver;
use kernel::ReturnCode;
use kernel::common::take_cell::TakeCell;
use kernel::hil::gpio;
use kernel::hil::i2c;

Structs

LPS25HB

Enums

Registers
State

States of the I2C protocol with the LPS25HB.

Constants

CTRL_REG1_BLOCK_DATA_ENABLE
CTRL_REG1_POWER_ON
CTRL_REG2_ONE_SHOT
CTRL_REG4_INTERRUPT1_DATAREADY
REGISTER_AUTO_INCREMENT

Register values

Statics

BUFFER