Enum BMP180.BMPMode

java.lang.Object
java.lang.Enum<BMP180.BMPMode>
com.diozero.devices.BMP180.BMPMode
All Implemented Interfaces:
Serializable, Comparable<BMP180.BMPMode>
Enclosing class:
BMP180

public static enum BMP180.BMPMode
extends Enum<BMP180.BMPMode>
Relationship between sampling mode and conversion delay (in ms) for each sampling mode Ultra low power: 4.5 ms minimum conversion delay Standard: 7.5 ms High Resolution: 13.5 ms Ultra high Resolution: 25.5 ms
  • Enum Constant Details

  • Method Details

    • values

      public static BMP180.BMPMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BMP180.BMPMode valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDelay

      public int getDelay()
      Return the conversion delay (in ms) associated with this sampling mode
      Returns:
      delay
    • getPressureCommand

      public byte getPressureCommand()
      Return the pressure command to the control register for this sampling mode
      Returns:
      command
    • getSamplingMode

      public int getSamplingMode()
      Return this sampling mode
      Returns:
      Sampling mode