Target

Trait Target 

Source
pub trait Target {
    // Required method
    fn dmamux(&self) -> DmaMuxIndex;

    // Provided methods
    fn enable_dma(&mut self) { ... }
    fn disable_dma(&mut self) { ... }
}
Expand description

Trait implemented by DMA targets.

Required Methods§

Source

fn dmamux(&self) -> DmaMuxIndex

Returns the correct DMAMUX index to configure DMA channel for this peripheral

Provided Methods§

Source

fn enable_dma(&mut self)

Enable DMA on the target

Source

fn disable_dma(&mut self)

Disable DMA on the target

Implementors§

Source§

impl<Config> Target for Rx<LPUART, Config>

Source§

impl<Config> Target for Rx<USART1, Config>

Source§

impl<Config> Target for Rx<USART2, Config>

Source§

impl<Config> Target for Rx<USART3, Config>

Source§

impl<Config> Target for Rx<USART4, Config>

Source§

impl<Config> Target for Tx<LPUART, Config>

Source§

impl<Config> Target for Tx<USART1, Config>

Source§

impl<Config> Target for Tx<USART2, Config>

Source§

impl<Config> Target for Tx<USART3, Config>

Source§

impl<Config> Target for Tx<USART4, Config>