Struct pn532::i2c::I2CInterfaceWithIrq
source · pub struct I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,{
pub i2c: I2C,
pub irq: IRQ,
}
Expand description
I2C Interface with IRQ pin
Fields§
§i2c: I2C
§irq: IRQ
Trait Implementations§
source§impl<I2C, IRQ> Clone for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Clone,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible> + Clone,
impl<I2C, IRQ> Clone for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Clone,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible> + Clone,
source§fn clone(&self) -> I2CInterfaceWithIrq<I2C, IRQ>
fn clone(&self) -> I2CInterfaceWithIrq<I2C, IRQ>
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, IRQ> Debug for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Debug,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible> + Debug,
impl<I2C, IRQ> Debug for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error> + Debug,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible> + Debug,
source§impl<I2C, IRQ> Interface for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,
impl<I2C, IRQ> Interface for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: Transactional + Write<Error = <I2C as Transactional>::Error> + Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,
Auto Trait Implementations§
impl<I2C, IRQ> Freeze for I2CInterfaceWithIrq<I2C, IRQ>
impl<I2C, IRQ> RefUnwindSafe for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: RefUnwindSafe,
IRQ: RefUnwindSafe,
impl<I2C, IRQ> Send for I2CInterfaceWithIrq<I2C, IRQ>
impl<I2C, IRQ> Sync for I2CInterfaceWithIrq<I2C, IRQ>
impl<I2C, IRQ> Unpin for I2CInterfaceWithIrq<I2C, IRQ>
impl<I2C, IRQ> UnwindSafe for I2CInterfaceWithIrq<I2C, IRQ>where
I2C: UnwindSafe,
IRQ: 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