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 serial clock (SCK) polarity.
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.
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 semaphore is acquired.
Checks if last transaction overread.
Checks if last transaction overflowed.
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.
pub fn transfer_split<TxW, RxW, TxB, RxB>(
self,
tx_buffer: TxB,
rx_buffer: RxB
) -> Result<TransferSplit<T, TxB, RxB>, (Error, Spis<T>, TxB, RxB)> where
TxB: 'static + ReadBuffer<Word = TxW>,
RxB: 'static + WriteBuffer<Word = RxW>,
pub fn transfer_split<TxW, RxW, TxB, RxB>(
self,
tx_buffer: TxB,
rx_buffer: RxB
) -> Result<TransferSplit<T, TxB, RxB>, (Error, Spis<T>, TxB, RxB)> where
TxB: 'static + ReadBuffer<Word = TxW>,
RxB: 'static + WriteBuffer<Word = RxW>,
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.
Auto Trait Implementations
impl<T> RefUnwindSafe for Spis<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Spis<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.