pub struct Mcp23017Bus<I2C>(/* private fields */);Trait Implementations§
Source§impl<I2C: I2cBus> Mcp23x17Bus for Mcp23017Bus<I2C>
impl<I2C: I2cBus> Mcp23x17Bus for Mcp23017Bus<I2C>
type BusError = <I2C as I2cBus>::BusError
fn write_reg<R: Into<u8>>( &mut self, addr: u8, reg: R, value: u8, ) -> Result<(), Self::BusError>
fn read_reg<R: Into<u8>>( &mut self, addr: u8, reg: R, ) -> Result<u8, Self::BusError>
fn update_reg<R: Into<u8>>( &mut self, addr: u8, reg: R, mask_set: u8, mask_clear: u8, ) -> Result<(), Self::BusError>
Auto Trait Implementations§
impl<I2C> Freeze for Mcp23017Bus<I2C>where
I2C: Freeze,
impl<I2C> RefUnwindSafe for Mcp23017Bus<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for Mcp23017Bus<I2C>where
I2C: Send,
impl<I2C> Sync for Mcp23017Bus<I2C>where
I2C: Sync,
impl<I2C> Unpin for Mcp23017Bus<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for Mcp23017Bus<I2C>where
I2C: UnwindSafe,
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