NAME
    `Device::BusPirate::Chip::MPL3115A2' - use a MPL3115A2 chip with
    `Device::BusPirate'

DESCRIPTION
    This Device::BusPirate::Chip subclass provides specific communication to
    a Freescale Semiconductor MPL3115A2 chip attached to the Bus Pirate via
    I2C.

    The reader is presumed to be familiar with the general operation of this
    chip; the documentation here will not attempt to explain or define
    chip-specific concepts or features, only the use of this module to
    access them.

ACCESSORS
    The following methods documented with a trailing call to `->get' return
    Future instances.

  $pressure = $mpl->read_pressure->get
    Returns the value of the `OUT_P_*' registers, suitably converted into
    Pascals. (The chip must *not* be in `RAW' mode for the conversion to
    work).

  $temperature = $mpl->read_temperature->get
    Returns the value of the `OUT_T_*' registers, suitable converted into
    degrees C. (The chip must *not* be in `RAW' mode for the conversion to
    work).

METHODS
  $mpl->check_id->get
    Reads the `WHO_AM_I' register and checks for a valid ID result. The
    returned future fails if the expected result is not received.

  $mpl->active( $on )->get
    Sets/clears the `SBYB' bit in `CTRL_REG1', which activates the actual
    device. This must be set before pressure / temperature readings will be
    made.

AUTHOR
    Paul Evans <leonerd@leonerd.org.uk>

