stm32-metapac

Crates

git

Versions

stm32h735ag

Flavors

Struct stm32_metapac::octospi::regs::Ccr

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

communication configuration register

Tuple Fields§

§0: u32

Implementations§

§

impl Ccr

pub const fn imode(&self) -> PhaseMode

Instruction mode. This field defines the instruction phase mode of operation. 101-111: Reserved

pub fn set_imode(&mut self, val: PhaseMode)

Instruction mode. This field defines the instruction phase mode of operation. 101-111: Reserved

pub const fn idtr(&self) -> bool

Instruction double transfer rate. This bit sets the DTR mode for the instruction phase.

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

Instruction double transfer rate. This bit sets the DTR mode for the instruction phase.

pub const fn isize(&self) -> SizeInBits

Instruction size. This bit defines instruction size.

pub fn set_isize(&mut self, val: SizeInBits)

Instruction size. This bit defines instruction size.

pub const fn admode(&self) -> PhaseMode

Address mode. This field defines the address phase mode of operation. 101-111: Reserved

pub fn set_admode(&mut self, val: PhaseMode)

Address mode. This field defines the address phase mode of operation. 101-111: Reserved

pub const fn addtr(&self) -> bool

Address double transfer rate. This bit sets the DTR mode for the address phase.

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

Address double transfer rate. This bit sets the DTR mode for the address phase.

pub const fn adsize(&self) -> SizeInBits

Address size. This field defines address size.

pub fn set_adsize(&mut self, val: SizeInBits)

Address size. This field defines address size.

pub const fn abmode(&self) -> PhaseMode

Alternate-byte mode. This field defines the alternate-byte phase mode of operation. 101-111: Reserved

pub fn set_abmode(&mut self, val: PhaseMode)

Alternate-byte mode. This field defines the alternate-byte phase mode of operation. 101-111: Reserved

pub const fn abdtr(&self) -> bool

Alternate bytes double transfer rate. This bit sets the DTR mode for the alternate bytes phase. This field can be written only when BUSY = 0.

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

Alternate bytes double transfer rate. This bit sets the DTR mode for the alternate bytes phase. This field can be written only when BUSY = 0.

pub const fn absize(&self) -> SizeInBits

Alternate bytes size. This bit defines alternate bytes size.

pub fn set_absize(&mut self, val: SizeInBits)

Alternate bytes size. This bit defines alternate bytes size.

pub const fn dmode(&self) -> PhaseMode

Data mode. This field defines the data phase mode of operation. 101-111: Reserved

pub fn set_dmode(&mut self, val: PhaseMode)

Data mode. This field defines the data phase mode of operation. 101-111: Reserved

pub const fn ddtr(&self) -> bool

Data double transfer rate. This bit sets the DTR mode for the data phase.

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

Data double transfer rate. This bit sets the DTR mode for the data phase.

pub const fn dqse(&self) -> bool

DQS enable. This bit enables the data strobe management.

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

DQS enable. This bit enables the data strobe management.

pub const fn sioo(&self) -> bool

Send instruction only once mode. This bit has no effect when IMODE = 00 (see ).

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

Send instruction only once mode. This bit has no effect when IMODE = 00 (see ).

Trait Implementations§

§

impl Clone for Ccr

§

fn clone(&self) -> Ccr

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 Ccr

§

fn default() -> Ccr

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

impl PartialEq for Ccr

§

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

§

impl Eq for Ccr

§

impl StructuralPartialEq for Ccr

Auto Trait Implementations§

§

impl Freeze for Ccr

§

impl RefUnwindSafe for Ccr

§

impl Send for Ccr

§

impl Sync for Ccr

§

impl Unpin for Ccr

§

impl UnwindSafe for Ccr

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.