pub struct DS9097E { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BusReadWrite for DS9097E
impl BusReadWrite for DS9097E
Source§fn reset(&mut self) -> Result<bool>
fn reset(&mut self) -> Result<bool>
Reset the 1-Wire bus. Returns true if a presence pulse is detected.
fn read_bit(&mut self) -> Result<bool>
fn write_bit(&mut self, bit: bool) -> Result<()>
fn read_byte(&mut self) -> Result<u8>
fn write_byte(&mut self, write: u8) -> Result<()>
fn read_bytes(&mut self, n: usize) -> Result<Vec<u8>>
fn write_bytes(&mut self, v: Vec<u8>) -> Result<()>
Source§impl BusSearch for DS9097E
impl BusSearch for DS9097E
Source§fn select(&mut self, rom: &RomId) -> Result<()>
fn select(&mut self, rom: &RomId) -> Result<()>
Send a Match ROM command to select a specific device
fn directory_regular(&mut self) -> Result<Vec<RomId>>
fn directory_alarm(&mut self) -> Result<Vec<RomId>>
Source§fn search(&mut self, search_type: u8) -> Result<Vec<RomId>>
fn search(&mut self, search_type: u8) -> Result<Vec<RomId>>
General 1-wire search for all devices (regular or alarm)
Since the bus master is error-prone, try 3 times before returning an error
fn search_next( &mut self, state: &mut ROMSearchState, search_type: u8, ) -> Result<bool>
Auto Trait Implementations§
impl Freeze for DS9097E
impl !RefUnwindSafe for DS9097E
impl Send for DS9097E
impl !Sync for DS9097E
impl Unpin for DS9097E
impl !UnwindSafe for DS9097E
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