Struct pn532::i2c::I2CInterface
source · pub struct I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,{
pub i2c: I2C,
}
Expand description
I2C Interface without IRQ pin
§Note:
Currently the implementation of I2CInterface::wait_ready
ignores any I2C errors.
See this issue for an explanation.
Fields§
§i2c: I2C
Trait Implementations§
source§impl<I2C> Clone for I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Clone,
<I2C as Transactional>::Error: Debug,
impl<I2C> Clone for I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Clone,
<I2C as Transactional>::Error: Debug,
source§fn clone(&self) -> I2CInterface<I2C>
fn clone(&self) -> I2CInterface<I2C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I2C> Debug for I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Debug,
<I2C as Transactional>::Error: Debug,
impl<I2C> Debug for I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Debug,
<I2C as Transactional>::Error: Debug,
source§impl<I2C> Interface for I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
impl<I2C> Interface for I2CInterface<I2C>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
Auto Trait Implementations§
impl<I2C> Freeze for I2CInterface<I2C>where
I2C: Freeze,
impl<I2C> RefUnwindSafe for I2CInterface<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for I2CInterface<I2C>where
I2C: Send,
impl<I2C> Sync for I2CInterface<I2C>where
I2C: Sync,
impl<I2C> Unpin for I2CInterface<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for I2CInterface<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