nxp-pac

Crates

git

Versions

mimxrt1062

Flavors

AsCtrl

Struct AsCtrl 

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

Alpha Surface Control

Tuple Fields§

§0: u32

Implementations§

Source§

impl AsCtrl

Source

pub const fn alpha_ctrl(&self) -> AlphaCtrl

Determines how the alpha value is constructed for this alpha surface

Source

pub const fn set_alpha_ctrl(&mut self, val: AlphaCtrl)

Determines how the alpha value is constructed for this alpha surface

Source

pub const fn enable_colorkey(&self) -> bool

Indicates that colorkey functionality is enabled for this alpha surface

Source

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

Indicates that colorkey functionality is enabled for this alpha surface

Source

pub const fn format(&self) -> AsCtrlFormat

Indicates the input buffer format for AS.

Source

pub const fn set_format(&mut self, val: AsCtrlFormat)

Indicates the input buffer format for AS.

Source

pub const fn alpha(&self) -> u8

Alpha modifier used when the ALPHA_MULTIPLY or ALPHA_OVERRIDE values are programmed in PXP_AS_CTRL[ALPHA_CTRL]

Source

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

Alpha modifier used when the ALPHA_MULTIPLY or ALPHA_OVERRIDE values are programmed in PXP_AS_CTRL[ALPHA_CTRL]

Source

pub const fn rop(&self) -> Rop

Indicates a raster operation to perform when enabled

Source

pub const fn set_rop(&mut self, val: Rop)

Indicates a raster operation to perform when enabled

Source

pub const fn alpha_invert(&self) -> AlphaInvert

Setting this bit to logic 0 will not alter the alpha value

Source

pub const fn set_alpha_invert(&mut self, val: AlphaInvert)

Setting this bit to logic 0 will not alter the alpha value

Trait Implementations§

Source§

impl Clone for AsCtrl

Source§

fn clone(&self) -> AsCtrl

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 AsCtrl

Source§

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

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

impl Default for AsCtrl

Source§

fn default() -> AsCtrl

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

impl PartialEq for AsCtrl

Source§

fn eq(&self, other: &AsCtrl) -> 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 AsCtrl

Source§

impl Eq for AsCtrl

Source§

impl StructuralPartialEq for AsCtrl

Auto Trait Implementations§

§

impl Freeze for AsCtrl

§

impl RefUnwindSafe for AsCtrl

§

impl Send for AsCtrl

§

impl Sync for AsCtrl

§

impl Unpin for AsCtrl

§

impl UnwindSafe for AsCtrl

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.