[−][src]Struct dht11::Dht11
A DHT11 device.
Implementations
impl<GPIO, E> Dht11<GPIO> where
GPIO: InputPin<Error = E> + OutputPin<Error = E>,
[src]
GPIO: InputPin<Error = E> + OutputPin<Error = E>,
pub fn new(gpio: GPIO) -> Self
[src]
Creates a new DHT11 device connected to the specified pin.
pub fn destroy(self) -> GPIO
[src]
Destroys the driver, returning the GPIO instance.
pub fn perform_measurement<D>(
&mut self,
delay: &mut D
) -> Result<Measurement, Error<E>> where
D: DelayUs<u16> + DelayMs<u16>,
[src]
&mut self,
delay: &mut D
) -> Result<Measurement, Error<E>> where
D: DelayUs<u16> + DelayMs<u16>,
Performs a reading of the sensor.
Auto Trait Implementations
impl<GPIO> Send for Dht11<GPIO> where
GPIO: Send,
GPIO: Send,
impl<GPIO> Sync for Dht11<GPIO> where
GPIO: Sync,
GPIO: Sync,
impl<GPIO> Unpin for Dht11<GPIO> where
GPIO: Unpin,
GPIO: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,