[][src]Enum ccs811_rs::BootRegister

#[repr(u8)]
pub enum BootRegister {
    Status,
    HwId,
    HwVersion,
    FwBootVersion,
    FwAppVersion,
    ErrorId,
    AppStart,
    SwReset,
}

Boot mode Register addresses Taken from the CCS811 data sheet (Figure 25, p.26)

Variants

Status

Status (RO)

"Status register"

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"

ErrorId

Error Id

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

AppStart

APP_START (WO)

"Status 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 BootRegister[src]

impl Copy for BootRegister[src]

impl Debug for BootRegister[src]

impl Eq for BootRegister[src]

impl PartialEq<BootRegister> for BootRegister[src]

impl StructuralEq for BootRegister[src]

impl StructuralPartialEq for BootRegister[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.