stm32-metapac

Crates

git

Versions

stm32u5f9vj

Flavors

Struct stm32_metapac::gfxmmu::regs::Cr

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

GFXMMU configuration register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cr

pub const fn boie(&self, n: usize) -> bool

Buffer overflow interrupt enable. This bit enables the buffer 0 overflow interrupt.

pub fn set_boie(&mut self, n: usize, val: bool)

Buffer overflow interrupt enable. This bit enables the buffer 0 overflow interrupt.

pub const fn ameie(&self) -> bool

AHB master error interrupt enable. This bit enables the AHB master error interrupt.

pub fn set_ameie(&mut self, val: bool)

AHB master error interrupt enable. This bit enables the AHB master error interrupt.

pub const fn bm(&self, n: usize) -> Bm192

192 Block mode. This bit defines the number of blocks per line.

pub fn set_bm(&mut self, n: usize, val: Bm192)

192 Block mode. This bit defines the number of blocks per line.

pub const fn ce(&self) -> bool

Cache enable. This bit enables the cache unit.

pub fn set_ce(&mut self, val: bool)

Cache enable. This bit enables the cache unit.

pub const fn cl(&self) -> bool

Cache lock. This bit lock the cache onto the buffer defined in the CLB field.

pub fn set_cl(&mut self, val: bool)

Cache lock. This bit lock the cache onto the buffer defined in the CLB field.

pub const fn clb(&self) -> Clb

Cache lock buffer. This field select the buffer on which the cache is locked.

pub fn set_clb(&mut self, val: Clb)

Cache lock buffer. This field select the buffer on which the cache is locked.

pub const fn fc(&self) -> bool

Force caching. This bit force the caching into the cache regardless of the MPU attributes. The cache must be enable (CE bit set).

pub fn set_fc(&mut self, val: bool)

Force caching. This bit force the caching into the cache regardless of the MPU attributes. The cache must be enable (CE bit set).

pub const fn pd(&self) -> bool

Prefetch disable. This bit disables the prefetch of the cache.

pub fn set_pd(&mut self, val: bool)

Prefetch disable. This bit disables the prefetch of the cache.

pub const fn oc(&self) -> bool

Outter cachability. This bit configure the cachability of an access generated by the GFXMMU cache.

pub fn set_oc(&mut self, val: bool)

Outter cachability. This bit configure the cachability of an access generated by the GFXMMU cache.

pub const fn ob(&self) -> bool

Outter bufferability. This bit configure the bufferability of an access generated by the GFXMMU cache.

pub fn set_ob(&mut self, val: bool)

Outter bufferability. This bit configure the bufferability of an access generated by the GFXMMU cache.

Trait Implementations§

§

impl Clone for Cr

§

fn clone(&self) -> Cr

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl Default for Cr

§

fn default() -> Cr

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

impl PartialEq for Cr

§

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

impl Copy for Cr

§

impl Eq for Cr

§

impl StructuralPartialEq for Cr

Auto Trait Implementations§

§

impl Freeze for Cr

§

impl RefUnwindSafe for Cr

§

impl Send for Cr

§

impl Sync for Cr

§

impl Unpin for Cr

§

impl UnwindSafe for Cr

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, dst: *mut T)

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