Type Alias W

Source
pub type W = W<CONFIG_SPEC>;
Expand description

Register config writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn function(&mut self) -> FUNCTION_W<'_, CONFIG_SPEC>

Bit 0 - Enable or disable DMA channel

Source

pub fn source_peripheral(&mut self) -> SOURCE_PERIPHERAL_W<'_, CONFIG_SPEC>

Bits 1:5 - Set source peripheral for this DMA channel

Source

pub fn destination_peripheral( &mut self, ) -> DESTINATION_PERIPHERAL_W<'_, CONFIG_SPEC>

Bits 6:10 - Set destination peripheral for this DMA channel

Source

pub fn flow_control(&mut self) -> FLOW_CONTROL_W<'_, CONFIG_SPEC>

Bits 11:13 - Set data direction for this channel

Source

pub fn error_mask(&mut self) -> ERROR_MASK_W<'_, CONFIG_SPEC>

Bit 14 - Mask error interrupt

Source

pub fn terminate_mask(&mut self) -> TERMINATE_MASK_W<'_, CONFIG_SPEC>

Bit 15 - Mask terminal count interrupt

Source

pub fn lock(&mut self) -> LOCK_W<'_, CONFIG_SPEC>

Bit 16 - ??

Source

pub fn halt(&mut self) -> HALT_W<'_, CONFIG_SPEC>

Bit 17 - ??

Source

pub fn linked_list_counter(&mut self) -> LINKED_LIST_COUNTER_W<'_, CONFIG_SPEC>

Bits 20:29 - ??

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual