[][src]Struct onewire::OneWire

pub struct OneWire<'a, E: Debug> { /* fields omitted */ }

Methods

impl<'a, E: Debug> OneWire<'a, E>[src]

pub fn new(output: &'a mut dyn OpenDrainOutput<E>, parasite_mode: bool) -> Self[src]

pub fn reset_select_write_read(
    &mut self,
    delay: &mut dyn DelayUs<u16>,
    device: &Device,
    write: &[u8],
    read: &mut [u8]
) -> Result<(), Error<E>>
[src]

pub fn reset_select_read_only(
    &mut self,
    delay: &mut dyn DelayUs<u16>,
    device: &Device,
    read: &mut [u8]
) -> Result<(), Error<E>>
[src]

pub fn reset_select_write_only(
    &mut self,
    delay: &mut dyn DelayUs<u16>,
    device: &Device,
    write: &[u8]
) -> Result<(), Error<E>>
[src]

pub fn select(
    &mut self,
    delay: &mut dyn DelayUs<u16>,
    device: &Device
) -> Result<(), E>
[src]

pub fn search_next(
    &mut self,
    search: &mut DeviceSearch,
    delay: &mut dyn DelayUs<u16>
) -> Result<Option<Device>, Error<E>>
[src]

pub fn search_next_alarmed(
    &mut self,
    search: &mut DeviceSearch,
    delay: &mut dyn DelayUs<u16>
) -> Result<Option<Device>, Error<E>>
[src]

pub fn reset(&mut self, delay: &mut dyn DelayUs<u16>) -> Result<bool, Error<E>>[src]

Performs a reset and listens for a presence pulse Returns Err(WireNotHigh) if the wire seems to be shortened, Ok(true) if presence pulse has been received and Ok(false) if no other device was detected but the wire seems to be ok

pub fn read_bytes(
    &mut self,
    delay: &mut dyn DelayUs<u16>,
    dst: &mut [u8]
) -> Result<(), E>
[src]

pub fn write_bytes(
    &mut self,
    delay: &mut dyn DelayUs<u16>,
    bytes: &[u8]
) -> Result<(), E>
[src]

Auto Trait Implementations

impl<'a, E> Unpin for OneWire<'a, E>

impl<'a, E> !Send for OneWire<'a, E>

impl<'a, E> !Sync for OneWire<'a, E>

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]