Enum capsules::lps25hb::State [] [src]

enum State {
    Idle,
    SelectWhoAmI,
    ReadingWhoAmI,
    TakeMeasurementInit,
    TakeMeasurementClear,
    TakeMeasurementConfigure,
    ReadMeasurement,
    GotMeasurement,
    Done,
}

States of the I2C protocol with the LPS25HB.

Variants

Read the WHO_AM_I register. This should return 0xBB.

Process of taking a pressure measurement. Start with chip powered off

Then clear the current reading (just in case it exists) to reset the interrupt line.

Enable a single shot measurement with interrupt when data is ready.

Read the 3 pressure registers.

Calculate pressure and call the callback with the value.

Disable I2C and release buffer

Trait Implementations

impl Clone for State
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for State
[src]

impl PartialEq for State
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.