stm32-metapac

Crates

git

Versions

stm32u599zj

Flavors

Struct stm32_metapac::dsihost::regs::Cmcr

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

DSI Host command mode configuration register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cmcr

pub const fn teare(&self) -> bool

Tearing effect acknowledge request enable This bit enables the tearing effect acknowledge request:.

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

Tearing effect acknowledge request enable This bit enables the tearing effect acknowledge request:.

pub const fn are(&self) -> bool

Acknowledge request enable This bit enables the acknowledge request after each packet transmission:.

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

Acknowledge request enable This bit enables the acknowledge request after each packet transmission:.

pub const fn gsw0tx(&self) -> bool

Generic short write zero parameters transmission This bit configures the generic short write packet with zero parameters command transmission type:.

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

Generic short write zero parameters transmission This bit configures the generic short write packet with zero parameters command transmission type:.

pub const fn gsw1tx(&self) -> bool

Generic short write one parameters transmission This bit configures the generic short write packet with one parameters command transmission type:.

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

Generic short write one parameters transmission This bit configures the generic short write packet with one parameters command transmission type:.

pub const fn gsw2tx(&self) -> bool

Generic short write two parameters transmission This bit configures the generic short write packet with two parameters command transmission type:.

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

Generic short write two parameters transmission This bit configures the generic short write packet with two parameters command transmission type:.

pub const fn gsr0tx(&self) -> bool

Generic short read zero parameters transmission This bit configures the generic short read packet with zero parameters command transmission type:.

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

Generic short read zero parameters transmission This bit configures the generic short read packet with zero parameters command transmission type:.

pub const fn gsr1tx(&self) -> bool

Generic short read one parameters transmission This bit configures the generic short read packet with one parameters command transmission type:.

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

Generic short read one parameters transmission This bit configures the generic short read packet with one parameters command transmission type:.

pub const fn gsr2tx(&self) -> bool

Generic short read two parameters transmission This bit configures the generic short read packet with two parameters command transmission type:.

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

Generic short read two parameters transmission This bit configures the generic short read packet with two parameters command transmission type:.

pub const fn glwtx(&self) -> bool

Generic long write transmission This bit configures the generic long write packet command transmission type :.

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

Generic long write transmission This bit configures the generic long write packet command transmission type :.

pub const fn dsw0tx(&self) -> bool

DCS short write zero parameter transmission This bit configures the DCS short write packet with zero parameter command transmission type:.

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

DCS short write zero parameter transmission This bit configures the DCS short write packet with zero parameter command transmission type:.

pub const fn dsw1tx(&self) -> bool

DCS short read one parameter transmission This bit configures the DCS short read packet with one parameter command transmission type:.

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

DCS short read one parameter transmission This bit configures the DCS short read packet with one parameter command transmission type:.

pub const fn dsr0tx(&self) -> bool

DCS short read zero parameter transmission This bit configures the DCS short read packet with zero parameter command transmission type:.

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

DCS short read zero parameter transmission This bit configures the DCS short read packet with zero parameter command transmission type:.

pub const fn dlwtx(&self) -> bool

DCS long write transmission This bit configures the DCS long write packet command transmission type:.

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

DCS long write transmission This bit configures the DCS long write packet command transmission type:.

pub const fn mrdps(&self) -> bool

Maximum read packet size This bit configures the maximum read packet size command transmission type:.

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

Maximum read packet size This bit configures the maximum read packet size command transmission type:.

Trait Implementations§

§

impl Clone for Cmcr

§

fn clone(&self) -> Cmcr

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 Cmcr

§

fn default() -> Cmcr

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

impl PartialEq for Cmcr

§

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

§

impl Eq for Cmcr

§

impl StructuralPartialEq for Cmcr

Auto Trait Implementations§

§

impl Freeze for Cmcr

§

impl RefUnwindSafe for Cmcr

§

impl Send for Cmcr

§

impl Sync for Cmcr

§

impl Unpin for Cmcr

§

impl UnwindSafe for Cmcr

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.