[−][src]Struct onewire::OneWire
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]
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device,
write: &[u8],
read: &mut [u8]
) -> Result<(), Error<E>>
pub fn reset_select_read_only(
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device,
read: &mut [u8]
) -> Result<(), Error<E>>
[src]
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device,
read: &mut [u8]
) -> Result<(), Error<E>>
pub fn reset_select_write_only(
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device,
write: &[u8]
) -> Result<(), Error<E>>
[src]
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device,
write: &[u8]
) -> Result<(), Error<E>>
pub fn select(
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device
) -> Result<(), E>
[src]
&mut self,
delay: &mut dyn DelayUs<u16>,
device: &Device
) -> Result<(), E>
pub fn search_next(
&mut self,
search: &mut DeviceSearch,
delay: &mut dyn DelayUs<u16>
) -> Result<Option<Device>, Error<E>>
[src]
&mut self,
search: &mut DeviceSearch,
delay: &mut dyn DelayUs<u16>
) -> Result<Option<Device>, Error<E>>
pub fn search_next_alarmed(
&mut self,
search: &mut DeviceSearch,
delay: &mut dyn DelayUs<u16>
) -> Result<Option<Device>, Error<E>>
[src]
&mut self,
search: &mut DeviceSearch,
delay: &mut dyn DelayUs<u16>
) -> Result<Option<Device>, Error<E>>
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]
&mut self,
delay: &mut dyn DelayUs<u16>,
dst: &mut [u8]
) -> Result<(), E>
pub fn write_bytes(
&mut self,
delay: &mut dyn DelayUs<u16>,
bytes: &[u8]
) -> Result<(), E>
[src]
&mut self,
delay: &mut dyn DelayUs<u16>,
bytes: &[u8]
) -> Result<(), E>
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]
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,