nxp-pac

Crates

git

Versions

mimxrt1062

Flavors

PorterDuffCtrl

Struct PorterDuffCtrl 

Source
#[repr(transparent)]
pub struct PorterDuffCtrl(pub u32);
Expand description

PXP Alpha Engine A Control Register.

Tuple Fields§

§0: u32

Implementations§

Source§

impl PorterDuffCtrl

Source

pub const fn porter_duff_enable(&self) -> bool

Porter-Duff Enable

Source

pub const fn set_porter_duff_enable(&mut self, val: bool)

Porter-Duff Enable

Source

pub const fn s0_s1_factor_mode(&self) -> S0S1FactorMode

s0 to s1 factor mode

Source

pub const fn set_s0_s1_factor_mode(&mut self, val: S0S1FactorMode)

s0 to s1 factor mode

Source

pub const fn s0_global_alpha_mode(&self) -> S0GlobalAlphaMode

s0 global alpha mode

Source

pub const fn set_s0_global_alpha_mode(&mut self, val: S0GlobalAlphaMode)

s0 global alpha mode

Source

pub const fn s0_alpha_mode(&self) -> S0AlphaMode

s0 alpha mode (Porter-Duff alpha mode)

Source

pub const fn set_s0_alpha_mode(&mut self, val: S0AlphaMode)

s0 alpha mode (Porter-Duff alpha mode)

Source

pub const fn s0_color_mode(&self) -> S0ColorMode

s0 color mode (Porter-Duff color mode)

Source

pub const fn set_s0_color_mode(&mut self, val: S0ColorMode)

s0 color mode (Porter-Duff color mode)

Source

pub const fn s1_s0_factor_mode(&self) -> S1S0FactorMode

s1 to s0 factor mode (Porter-Duff factor mode)

Source

pub const fn set_s1_s0_factor_mode(&mut self, val: S1S0FactorMode)

s1 to s0 factor mode (Porter-Duff factor mode)

Source

pub const fn s1_global_alpha_mode(&self) -> S1GlobalAlphaMode

s1 global alpha mode (Porter-Duff Global Alpha mode)

Source

pub const fn set_s1_global_alpha_mode(&mut self, val: S1GlobalAlphaMode)

s1 global alpha mode (Porter-Duff Global Alpha mode)

Source

pub const fn s1_alpha_mode(&self) -> S1AlphaMode

s1 alpha mode (Porter-Duff Alpha mode)

Source

pub const fn set_s1_alpha_mode(&mut self, val: S1AlphaMode)

s1 alpha mode (Porter-Duff Alpha mode)

Source

pub const fn s1_color_mode(&self) -> S1ColorMode

s1 color mode

Source

pub const fn set_s1_color_mode(&mut self, val: S1ColorMode)

s1 color mode

Source

pub const fn s0_global_alpha(&self) -> u8

s0 global alpha

Source

pub const fn set_s0_global_alpha(&mut self, val: u8)

s0 global alpha

Source

pub const fn s1_global_alpha(&self) -> u8

s1 global alpha

Source

pub const fn set_s1_global_alpha(&mut self, val: u8)

s1 global alpha

Trait Implementations§

Source§

impl Clone for PorterDuffCtrl

Source§

fn clone(&self) -> PorterDuffCtrl

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PorterDuffCtrl

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PorterDuffCtrl

Source§

fn default() -> PorterDuffCtrl

Returns the “default value” for a type. Read more
Source§

impl PartialEq for PorterDuffCtrl

Source§

fn eq(&self, other: &PorterDuffCtrl) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for PorterDuffCtrl

Source§

impl Eq for PorterDuffCtrl

Source§

impl StructuralPartialEq for PorterDuffCtrl

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.