Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CCS811

Hierarchy

Implements

Index

Constructors

constructor

Properties

address

address: any

commands

commands: any

i2cinfo

i2cinfo: I2cInfo

Optional ioKeys

ioKeys: string[] | undefined

Optional io_add

io_add: PeripheralIO

Optional io_nrst

io_nrst: PeripheralIO

Optional io_nwak

io_nwak: PeripheralIO

keys

keys: string[]

params

params: any

requiredKeys

requiredKeys: string[]

Methods

char2short

  • char2short(val1: number, val2: number): any
  • Parameters

    • val1: number
    • val2: number

    Returns any

checkAvailableDataWait

  • checkAvailableDataWait(): Promise<boolean>
  • Returns Promise<boolean>

clearFlagWait

  • clearFlagWait(address: number, index: number): Promise<void>
  • Parameters

    • address: number
    • index: number

    Returns Promise<void>

configWait

  • configWait(): Promise<void>
  • Returns Promise<void>

getDriveModeWait

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

getMeasModeWait

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

getTVOCWait

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

geteCO2Wait

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

hwResetWait

  • hwResetWait(): Promise<void>
  • Returns Promise<void>

i2cInfo

readAlgorithmResultsWait

  • readAlgorithmResultsWait(): Promise<{ TVOC: number; eCO2: number }>
  • Returns Promise<{ TVOC: number; eCO2: number }>

readWait

  • readWait(command: number, length: number): Promise<number[]>
  • Parameters

    • command: number
    • length: number

    Returns Promise<number[]>

setDriveModeWait

  • setDriveModeWait(mode: number): Promise<void>
  • Parameters

    • mode: number

    Returns Promise<void>

setEnvironmentalDataWait

  • setEnvironmentalDataWait(relativeHumidity: number, temperature: number): Promise<void>
  • Parameters

    • relativeHumidity: number
    • temperature: number

    Returns Promise<void>

sleep

  • sleep(): void
  • Returns void

start

  • start(): void
  • Returns void

wake

  • wake(): void
  • Returns void

wired

  • wired(obniz: Obniz): void

write

  • write(command: any, buf: any): void
  • Parameters

    • command: any
    • buf: any

    Returns void

writeFlagWait

  • writeFlagWait(address: number, index: number): Promise<void>
  • Parameters

    • address: number
    • index: number

    Returns Promise<void>

Static charArrayToInt16

  • charArrayToInt16(values: [number, number], endian?: string): number
  • Parameters

    • values: [number, number]
    • Default value endian: string = "b"

    Returns number

Static charArrayToXyz

  • charArrayToXyz(data: number[], endian?: string, scaleFunc?: (Anonymous function)): Xyz
  • Parameters

    • data: number[]
    • Default value endian: string = "b"
    • Default value scaleFunc: (Anonymous function) = (d: number): number => d

    Returns Xyz

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc