Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BMP280Interface

Hierarchy

  • DeviceInterface
    • BMP280Interface

Index

Properties

address

address: number

bus

bus: BusInterface

Methods

getId

  • getId(): Promise<number>

i2cRead

  • i2cRead(length: number, buffer: Buffer): Promise<number>
  • Parameters

    • length: number
    • buffer: Buffer

    Returns Promise<number>

i2cWrite

  • i2cWrite(length: number, buffer: Buffer): Promise<number>
  • Parameters

    • length: number
    • buffer: Buffer

    Returns Promise<number>

init

readByte

  • readByte(command: number): Promise<number>
  • Parameters

    • command: number

    Returns Promise<number>

readConfig

readControlMeasurement

readI2cBlock

  • readI2cBlock(command: number, length: number, buffer: Buffer): Promise<number>
  • Parameters

    • command: number
    • length: number
    • buffer: Buffer

    Returns Promise<number>

readPressure

  • readPressure(): Promise<number>

readPressureCorrection

  • Reads and sets the pressure correction internally. This function is called from init, you should not need to call it directly.

    Returns Promise<BMP280Interface>

readStatus

readTemperature

  • readTemperature(): Promise<number>

readTemperatureCorrection

  • Reads and sets the temperature correction internally. This function is called from init, you should not need to call it directly.

    Returns Promise<BMP280Interface>

readWord

  • readWord(command: number): Promise<number>
  • Parameters

    • command: number

    Returns Promise<number>

receiveByte

  • receiveByte(): Promise<number>
  • Returns Promise<number>

reset

sendByte

  • sendByte(byte: number): Promise<void>
  • Parameters

    • byte: number

    Returns Promise<void>

writeByte

  • writeByte(command: number, byte: number): Promise<void>
  • Parameters

    • command: number
    • byte: number

    Returns Promise<void>

writeConfig

writeControlMeasurement

writeI2cBlock

  • writeI2cBlock(command: number, length: number, buffer: Buffer): Promise<number>
  • Parameters

    • command: number
    • length: number
    • buffer: Buffer

    Returns Promise<number>

writeWord

  • writeWord(command: number, word: number): Promise<void>
  • Parameters

    • command: number
    • word: number

    Returns Promise<void>

Generated using TypeDoc