[][src]Struct embedded_ccs811::Ccs811Awake

pub struct Ccs811Awake<I2C, MODE> { /* fields omitted */ }

Already awake CCS811 device driver

This can be used when the nWAKE pin is connected directly to GND or when handling the device waking manually instead of using the Ccs811 wrapper type.

Methods

impl<I2C> Ccs811Awake<I2C, Boot>[src]

pub fn new(i2c: I2C, address: SlaveAddr) -> Self[src]

Create new instance of an already awake CCS811 device.

impl<I2C, E, MODE> Ccs811Awake<I2C, MODE> where
    I2C: Write<Error = E>, 
[src]

pub fn destroy(self) -> I2C[src]

Destroy driver instance, return I²C bus instance.

Trait Implementations

impl<I2C, E> Ccs811AppMode for Ccs811Awake<I2C, App> where
    I2C: Write<Error = E> + WriteRead<Error = E>, 
[src]

type Error = ErrorAwake<E>

Error type

type ModeChangeError = ModeChangeError<ErrorAwake<E>, Self>

Boot/App mode change error

type BootModeType = Ccs811Awake<I2C, Boot>

Boot mode type

impl<I2C, E> Ccs811BootMode for Ccs811Awake<I2C, Boot> where
    I2C: Write<Error = E> + WriteRead<Error = E>, 
[src]

type Error = ErrorAwake<E>

Error type

type ModeChangeError = ModeChangeError<Self::Error, Self>

Boot/App mode change error

type TargetType = Ccs811Awake<I2C, App>

Application mode type

impl<I2C, E, MODE> Ccs811Device for Ccs811Awake<I2C, MODE> where
    I2C: Write<Error = E> + WriteRead<Error = E>, 
[src]

type Error = ErrorAwake<E>

Error type

impl<I2C: Debug, MODE: Debug> Debug for Ccs811Awake<I2C, MODE>[src]

Auto Trait Implementations

impl<I2C, MODE> RefUnwindSafe for Ccs811Awake<I2C, MODE> where
    I2C: RefUnwindSafe,
    MODE: RefUnwindSafe

impl<I2C, MODE> Send for Ccs811Awake<I2C, MODE> where
    I2C: Send,
    MODE: Send

impl<I2C, MODE> Sync for Ccs811Awake<I2C, MODE> where
    I2C: Sync,
    MODE: Sync

impl<I2C, MODE> Unpin for Ccs811Awake<I2C, MODE> where
    I2C: Unpin,
    MODE: Unpin

impl<I2C, MODE> UnwindSafe for Ccs811Awake<I2C, MODE> where
    I2C: UnwindSafe,
    MODE: UnwindSafe

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, 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.