[][src]Struct bh1750_ehal::BH1750

pub struct BH1750<I2C, DELAY> { /* fields omitted */ }

Methods

impl<I2C, DELAY, E> BH1750<I2C, DELAY> where
    I2C: WriteRead<Error = E>,
    DELAY: DelayMs<u32>, 
[src]

pub fn new(i2c: I2C, delay: DELAY, address: Address) -> Result<Self, E>[src]

Create new BH1750 driver

pub fn light_one_shot(&mut self, mode: OneTimeMeasurement) -> u32[src]

pub fn start_measurement(&mut self, mode: ContinuesMeasurement)[src]

pub fn reset(&mut self)[src]

pub fn power_down(&mut self)[src]

pub fn power_on(&mut self)[src]

pub fn get_measurement(&mut self, mode: ContinuesMeasurement) -> u32[src]

Auto Trait Implementations

impl<I2C, DELAY> Send for BH1750<I2C, DELAY> where
    DELAY: Send,
    I2C: Send

impl<I2C, DELAY> Sync for BH1750<I2C, DELAY> where
    DELAY: Sync,
    I2C: Sync

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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