Struct stm32_hal2::pac::dma2d::fgpfccr::W

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

Register FGPFCCR writer

Implementations§

source§

impl W

source

pub fn cm( &mut self ) -> FieldWriterRaw<'_, u32, FGPFCCR_SPEC, u8, CM_A, Unsafe, 4, 0>

Bits 0:3 - Color mode These bits defines the color format of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless

source

pub fn ccm(&mut self) -> BitWriterRaw<'_, u32, FGPFCCR_SPEC, CCM_A, BitM, 4>

Bit 4 - CLUT color mode This bit defines the color format of the CLUT. It can only be written when the transfer is disabled. Once the CLUT transfer has started, this bit is read-only.

source

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

Bit 5 - Start This bit can be set to start the automatic loading of the CLUT. It is automatically reset: ** at the end of the transfer ** when the transfer is aborted by the user application by setting the ABORT bit in DMA2D_CR ** when a transfer error occurs ** when the transfer has not started due to a configuration error or another transfer operation already ongoing (data transfer or automatic background CLUT transfer).

source

pub fn cs( &mut self ) -> FieldWriterRaw<'_, u32, FGPFCCR_SPEC, u8, u8, Safe, 8, 8>

Bits 8:15 - CLUT size These bits define the size of the CLUT used for the foreground image. Once the CLUT transfer has started, this field is read-only. The number of CLUT entries is equal to CS[7:0]

source

pub fn am( &mut self ) -> FieldWriterRaw<'_, u32, FGPFCCR_SPEC, u8, AM_A, Unsafe, 2, 16>

Bits 16:17 - Alpha mode These bits select the alpha channel value to be used for the foreground image. They can only be written data the transfer are disabled. Once the transfer has started, they become read-only. other configurations are meaningless

source

pub fn css( &mut self ) -> FieldWriterRaw<'_, u32, FGPFCCR_SPEC, u8, u8, Unsafe, 2, 18>

Bits 18:19 - Chroma Sub-Sampling These bits define the chroma sub-sampling mode for YCbCr color mode. Once the transfer has started, these bits are read-only. others: meaningless

source

pub fn ai(&mut self) -> BitWriterRaw<'_, u32, FGPFCCR_SPEC, AI_A, BitM, 20>

Bit 20 - Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only.

source

pub fn rbs(&mut self) -> BitWriterRaw<'_, u32, FGPFCCR_SPEC, RBS_A, BitM, 21>

Bit 21 - Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only.

source

pub fn alpha( &mut self ) -> FieldWriterRaw<'_, u32, FGPFCCR_SPEC, u8, u8, Safe, 8, 24>

Bits 24:31 - Alpha value These bits define a fixed alpha channel value which can replace the original alpha value or be multiplied by the original alpha value according to the alpha mode selected through the AM[1:0] bits. These bits can only be written when data transfers are disabled. Once a transfer has started, they become read-only.

source

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

Writes raw bits to the register.

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

source

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

Writes raw bits to the register.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<FGPFCCR_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for W

source§

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

Mutably dereferences the value.
source§

impl From<W<FGPFCCR_SPEC>> for W

source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

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.