pub struct StreamX<DMA, const S: u8> { /* private fields */ }
Expand description

Stream on the DMA controller.

Trait Implementations

Number of the register stream.

Set the peripheral address (par) for the DMA stream.

Set the memory address (m0ar) for the DMA stream.

Get the memory address (m0ar) for the DMA stream.

Set the double buffer address (m1ar) for the DMA stream.

Get the double buffer address (m1ar) for the DMA stream.

Set the number of transfers (ndt) for the DMA stream.

Get the number of transfers (ndt) for the DMA stream.

Enable the DMA stream. Read more

Returns the state of the DMA stream.

Disable the DMA stream. Read more

Set the channel for the (chsel) the DMA stream.

Set the priority (pl) the DMA stream.

Set the memory size (msize) for the DMA stream. Read more

Set the peripheral memory size (psize) for the DMA stream. Read more

Enable/disable memory increment (minc) for the DMA stream.

Enable/disable peripheral increment (pinc) for the DMA stream.

Set the direction (dir) of the DMA stream.

Convenience method to configure the 4 common interrupts for the DMA stream.

Convenience method to get the value of the 4 common interrupts for the DMA stream. The order of the returns are: transfer_complete, half_transfer, transfer_error and direct_mode_error. Read more

Enable/disable the transfer complete interrupt (tcie) of the DMA stream.

Enable/disable the half transfer interrupt (htie) of the DMA stream.

Enable/disable the transfer error interrupt (teie) of the DMA stream.

Enable/disable the direct mode error interrupt (dmeie) of the DMA stream.

Enable/disable the fifo error interrupt (feie) of the DMA stream.

Enable/disable the double buffer (dbm) of the DMA stream.

Set the fifo threshold (fcr.fth) of the DMA stream.

Enable/disable the fifo (dmdis) of the DMA stream.

Set memory burst mode (mburst) of the DMA stream.

Set peripheral burst mode (pburst) of the DMA stream.

Get the current fifo level (fs) of the DMA stream.

Get which buffer is currently in use by the DMA.

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

Clear all interrupts for the DMA stream.

Clear transfer complete interrupt (tcif) for the DMA stream.

Clear half transfer interrupt (htif) for the DMA stream.

Clear transfer error interrupt (teif) for the DMA stream.

Clear direct mode error interrupt (dmeif) for the DMA stream.

Clear fifo error interrupt (feif) for the DMA stream.

Get transfer complete flag.

Get half transfer flag.

Get transfer error flag

Get fifo error flag

Get direct mode error flag

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.