Struct lpc55_pac::dma0::channel::cfg::R[][src]

pub struct R(_);

Register CFG reader

Implementations

impl R[src]

pub fn periphreqen(&self) -> PERIPHREQEN_R[src]

Bit 0 - Peripheral request Enable. If a DMA channel is used to perform a memory-to-memory move, any peripheral DMA request associated with that channel can be disabled to prevent any interaction between the peripheral and the DMA controller.

pub fn hwtrigen(&self) -> HWTRIGEN_R[src]

Bit 1 - Hardware Triggering Enable for this channel.

pub fn trigpol(&self) -> TRIGPOL_R[src]

Bit 4 - Trigger Polarity. Selects the polarity of a hardware trigger for this channel.

pub fn trigtype(&self) -> TRIGTYPE_R[src]

Bit 5 - Trigger Type. Selects hardware trigger as edge triggered or level triggered.

pub fn trigburst(&self) -> TRIGBURST_R[src]

Bit 6 - Trigger Burst. Selects whether hardware triggers cause a single or burst transfer.

pub fn burstpower(&self) -> BURSTPOWER_R[src]

Bits 8:11 - Burst Power is used in two ways. It always selects the address wrap size when SRCBURSTWRAP and/or DSTBURSTWRAP modes are selected (see descriptions elsewhere in this register). When the TRIGBURST field elsewhere in this register = 1, Burst Power selects how many transfers are performed for each DMA trigger. This can be used, for example, with peripherals that contain a FIFO that can initiate a DMA operation when the FIFO reaches a certain level. 0000: Burst size = 1 (20). 0001: Burst size = 2 (21). 0010: Burst size = 4 (22). 1010: Burst size = 1024 (210). This corresponds to the maximum supported transfer count. others: not supported. The total transfer length as defined in the XFERCOUNT bits in the XFERCFG register must be an even multiple of the burst size.

pub fn srcburstwrap(&self) -> SRCBURSTWRAP_R[src]

Bit 14 - Source Burst Wrap. When enabled, the source data address for the DMA is ‘wrapped’, meaning that the source address range for each burst will be the same. As an example, this could be used to read several sequential registers from a peripheral for each DMA burst, reading the same registers again for each burst.

pub fn dstburstwrap(&self) -> DSTBURSTWRAP_R[src]

Bit 15 - Destination Burst Wrap. When enabled, the destination data address for the DMA is ‘wrapped’, meaning that the destination address range for each burst will be the same. As an example, this could be used to write several sequential registers to a peripheral for each DMA burst, writing the same registers again for each burst.

pub fn chpriority(&self) -> CHPRIORITY_R[src]

Bits 16:18 - Priority of this channel when multiple DMA requests are pending. Eight priority levels are supported: 0x0 = highest priority. 0x7 = lowest priority.

Methods from Deref<Target = R<CFG_SPEC>>

pub fn bits(&self) -> REG::Ux[src]

Reads raw bits from register.

Trait Implementations

impl Deref for R[src]

type Target = R<CFG_SPEC>

The resulting type after dereferencing.

impl From<R<CFG_SPEC>> for R[src]

Auto Trait Implementations

impl Send for R

impl Sync for R

impl Unpin for R

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.