Struct nrf52832_hal::spis::Spis[][src]

pub struct Spis<T> where
    T: Instance
{ /* fields omitted */ }
Expand description

Interface to a SPIS instance.

Implementations

Takes ownership of the raw SPIS peripheral and relevant pins, returning a safe wrapper.

Sets the ´default´ character (character clocked out in case of an ignored transaction).

Sets the over-read character (character sent on over-read of the transmit buffer).

Sets bit order.

Sets serial clock (SCK) polarity.

Sets serial clock (SCK) phase.

Sets SPI mode.

Enables the SPIS instance.

Disables the SPIS module.

Requests acquiring the SPIS semaphore and waits until acquired.

Requests acquiring the SPIS semaphore, returning an error if not possible.

Note: The semaphore will still be requested, and will be made available at a later point.

Releases the SPIS semaphore, enabling the SPIS to acquire it.

Enables interrupt for specified event.

Disables interrupt for specified event.

Automatically acquire the semaphore after transfer has ended.

Resets all events.

Resets specified event.

Checks if specified event has been triggered.

Checks if the granted transfer is done.

Checks if the semaphore is acquired.

Checks if last transaction overread.

Checks if last transaction overflowed.

Returns number of bytes received in last granted transaction.

Returns the semaphore status.

Returns reference to Acquired event endpoint for PPI.

Returns reference to End event endpoint for PPI.

Returns reference to EndRx event endpoint for PPI.

Returns reference to Acquire task endpoint for PPI.

Returns reference to Release task endpoint for PPI.

Full duplex DMA transfer. Transmits the given buffer while simultaneously receiving data into the same buffer until it is filled. Buffer must be located in RAM. Returns a value that represents the in-progress DMA transfer.

Full duplex DMA transfer. Transmits the given tx_buffer while simultaneously receiving data into the given rx_buffer until it is filled. The buffers must be located in RAM. Returns a value that represents the in-progress DMA transfer.

Returns the raw interface to the underlying SPIS peripheral.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

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.

Casts the value.

Casts the value.