[−][src]Struct bh1750_ehal::BH1750
Methods
impl<I2C, DELAY, E> BH1750<I2C, DELAY> where
I2C: WriteRead<Error = E>,
DELAY: DelayMs<u32>,
[src]
I2C: WriteRead<Error = E>,
DELAY: DelayMs<u32>,
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,
DELAY: Send,
I2C: Send,
impl<I2C, DELAY> Sync for BH1750<I2C, DELAY> where
DELAY: Sync,
I2C: Sync,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,