pub struct PioOneWireSearch { /* private fields */ }Expand description
Onewire search state
Implementations§
Source§impl PioOneWireSearch
impl PioOneWireSearch
Sourcepub async fn next<PIO: Instance, const SM: usize>(
&mut self,
pio: &mut PioOneWire<'_, PIO, SM>,
) -> Option<u64>
pub async fn next<PIO: Instance, const SM: usize>( &mut self, pio: &mut PioOneWire<'_, PIO, SM>, ) -> Option<u64>
Search for the next address on the bus
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Is finished when all devices have been found
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PioOneWireSearch
impl RefUnwindSafe for PioOneWireSearch
impl Send for PioOneWireSearch
impl Sync for PioOneWireSearch
impl Unpin for PioOneWireSearch
impl UnsafeUnpin for PioOneWireSearch
impl UnwindSafe for PioOneWireSearch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more