Struct daisy::pac::dma2d::cr::W

pub struct W(/* private fields */);
Expand description

Register CR writer

Implementations§

§

impl W

pub fn start(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, START_A, BitM, 0>

Bit 0 - Start This bit can be used to launch the DMA2D according to the parameters loaded in the various configuration registers

pub fn susp(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, SUSP_A, BitM, 1>

Bit 1 - Suspend This bit can be used to suspend the current transfer. This bit is set and reset by software. It is automatically reset by hardware when the START bit is reset.

pub fn abort(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ABORT_A, BitM, 2>

Bit 2 - Abort This bit can be used to abort the current transfer. This bit is set by software and is automatically reset by hardware when the START bit is reset.

pub fn teie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TEIE_A, BitM, 8>

Bit 8 - Transfer error interrupt enable This bit is set and cleared by software.

pub fn tcie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TCIE_A, BitM, 9>

Bit 9 - Transfer complete interrupt enable This bit is set and cleared by software.

pub fn twie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TWIE_A, BitM, 10>

Bit 10 - Transfer watermark interrupt enable This bit is set and cleared by software.

pub fn caeie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CAEIE_A, BitM, 11>

Bit 11 - CLUT access error interrupt enable This bit is set and cleared by software.

pub fn ctcie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CTCIE_A, BitM, 12>

Bit 12 - CLUT transfer complete interrupt enable This bit is set and cleared by software.

pub fn ceie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CEIE_A, BitM, 13>

Bit 13 - Configuration Error Interrupt Enable This bit is set and cleared by software.

pub fn mode( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, MODE_A, Safe, 2, 16>

Bits 16:17 - DMA2D mode This bit is set and cleared by software. It cannot be modified while a transfer is ongoing.

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

Writes raw bits to the register.

Methods from Deref<Target = W<CR_SPEC>>§

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

§

impl Deref for W

§

type Target = W<CR_SPEC>

The resulting type after dereferencing.
§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
§

impl DerefMut for W

§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
§

impl From<W<CR_SPEC>> for W

§

fn from(writer: W<CR_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.