Struct pn532::i2c::I2CInterfaceWithIrq [−][src]
pub struct I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Transactional,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: 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
impl<I2C: Clone, IRQ: Clone> Clone for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Transactional,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,
impl<I2C: Clone, IRQ: Clone> Clone for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Transactional,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,
impl<I2C: Debug, IRQ: Debug> Debug for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Transactional,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,
impl<I2C: Debug, IRQ: Debug> Debug for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Transactional,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: 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,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: 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,
I2C: Write<Error = <I2C as Transactional>::Error>,
I2C: Read<Error = <I2C as Transactional>::Error>,
<I2C as Transactional>::Error: Debug,
IRQ: InputPin<Error = Infallible>,
type Error = <I2C as Transactional>::Error
type Error = <I2C as Transactional>::Error
Error specific to the serial link.
Checks if the Pn532 has data to be read. Uses either the serial link or the IRQ pin. Read more
Auto Trait Implementations
impl<I2C, IRQ> RefUnwindSafe for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: RefUnwindSafe,
IRQ: RefUnwindSafe,
impl<I2C, IRQ> Send for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Send,
IRQ: Send,
impl<I2C, IRQ> Sync for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Sync,
IRQ: Sync,
impl<I2C, IRQ> Unpin for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: Unpin,
IRQ: Unpin,
impl<I2C, IRQ> UnwindSafe for I2CInterfaceWithIrq<I2C, IRQ> where
I2C: UnwindSafe,
IRQ: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more