[][src]Enum ccs811_rs::AppRegister

#[repr(u8)]
pub enum AppRegister {
    Status,
    MeasMode,
    AlgResultData,
    RawData,
    EnvData,
    Thresholds,
    Baseline,
    HwId,
    HwVersion,
    FwBootVersion,
    FwAppVersion,
    InternalStatus,
    ErrorId,
    SwReset,
}

Application mode Register addresses Taken from the CCS811 data sheet (Figure 14, p.17)

Variants

Status

Status (RO)

"Status register"

MeasMode

Measurement Mode (RW)

"Measurement mode and conditions register"

AlgResultData

ALG_RESULT_DATA (RO)

"Algorithm result. The most significant 2 bytes contain a ppm estimate of the equivalent CO 2 (eCO 2 ) level, and the next two bytes contain a ppb estimate of the total VOC level."

RawData

RAW_DATA (RO)

"Raw ADC data values for resistance and current source used."

EnvData

ENV_DATA (WO)

"Temperature and humidity data can be written to enable compensation"

Thresholds

THRESHOLDS (WO)

"Thresholds for operation when interrupts are only generated when eCO 2 ppm crosses a threshold"

Baseline

BASELINE (R/W)

"The encoded current baseline value can be read. A previously saved encoded baseline can be written."

HwId

HW_ID (RO)

"Hardware ID. The value is 0x81"

HwVersion

HW Version (RO)

"Hardware Version. The value is 0x1X"

FwBootVersion

FW_Boot_Version (RO)

"Firmware Boot Version. The first 2 bytes contain the firmware version number for the boot code."

FwAppVersion

FW_App_Version (RO)

"Firmware Application Version. The first 2 bytes contain the firmware version number for the application code"

InternalStatus

Internal_State (RO)

"Internal Status register"

ErrorId

Error Id

"Error ID. When the status register reports an error its source is located in this register"

SwReset

SW_RESET

"If the correct 4 bytes (0x11 0xE5 0x72 0x8A) are written to this register in a single sequence the device will reset and return to BOOT mode."

Trait Implementations

impl Clone for AppRegister[src]

impl Copy for AppRegister[src]

impl Debug for AppRegister[src]

impl Eq for AppRegister[src]

impl PartialEq<AppRegister> for AppRegister[src]

impl StructuralEq for AppRegister[src]

impl StructuralPartialEq for AppRegister[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.