Struct pn532::spi::SPIInterface[][src]

pub struct SPIInterface<SPI, CS> where
    SPI: Transfer<u8>,
    SPI: Write<u8, Error = <SPI as Transfer<u8>>::Error>,
    <SPI as Transfer<u8>>::Error: Debug,
    CS: OutputPin<Error = Infallible>, 
{ pub spi: SPI, pub cs: CS, }
Expand description

SPI Interface without IRQ pin

Fields

spi: SPIcs: CS

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Error specific to the serial link.

Writes a frame to the Pn532

Checks if the Pn532 has data to be read. Uses either the serial link or the IRQ pin. Read more

Reads data from the Pn532 into buf. This method will only be called if wait_ready returned Poll::Ready(Ok(())) before. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.